odyssey/core/od_pooler.h

24 lines
394 B
C
Raw Normal View History

2016-11-09 11:30:06 +00:00
#ifndef OD_POOLER_H_
#define OD_POOLER_H_
/*
* odissey.
*
* PostgreSQL connection pooler and request router.
*/
2016-11-09 11:42:52 +00:00
typedef struct odpooler_t odpooler_t;
struct odpooler_t {
2016-11-09 12:01:48 +00:00
ft_t env;
ftio_t server;
odroute_pool_t route_pool;
2016-11-09 12:08:55 +00:00
odclient_pool_t client_pool;
2016-11-09 12:01:48 +00:00
od_t *od;
2016-11-09 11:42:52 +00:00
};
int od_pooler_init(odpooler_t*, od_t*);
int od_pooler_start(odpooler_t*);
2016-11-09 11:30:06 +00:00
#endif