// Generated by the protocol buffer compiler. DO NOT EDIT! // source: DiscoveryService.proto #ifndef DISCOVERY_CLIENT_C_H #define DISCOVERY_CLIENT_C_H #define METHOD__GO_REGISTER 1 #define METHOD__GO_REGISTER_INSTANCE 2 #define METHOD__SEND_TRACE_SEGMENT 3 typedef struct _RegisterParamtruct { char* appCode; }RegisterParamtruct; typedef struct _RegisterInstanceParamtruct { char* agentUUID; char* osName;; char* hostname; char* ipv4s; int applicationId; long registerTime; int processNo; }RegisterInstanceParamtruct; typedef enum _SpanTypeStruct { Entry_x, Exit_x, Local_x }SpanTypeStruct; typedef enum _SpanLayerStruct { Unknown_x, Database_x, RPCFramework_x, Http_x, MQ_x, Cache_x }SpanLayerStruct; typedef struct _KeyWithStringValueStruct { int key; char *value; }KeyWithStringValueStruct; typedef struct _LogMessageStruct { long time; KeyWithStringValueStruct* data; }LogMessageStruct; typedef enum _RefTypeStruct { CrossProcess_x, CrossThread_x }RefTypeStruct; typedef struct _UniqueIdStruct { long idParts; }UniqueIdStruct; typedef struct _TraceSegmentReferenceStruct { RefTypeStruct* refType; UniqueIdStruct* parentTraceSegmentId; int parentSpanId; int parentApplicationInstanceId; int networkAddress; int networkAddressId; int entryApplicationInstanceId; char* entryServiceName; int entryServiceId; char* parentServiceName; int* parentServiceId; }TraceSegmentReferenceStruct; typedef struct _SpanObjectStruct { int spanId; int parentSpanId; long startTime; long endTime; TraceSegmentReferenceStruct* refs; int operationNameId; char *operationName; int peerId; char *peer; SpanTypeStruct* spanType; SpanLayerStruct* spanLayer; int componentId; int isError; KeyWithStringValueStruct* tags; LogMessageStruct* logs; }SpanObjectStruct; typedef struct _comListNode { UniqueIdStruct* data; struct _comListNode* next; } comListNode; typedef struct _comList { struct _comListNode* head; struct _comListNode* tail; int count; } comList; typedef struct _TraceSegmentObjectStruct { comList* traceSegmentIdList; SpanObjectStruct *spans; char *segment; int applicationId; int applicationInstanceId; int isSizeLimited; }TraceSegmentObjectStruct; typedef struct _SendTraceSegmentParamStruct { TraceSegmentObjectStruct* traceSegment; }SendTraceSegmentParamStruct; typedef union _ParamDataStruct { RegisterParamtruct* registerParam; RegisterInstanceParamtruct* registerInstanceParam; SendTraceSegmentParamStruct* sendTraceSegmentParam; } ParamDataStruct; typedef struct _UpstreamSegmentStruct { UniqueIdStruct* globalTraceIds; char *segment; }UpstreamSegmentStruct; typedef struct AppInstanceStruct { int applicationId; int applicationInstanceId; } AppInstance; #endif /* #ifndef DISCOVERY_CLIENT_C_H */