odyssey/sources/pooler.h

31 lines
513 B
C
Raw Normal View History

#ifndef OD_POOLER_H
#define OD_POOLER_H
/*
2017-07-05 12:42:49 +00:00
* Odissey.
*
2017-07-05 12:42:49 +00:00
* Advanced PostgreSQL connection pooler.
*/
typedef struct od_pooler od_pooler_t;
typedef struct od_poolerserver od_poolerserver_t;
struct od_poolerserver
{
struct addrinfo *addr;
2017-06-26 13:23:50 +00:00
machine_tls_t *tls;
od_system_t *system;
};
struct od_pooler
{
int64_t machine;
struct addrinfo *addr;
od_system_t *system;
};
int od_pooler_init(od_pooler_t*, od_system_t*);
2017-05-26 11:49:17 +00:00
int od_pooler_start(od_pooler_t*);
#endif /* OD_INSTANCE_H */