2017-06-01 12:45:49 +00:00
|
|
|
#ifndef OD_RELAY_POOL_H
|
|
|
|
#define OD_RELAY_POOL_H
|
|
|
|
|
|
|
|
/*
|
2017-06-07 11:50:58 +00:00
|
|
|
* ODISSEY.
|
2017-06-01 12:45:49 +00:00
|
|
|
*
|
|
|
|
* PostgreSQL connection pooler and request router.
|
|
|
|
*/
|
|
|
|
|
|
|
|
typedef struct od_relaypool od_relaypool_t;
|
|
|
|
|
|
|
|
struct od_relaypool
|
|
|
|
{
|
|
|
|
od_relay_t *pool;
|
|
|
|
int count;
|
2017-06-19 10:30:56 +00:00
|
|
|
int round_robin;
|
2017-06-01 12:45:49 +00:00
|
|
|
};
|
|
|
|
|
2017-06-19 10:30:56 +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 */
|