{"modulePath":"github.com/AliceO2Group/Control","version":"v0.27.1","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package ctpecs\n\n## Variables\n\n```go\nvar (\n\tRunStartRequest_Mode_name = map[int32]string{\n\t\t0: \"NULL\",\n\t\t1: \"TRIG\",\n\t\t2: \"CONT\",\n\t}\n\tRunStartRequest_Mode_value = map[string]int32{\n\t\t\"NULL\": 0,\n\t\t\"TRIG\": 1,\n\t\t\"CONT\": 2,\n\t}\n)\n```\nEnum value maps for RunStartRequest\\_Mode.\n\n```go\nvar CTPd_ServiceDesc = grpc.ServiceDesc{\n\tServiceName: \"ctpd.CTPd\",\n\tHandlerType: (*CTPdServer)(nil),\n\tMethods: []grpc.MethodDesc{\n\t\t{\n\t\t\tMethodName: \"RunLoad\",\n\t\t\tHandler:    _CTPd_RunLoad_Handler,\n\t\t},\n\t\t{\n\t\t\tMethodName: \"RunUnload\",\n\t\t\tHandler:    _CTPd_RunUnload_Handler,\n\t\t},\n\t\t{\n\t\t\tMethodName: \"RunStart\",\n\t\t\tHandler:    _CTPd_RunStart_Handler,\n\t\t},\n\t\t{\n\t\t\tMethodName: \"RunStatus\",\n\t\t\tHandler:    _CTPd_RunStatus_Handler,\n\t\t},\n\t\t{\n\t\t\tMethodName: \"RunList\",\n\t\t\tHandler:    _CTPd_RunList_Handler,\n\t\t},\n\t\t{\n\t\t\tMethodName: \"RunStop\",\n\t\t\tHandler:    _CTPd_RunStop_Handler,\n\t\t},\n\t\t{\n\t\t\tMethodName: \"RunConfig\",\n\t\t\tHandler:    _CTPd_RunConfig_Handler,\n\t\t},\n\t},\n\tStreams:  []grpc.StreamDesc{},\n\tMetadata: \"protos/ctpecs.proto\",\n}\n```\nCTPd\\_ServiceDesc is the grpc.ServiceDesc for CTPd service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)\n\n```go\nvar File_protos_ctpecs_proto protoreflect.FileDescriptor\n```\n\n## Functions\n\n```go\nfunc RegisterCTPdServer(s grpc.ServiceRegistrar, srv CTPdServer)\n```\n\n## Types\n\n```go\ntype CTPdClient interface {\n\t// global run:\n\tRunLoad(ctx context.Context, in *RunLoadRequest, opts ...grpc.CallOption) (*RunReply, error)\n\tRunUnload(ctx context.Context, in *RunStopRequest, opts ...grpc.CallOption) (*RunReply, error)\n\t// stdalone and global runs:\n\tRunStart(ctx context.Context, in *RunStartRequest, opts ...grpc.CallOption) (*RunReply, error)\n\tRunStatus(ctx context.Context, in *RunStatusRequest, opts ...grpc.CallOption) (*RunReply, error)\n\tRunList(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*RunReply, error)\n\tRunStop(ctx context.Context, in *RunStopRequest, opts ...grpc.CallOption) (*RunReply, error)\n\tRunConfig(ctx context.Context, in *RunStopRequest, opts ...grpc.CallOption) (*RunReply, error)\n}\n```\nCTPdClient is the client API for CTPd service.\n\nFor semantics around ctx use and closing/ending streaming RPCs, please refer to [https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream](https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream).\n\n```go\nfunc NewCTPdClient(cc grpc.ClientConnInterface) CTPdClient\n```\n\n```go\ntype CTPdServer interface {\n\t// global run:\n\tRunLoad(context.Context, *RunLoadRequest) (*RunReply, error)\n\tRunUnload(context.Context, *RunStopRequest) (*RunReply, error)\n\t// stdalone and global runs:\n\tRunStart(context.Context, *RunStartRequest) (*RunReply, error)\n\tRunStatus(context.Context, *RunStatusRequest) (*RunReply, error)\n\tRunList(context.Context, *Empty) (*RunReply, error)\n\tRunStop(context.Context, *RunStopRequest) (*RunReply, error)\n\tRunConfig(context.Context, *RunStopRequest) (*RunReply, error)\n}\n```\nCTPdServer is the server API for CTPd service. All implementations should embed UnimplementedCTPdServer for forward compatibility\n\n```go\ntype Empty struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (*Empty) Descriptor() ([]byte, []int)\n```\nDeprecated: Use Empty.ProtoReflect.Descriptor instead.\n\n```go\nfunc (*Empty) ProtoMessage()\n```\n\n```go\nfunc (x *Empty) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *Empty) Reset()\n```\n\n```go\nfunc (x *Empty) String() string\n```\n\n```go\ntype RunLoadRequest struct {\n\tRunn   uint32 `protobuf:\"varint,1,opt,name=runn,proto3\" json:\"runn,omitempty\"` // run number\n\tConfig string `protobuf:\"bytes,2,opt,name=config,proto3\" json:\"config,omitempty\"`\n\t// -config, i.e. the content of partname.pd\n\t// -partname -the content is in ctp config dir partname.pd\n\t// -key in case the config is available in Consul[key]\n\tDetectors string `protobuf:\"bytes,3,opt,name=detectors,proto3\" json:\"detectors,omitempty\"` // available detectors, \"\" -all required must be ready\n\t// contains filtered or unexported fields\n}\n```\nimport \"ctpecs\\_m.proto\"; global runs only:\n\n```go\nfunc (*RunLoadRequest) Descriptor() ([]byte, []int)\n```\nDeprecated: Use RunLoadRequest.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *RunLoadRequest) GetConfig() string\n```\n\n```go\nfunc (x *RunLoadRequest) GetDetectors() string\n```\n\n```go\nfunc (x *RunLoadRequest) GetRunn() uint32\n```\n\n```go\nfunc (*RunLoadRequest) ProtoMessage()\n```\n\n```go\nfunc (x *RunLoadRequest) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *RunLoadRequest) Reset()\n```\n\n```go\nfunc (x *RunLoadRequest) String() string\n```\n\n```go\ntype RunReply struct {\n\tRc int32 `protobuf:\"varint,1,opt,name=rc,proto3\" json:\"rc,omitempty\"` // 0: ok\n\t// RunStatus rc: 0:active/running 1:paused 2:loaded 3:does not exist\n\tMsg string `protobuf:\"bytes,2,opt,name=msg,proto3\" json:\"msg,omitempty\"` // response (usually \"\" when rc is 0)\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (*RunReply) Descriptor() ([]byte, []int)\n```\nDeprecated: Use RunReply.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *RunReply) GetMsg() string\n```\n\n```go\nfunc (x *RunReply) GetRc() int32\n```\n\n```go\nfunc (*RunReply) ProtoMessage()\n```\n\n```go\nfunc (x *RunReply) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *RunReply) Reset()\n```\n\n```go\nfunc (x *RunReply) String() string\n```\n\n```go\ntype RunStartRequest struct {\n\tRunn   uint32               `protobuf:\"varint,1,opt,name=runn,proto3\" json:\"runn,omitempty\"` // run number\n\tConfig string               `protobuf:\"bytes,2,opt,name=config,proto3\" json:\"config,omitempty\"`\n\tMode   RunStartRequest_Mode `protobuf:\"varint,3,opt,name=mode,proto3,enum=ctpd.RunStartRequest_Mode\" json:\"mode,omitempty\"`\n\tPhBc   string               `protobuf:\"bytes,4,opt,name=ph_bc,json=phBc,proto3\" json:\"ph_bc,omitempty\"`    // BC-downscaled rate of physics triggers\n\tPhRnd  string               `protobuf:\"bytes,5,opt,name=ph_rnd,json=phRnd,proto3\" json:\"ph_rnd,omitempty\"` // rate of physics triggers generated randomly\n\t// ph_ ...: \"\": use default (from config)\n\t//          N : number of BCs between 2 triggers\n\t//          2.3khz  rate of triggers: 2.3 khz\n\tDetector string `protobuf:\"bytes,6,opt,name=detector,proto3\" json:\"detector,omitempty\"` // detector has to be given for stdalone runs, \"\" for global run\n\t// contains filtered or unexported fields\n}\n```\nglobal + stdalone runs (common for ctpd/ltud):\n\n```go\nfunc (*RunStartRequest) Descriptor() ([]byte, []int)\n```\nDeprecated: Use RunStartRequest.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *RunStartRequest) GetConfig() string\n```\n\n```go\nfunc (x *RunStartRequest) GetDetector() string\n```\n\n```go\nfunc (x *RunStartRequest) GetMode() RunStartRequest_Mode\n```\n\n```go\nfunc (x *RunStartRequest) GetPhBc() string\n```\n\n```go\nfunc (x *RunStartRequest) GetPhRnd() string\n```\n\n```go\nfunc (x *RunStartRequest) GetRunn() uint32\n```\n\n```go\nfunc (*RunStartRequest) ProtoMessage()\n```\n\n```go\nfunc (x *RunStartRequest) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *RunStartRequest) Reset()\n```\n\n```go\nfunc (x *RunStartRequest) String() string\n```\n\n```go\ntype RunStartRequest_Mode int32\n```\n\\-config, e.g. \"trig\\\\nPH\\_bc 100 inf\" or -key in case the config is available in Consul\\[key] -\"\" use default configuration\n\nOptional parameters follows, overriding parameters in config string for the begining let's agree on three parameters :\n\n```go\nconst (\n\tRunStartRequest_NULL RunStartRequest_Mode = 0 // use default (from config)\n\tRunStartRequest_TRIG RunStartRequest_Mode = 1\n\tRunStartRequest_CONT RunStartRequest_Mode = 2\n)\n```\n\n```go\nfunc (RunStartRequest_Mode) Descriptor() protoreflect.EnumDescriptor\n```\n\n```go\nfunc (x RunStartRequest_Mode) Enum() *RunStartRequest_Mode\n```\n\n```go\nfunc (RunStartRequest_Mode) EnumDescriptor() ([]byte, []int)\n```\nDeprecated: Use RunStartRequest\\_Mode.Descriptor instead.\n\n```go\nfunc (x RunStartRequest_Mode) Number() protoreflect.EnumNumber\n```\n\n```go\nfunc (x RunStartRequest_Mode) String() string\n```\n\n```go\nfunc (RunStartRequest_Mode) Type() protoreflect.EnumType\n```\n\n```go\ntype RunStatusRequest struct {\n\tRunn uint32 `protobuf:\"varint,1,opt,name=runn,proto3\" json:\"runn,omitempty\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (*RunStatusRequest) Descriptor() ([]byte, []int)\n```\nDeprecated: Use RunStatusRequest.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *RunStatusRequest) GetRunn() uint32\n```\n\n```go\nfunc (*RunStatusRequest) ProtoMessage()\n```\n\n```go\nfunc (x *RunStatusRequest) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *RunStatusRequest) Reset()\n```\n\n```go\nfunc (x *RunStatusRequest) String() string\n```\n\n```go\ntype RunStopRequest struct {\n\tRunn     uint32 `protobuf:\"varint,1,opt,name=runn,proto3\" json:\"runn,omitempty\"`\n\tDetector string `protobuf:\"bytes,2,opt,name=detector,proto3\" json:\"detector,omitempty\"` // only for stdalone runs (forced stop)\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (*RunStopRequest) Descriptor() ([]byte, []int)\n```\nDeprecated: Use RunStopRequest.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *RunStopRequest) GetDetector() string\n```\n\n```go\nfunc (x *RunStopRequest) GetRunn() uint32\n```\n\n```go\nfunc (*RunStopRequest) ProtoMessage()\n```\n\n```go\nfunc (x *RunStopRequest) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *RunStopRequest) Reset()\n```\n\n```go\nfunc (x *RunStopRequest) String() string\n```\n\n```go\ntype UnimplementedCTPdServer struct {\n}\n```\nUnimplementedCTPdServer should be embedded to have forward compatible implementations.\n\n```go\nfunc (UnimplementedCTPdServer) RunConfig(context.Context, *RunStopRequest) (*RunReply, error)\n```\n\n```go\nfunc (UnimplementedCTPdServer) RunList(context.Context, *Empty) (*RunReply, error)\n```\n\n```go\nfunc (UnimplementedCTPdServer) RunLoad(context.Context, *RunLoadRequest) (*RunReply, error)\n```\n\n```go\nfunc (UnimplementedCTPdServer) RunStart(context.Context, *RunStartRequest) (*RunReply, error)\n```\n\n```go\nfunc (UnimplementedCTPdServer) RunStatus(context.Context, *RunStatusRequest) (*RunReply, error)\n```\n\n```go\nfunc (UnimplementedCTPdServer) RunStop(context.Context, *RunStopRequest) (*RunReply, error)\n```\n\n```go\nfunc (UnimplementedCTPdServer) RunUnload(context.Context, *RunStopRequest) (*RunReply, error)\n```\n\n```go\ntype UnsafeCTPdServer interface {\n\t// contains filtered or unexported methods\n}\n```\nUnsafeCTPdServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CTPdServer will result in compilation errors.\n\n","path":"github.com/AliceO2Group/Control/core/integration/ctp/protos","name":"ctpecs","synopsis":"","isRedistributable":true}
