odyssey/sources/relay_pool.h

24 lines
422 B
C
Raw Normal View History

2017-06-01 12:45:49 +00:00
#ifndef OD_RELAY_POOL_H
#define OD_RELAY_POOL_H
/*
2017-07-05 12:42:49 +00:00
* Odissey.
2017-06-01 12:45:49 +00:00
*
2017-07-05 12:42:49 +00:00
* Advanced PostgreSQL connection pooler.
2017-06-01 12:45:49 +00:00
*/
typedef struct od_relaypool od_relaypool_t;
struct od_relaypool
{
od_relay_t *pool;
int count;
int round_robin;
2017-06-01 12:45:49 +00:00
};
int od_relaypool_init(od_relaypool_t*, od_system_t*, int);
int od_relaypool_start(od_relaypool_t*);
void od_relaypool_feed(od_relaypool_t*, machine_msg_t*);
2017-06-01 12:45:49 +00:00
#endif /* OD_RELAY_POOL_H */