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-29 13:21:18 +00:00
|
|
|
typedef struct od_pooler_t od_pooler_t;
|
2016-11-09 11:42:52 +00:00
|
|
|
|
2016-11-29 13:21:18 +00:00
|
|
|
struct od_pooler_t {
|
2016-11-25 12:38:52 +00:00
|
|
|
mm_t env;
|
2016-11-29 12:41:11 +00:00
|
|
|
mm_io_t server;
|
2016-11-29 13:19:47 +00:00
|
|
|
od_routepool_t route_pool;
|
2017-02-02 09:54:26 +00:00
|
|
|
od_clientlist_t client_list;
|
2016-11-16 13:15:14 +00:00
|
|
|
uint64_t client_seq;
|
2016-11-09 12:01:48 +00:00
|
|
|
od_t *od;
|
2016-11-09 11:42:52 +00:00
|
|
|
};
|
|
|
|
|
2016-11-29 13:21:18 +00:00
|
|
|
int od_pooler_init(od_pooler_t*, od_t*);
|
|
|
|
int od_pooler_start(od_pooler_t*);
|
2016-11-09 11:30:06 +00:00
|
|
|
|
|
|
|
#endif
|