Grassroots Infrastructure
The Grassroots Infrastructure is a suite of computing tools to help users and developers use scientific data infrastructure that can easily be interconnected.
germplasm_service_data.h
Go to the documentation of this file.
1 /*
2  * germplasm_service_data.h
3  *
4  * Created on: 30 May 2018
5  * Author: billy
6  */
7 
8 #ifndef SERVICES_GERMPLASM_SERVICE_INCLUDE_GERMPLASM_SERVICE_DATA_H_
9 #define SERVICES_GERMPLASM_SERVICE_INCLUDE_GERMPLASM_SERVICE_DATA_H_
10 
11 
13 #include "service.h"
14 #include "mongodb_tool.h"
15 
16 
17 typedef struct
18 {
20 
22  const char *gsd_seedstor_api_s;
23 
26 
36 
38 
39 
40 #ifdef __cplusplus
41 extern "C"
42 {
43 #endif
44 
45 
46 
48 
50 
52 
53 
54 #ifdef __cplusplus
55 }
56 #endif
57 
58 #endif /* SERVICES_GERMPLASM_SERVICE_INCLUDE_GERMPLASM_SERVICE_DATA_H_ */
service.h
GERMPLASM_SERVICE_LOCAL
#define GERMPLASM_SERVICE_LOCAL
Definition: germplasm_service_library.h:41
GermplasmServiceData::gsd_base_data
ServiceData gsd_base_data
Definition: germplasm_service_data.h:19
ConfigureGermplasmService
GERMPLASM_SERVICE_LOCAL bool ConfigureGermplasmService(GermplasmServiceData *data_p, GrassrootsServer *grassroots_p)
MongoTool
A MongoTool is a datatype that allows access to the data stored within a MongoDB instance.
Definition: mongodb_tool.h:159
AllocateGermplasmServiceData
GERMPLASM_SERVICE_LOCAL GermplasmServiceData * AllocateGermplasmServiceData(void)
germplasm_service_library.h
GermplasmServiceData
Definition: germplasm_service_data.h:17
GermplasmServiceData::gsd_mongo_tool_p
MongoTool * gsd_mongo_tool_p
We can cache GPS coords in a MongoDB to stop duplicated geocoding API calls for repeated calls for a ...
Definition: germplasm_service_data.h:35
GermplasmServiceData::gsd_seed_order_by_plant_id_api_s
const char * gsd_seed_order_by_plant_id_api_s
The url to order seeds.
Definition: germplasm_service_data.h:25
GrassrootsServer
Definition: grassroots_server.h:45
FreeGermplasmServiceData
GERMPLASM_SERVICE_LOCAL void FreeGermplasmServiceData(GermplasmServiceData *data_p)
ServiceData
A datatype for holding the configuration data for a Service.
Definition: service.h:126
GermplasmServiceData::gsd_seedstor_api_s
const char * gsd_seedstor_api_s
The base URL for the Seedstor api/.
Definition: germplasm_service_data.h:22
mongodb_tool.h