GrassrootsServer Struct Reference
Collaboration diagram for GrassrootsServer:
[legend]

Public Member Functions

GrassrootsServerAllocateGrassrootsServer (const char *grassroots_path_s, const char *config_filename_s, const char *service_config_path_s, const char *references_path_s, struct JobsManager *external_jobs_manager_p, MEM_FLAG jobs_manager_flag, struct ServersManager *external_servers_manager_p, MEM_FLAG servers_manager_flag)
 Allocate a GrassrootsServer. More...
 
void FreeGrassrootsServer (GrassrootsServer *server_p)
 Free a GrassrootsServer. More...
 
json_t * ProcessServerRawMessage (GrassrootsServer *server_p, const char *const request_s, const char **error_ss)
 Construct a response message based upon a client's message. More...
 
json_t * ProcessServerJSONMessage (GrassrootsServer *server_p, json_t *req_p, const char **error_ss)
 Process a given JSON request and produce the server response. More...
 
json_t * GetInitialisedResponseOnServer (GrassrootsServer *server_p, const json_t *req_p, const char *key_s, json_t *value_p)
 Create a response object with a valid header and a given key and value. More...
 
json_t * GetGlobalConfigValue (const GrassrootsServer *grassroots_p, const char *key_s)
 Get a configuration value from the global Grassroots configuration file. More...
 
struct ServersManagerGetServersManager (GrassrootsServer *server_p)
 Get the ServersManager for a given GrassrootsServer. More...
 
json_t * GetGlobalServiceConfig (GrassrootsServer *grassroots_p, const char *const service_name_s, bool *alloc_flag_p)
 Get a configuration value for a named Service. More...
 

Data Fields

char * gs_path_s
 
char * gs_config_filename_s
 The path to the global grassroots config file for this GrassrootsServer. More...
 
char * gs_config_path_s
 The relative path from gs_path_s to the folder containing the individual service config files. More...
 
char * gs_references_path_s
 The relative path from gs_path_s to the folder containing the reference services. More...
 
struct JobsManagergs_jobs_manager_p
 
MEM_FLAG gs_jobs_manager_mem
 
struct ServersManagergs_servers_manager_p
 
MEM_FLAG gs_servers_manager_mem
 
json_t * gs_config_p
 
SchemaVersiongs_schema_version_p
 
struct MongoClientManager * gs_mongo_manager_p
 

Detailed Description

Field Documentation

◆ gs_config_filename_s

char* gs_config_filename_s

The path to the global grassroots config file for this GrassrootsServer.

◆ gs_config_path_s

char* gs_config_path_s

The relative path from gs_path_s to the folder containing the individual service config files.

◆ gs_references_path_s

char* gs_references_path_s

The relative path from gs_path_s to the folder containing the reference services.


The documentation for this struct was generated from the following file: