2017-05-26 11:49:17 +00:00
|
|
|
#ifndef OD_RELAY_H
|
|
|
|
#define OD_RELAY_H
|
|
|
|
|
|
|
|
/*
|
2017-06-07 11:50:58 +00:00
|
|
|
* ODISSEY.
|
2017-05-26 11:49:17 +00:00
|
|
|
*
|
|
|
|
* PostgreSQL connection pooler and request router.
|
|
|
|
*/
|
|
|
|
|
|
|
|
typedef struct od_relay od_relay_t;
|
|
|
|
|
|
|
|
struct od_relay
|
|
|
|
{
|
2017-06-19 10:30:56 +00:00
|
|
|
int64_t machine;
|
|
|
|
int id;
|
|
|
|
machine_queue_t *task_queue;
|
|
|
|
od_system_t *system;
|
2017-05-26 11:49:17 +00:00
|
|
|
};
|
|
|
|
|
2017-06-01 12:45:49 +00:00
|
|
|
void od_relay_init(od_relay_t*, od_system_t*, int);
|
2017-05-26 11:49:17 +00:00
|
|
|
int od_relay_start(od_relay_t*);
|
|
|
|
|
|
|
|
#endif /* OD_RELAY_H */
|