dcs

package
v1.46.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2025 License: GPL-3.0 Imports: 34 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package dcs provides integration with the ALICE Detector Control System (DCS) for managing detector operations and state compatibility checks.

Index

Constants

View Source
const (
	DCS_DIAL_TIMEOUT       = 2 * time.Hour
	DCS_GENERAL_OP_TIMEOUT = 45 * time.Second
	DCS_TIME_FORMAT        = "2006-01-02 15:04:05.000"
	TOPIC                  = topic.IntegratedService + topic.Separator + "dcs"

	DCS_RESULT_OK           = "ok"
	DCS_RESULT_TIMEOUT      = "timeout"
	DCS_RESULT_GRPC_TIMEOUT = "gRPC_timeout"
	DCS_RESULT_GRPC_UNKNOWN = "gRPC_unknown"
	DCS_RESULT_GRPC_ERROR   = "gRPC_error"
)

Variables

This section is empty.

Functions

func EORgRPCCommunicationLoop added in v1.41.0

func EORgRPCCommunicationLoop(ctx context.Context, timeout time.Duration, call *callable.Call, envId string,
	payloadJsonForKafka []byte, stream dcspb.Configurator_EndOfRunClient, detectorStatusMap map[dcspb.Detector]dcspb.DetectorState,
	callFailedStr string, payload map[string]interface{}, runType string,
) (error, []byte)

func NewPlugin

func NewPlugin(endpoint string) integration.Plugin

func PFRgRPCCommunicationLoop added in v1.41.0

func PFRgRPCCommunicationLoop(ctx context.Context, timeout time.Duration, call *callable.Call, envId string,
	payloadJsonForKafka []byte, stream dcspb.Configurator_StartOfRunClient, detectorStatusMap map[dcspb.Detector]dcspb.DetectorState,
	callFailedStr string, payload map[string]interface{}, runType string,
) (error, []byte)

func SORgRPCCommunicationLoop added in v1.41.0

func SORgRPCCommunicationLoop(ctx context.Context, timeout time.Duration, call *callable.Call, envId string,
	payloadJsonForKafka []byte, stream dcspb.Configurator_StartOfRunClient, detectorStatusMap map[dcspb.Detector]dcspb.DetectorState,
	callFailedStr string, payload map[string]interface{}, runType string,
) (error, []byte)

Types

type DCSDetectorInfoMap added in v1.2.0

type DCSDetectorInfoMap map[dcspb.Detector]*dcspb.DetectorInfo

func (DCSDetectorInfoMap) ToEcsDetectors added in v1.2.0

func (m DCSDetectorInfoMap) ToEcsDetectors() ECSDetectorInfoMap

type DCSDetectorOpAvailabilityMap added in v1.2.0

type DCSDetectorOpAvailabilityMap map[dcspb.Detector]dcspb.DetectorState

func (DCSDetectorOpAvailabilityMap) EcsDetectorsMap added in v1.7.0

func (dsm DCSDetectorOpAvailabilityMap) EcsDetectorsMap() (sm map[string]string)

func (DCSDetectorOpAvailabilityMap) ToStringMap added in v1.7.0

func (dsm DCSDetectorOpAvailabilityMap) ToStringMap() (sm map[string]string)

type DCSDetectors added in v0.36.0

type DCSDetectors []dcspb.Detector

func (DCSDetectors) EcsDetectorsSlice added in v0.54.1

func (d DCSDetectors) EcsDetectorsSlice() (sslice []string)

func (DCSDetectors) ToStringSlice added in v0.84.0

func (d DCSDetectors) ToStringSlice() (sslice []string)

type ECSDetectorInfo added in v1.2.0

type ECSDetectorInfo struct {
	State           string
	Timestamp       string
	AllowedRunTypes []string
	PfrAvailability string
	SorAvailability string
}

type ECSDetectorInfoMap added in v1.2.0

type ECSDetectorInfoMap map[string]ECSDetectorInfo

func (ECSDetectorInfoMap) Filtered added in v1.2.0

func (m ECSDetectorInfoMap) Filtered(detectorList []string) ECSDetectorInfoMap

type PartitionInfo added in v1.2.0

type PartitionInfo struct {
	SorSuccessful bool
	Detectors     ECSDetectorInfoMap
}

type Plugin

type Plugin struct {
	// contains filtered or unexported fields
}

func (*Plugin) CallStack added in v0.29.0

func (p *Plugin) CallStack(data interface{}) (stack map[string]interface{})

func (*Plugin) Destroy

func (p *Plugin) Destroy() error

func (*Plugin) GetConnectionState added in v0.22.80

func (p *Plugin) GetConnectionState() string

func (*Plugin) GetData added in v0.22.80

func (p *Plugin) GetData(_ []any) string

func (*Plugin) GetEndpoint added in v0.22.80

func (p *Plugin) GetEndpoint() string

func (*Plugin) GetEnvironmentsData added in v0.56.0

func (p *Plugin) GetEnvironmentsData(environmentIds []uid.ID) map[uid.ID]string

func (*Plugin) GetEnvironmentsShortData added in v0.79.0

func (p *Plugin) GetEnvironmentsShortData(environmentIds []uid.ID) map[uid.ID]string

func (*Plugin) GetName

func (p *Plugin) GetName() string

func (*Plugin) GetPrettyName added in v0.22.80

func (p *Plugin) GetPrettyName() string

func (*Plugin) Init

func (p *Plugin) Init(instanceId string) error

func (*Plugin) ObjectStack

func (p *Plugin) ObjectStack(_ map[string]string, _ map[string]string) (stack map[string]interface{})

type RpcClient

type RpcClient struct {
	dcspb.ConfiguratorClient
	// contains filtered or unexported fields
}

func NewClient

func NewClient(cxt context.Context, cancel context.CancelFunc, endpoint string) *RpcClient

func (*RpcClient) Close

func (m *RpcClient) Close() error

func (*RpcClient) GetConnState

func (m *RpcClient) GetConnState() connectivity.State

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL