mirror of https://github.com/yandex/odyssey.git
29 lines
419 B
C
29 lines
419 B
C
#ifndef OD_ROUTER_H_
|
|
#define OD_ROUTER_H_
|
|
|
|
/*
|
|
* odissey.
|
|
*
|
|
* PostgreSQL connection pooler and request router.
|
|
*/
|
|
|
|
typedef enum {
|
|
OD_RS_UNDEF,
|
|
OD_RS_OK,
|
|
OD_RS_EROUTE,
|
|
OD_RS_EPOOL,
|
|
OD_RS_ELIMIT,
|
|
OD_RS_ESERVER_CONFIGURE,
|
|
OD_RS_ESERVER_READ,
|
|
OD_RS_ESERVER_WRITE,
|
|
OD_RS_ECLIENT_READ,
|
|
OD_RS_ECLIENT_WRITE
|
|
} od_routerstatus_t;
|
|
|
|
od_route_t*
|
|
od_route(od_pooler_t*, so_bestartup_t*);
|
|
|
|
void od_router(void*);
|
|
|
|
#endif
|