{"modulePath":"github.com/AliceO2Group/Control","version":"v1.51.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package dcs\n\nPackage dcs provides integration with the ALICE Detector Control System (DCS) for managing detector operations and state compatibility checks.\n\n## Constants\n\n```go\nconst (\n\tDCS_DIAL_TIMEOUT       = 2 * time.Hour\n\tDCS_GENERAL_OP_TIMEOUT = 45 * time.Second\n\tDCS_TIME_FORMAT        = \"2006-01-02 15:04:05.000\"\n\tTOPIC                  = topic.IntegratedService + topic.Separator + \"dcs\"\n\n\tDCS_RESULT_OK           = \"ok\"\n\tDCS_RESULT_TIMEOUT      = \"timeout\"\n\tDCS_RESULT_GRPC_TIMEOUT = \"gRPC_timeout\"\n\tDCS_RESULT_GRPC_UNKNOWN = \"gRPC_unknown\"\n\tDCS_RESULT_GRPC_ERROR   = \"gRPC_error\"\n)\n```\n\n## Functions\n\n```go\nfunc EORgRPCCommunicationLoop(ctx context.Context, timeout time.Duration, call *callable.Call, envId string,\n\tpayloadJsonForKafka []byte, stream dcspb.Configurator_EndOfRunClient, detectorStatusMap map[dcspb.Detector]dcspb.DetectorState,\n\tcallFailedStr string, payload map[string]interface{}, runType string,\n) (error, []byte)\n```\n\n```go\nfunc NewPlugin(endpoint string) integration.Plugin\n```\n\n```go\nfunc PFRgRPCCommunicationLoop(ctx context.Context, timeout time.Duration, call *callable.Call, envId string,\n\tpayloadJsonForKafka []byte, stream dcspb.Configurator_StartOfRunClient, detectorStatusMap map[dcspb.Detector]dcspb.DetectorState,\n\tcallFailedStr string, payload map[string]interface{}, runType string,\n) (error, []byte)\n```\n\n```go\nfunc SORgRPCCommunicationLoop(ctx context.Context, timeout time.Duration, call *callable.Call, envId string,\n\tpayloadJsonForKafka []byte, stream dcspb.Configurator_StartOfRunClient, detectorStatusMap map[dcspb.Detector]dcspb.DetectorState,\n\tcallFailedStr string, payload map[string]interface{}, runType string,\n) (error, []byte)\n```\n\n## Types\n\n```go\ntype DCSDetectorInfoMap map[dcspb.Detector]*dcspb.DetectorInfo\n```\n\n```go\nfunc (m DCSDetectorInfoMap) ToEcsDetectors() ECSDetectorInfoMap\n```\n\n```go\ntype DCSDetectorOpAvailabilityMap map[dcspb.Detector]dcspb.DetectorState\n```\n\n```go\nfunc (dsm DCSDetectorOpAvailabilityMap) EcsDetectorsMap() (sm map[string]string)\n```\n\n```go\nfunc (dsm DCSDetectorOpAvailabilityMap) ToStringMap() (sm map[string]string)\n```\n\n```go\ntype DCSDetectors []dcspb.Detector\n```\n\n```go\nfunc (d DCSDetectors) EcsDetectorsSlice() (sslice []string)\n```\n\n```go\nfunc (d DCSDetectors) ToStringSlice() (sslice []string)\n```\n\n```go\ntype ECSDetectorInfo struct {\n\tState           string\n\tTimestamp       string\n\tAllowedRunTypes []string\n\tPfrAvailability string\n\tSorAvailability string\n}\n```\n\n```go\ntype ECSDetectorInfoMap map[string]ECSDetectorInfo\n```\n\n```go\nfunc (m ECSDetectorInfoMap) Filtered(detectorList []string) ECSDetectorInfoMap\n```\n\n```go\ntype PartitionInfo struct {\n\tSorSuccessful bool\n\tDetectors     ECSDetectorInfoMap\n}\n```\n\n```go\ntype Plugin struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (p *Plugin) CallStack(data interface{}) (stack map[string]interface{})\n```\n\n```go\nfunc (p *Plugin) Destroy() error\n```\n\n```go\nfunc (p *Plugin) GetConnectionState() string\n```\n\n```go\nfunc (p *Plugin) GetData(_ []any) string\n```\n\n```go\nfunc (p *Plugin) GetEndpoint() string\n```\n\n```go\nfunc (p *Plugin) GetEnvironmentsData(environmentIds []uid.ID) map[uid.ID]string\n```\n\n```go\nfunc (p *Plugin) GetEnvironmentsShortData(environmentIds []uid.ID) map[uid.ID]string\n```\n\n```go\nfunc (p *Plugin) GetName() string\n```\n\n```go\nfunc (p *Plugin) GetPrettyName() string\n```\n\n```go\nfunc (p *Plugin) Init(instanceId string) error\n```\n\n```go\nfunc (p *Plugin) ObjectStack(_ map[string]string, _ map[string]string) (stack map[string]interface{})\n```\n\n```go\ntype RpcClient struct {\n\tdcspb.ConfiguratorClient\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewClient(cxt context.Context, cancel context.CancelFunc, endpoint string) *RpcClient\n```\n\n```go\nfunc (m *RpcClient) Close() error\n```\n\n```go\nfunc (m *RpcClient) GetConnState() connectivity.State\n```\n\n","path":"github.com/AliceO2Group/Control/core/integration/dcs","name":"dcs","synopsis":"Package dcs provides integration with the ALICE Detector Control System (DCS) for managing detector operations and state compatibility checks.","isRedistributable":true}
