mirror of https://github.com/yandex/odyssey.git
24 lines
422 B
C
24 lines
422 B
C
#ifndef OD_RELAY_POOL_H
|
|
#define OD_RELAY_POOL_H
|
|
|
|
/*
|
|
* Odissey.
|
|
*
|
|
* Advanced PostgreSQL connection pooler.
|
|
*/
|
|
|
|
typedef struct od_relaypool od_relaypool_t;
|
|
|
|
struct od_relaypool
|
|
{
|
|
od_relay_t *pool;
|
|
int count;
|
|
int round_robin;
|
|
};
|
|
|
|
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*);
|
|
|
|
#endif /* OD_RELAY_POOL_H */
|