odyssey/core/od_pooler.h

25 lines
429 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.
*/
typedef struct od_pooler_t od_pooler_t;
2016-11-09 11:42:52 +00:00
struct od_pooler_t {
2016-11-25 12:38:52 +00:00
mm_t env;
mm_io_t server;
od_routepool_t route_pool;
od_clientlist_t client_list;
uint64_t client_seq;
2016-11-09 12:01:48 +00:00
od_t *od;
2016-11-09 11:42:52 +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