{"modulePath":"github.com/AliceO2Group/Control","version":"v1.51.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package cacheproxy\n\nPackage cacheproxy provides a caching proxy implementation for the configuration service, optimizing detector inventory lookups.\n\n## Types\n\n```go\ntype Service struct {\n\t// contains filtered or unexported fields\n}\n```\nImplements a cache proxy Service for the configuration system. Only DetectorForHost/DetectorsForHosts are cached, all other calls are passed through.\n\n```go\nfunc NewService(base configuration.Service) (*Service, error)\n```\n\n```go\nfunc (s Service) GetAliasedLinkIDsForDetector(detector string, onlyEnabled bool) ([]string, error)\n```\n\n```go\nfunc (s Service) GetAndProcessComponentConfiguration(query *componentcfg.Query, varStack map[string]string) (payload string, err error)\n```\n\n```go\nfunc (s Service) GetCRUCardsForHost(hostname string) ([]string, error)\n```\n\n```go\nfunc (s Service) GetComponentConfiguration(query *componentcfg.Query) (payload string, err error)\n```\n\n```go\nfunc (s Service) GetComponentConfigurationWithLastIndex(query *componentcfg.Query) (payload string, lastIndex uint64, err error)\n```\n\n```go\nfunc (s Service) GetDefaults() map[string]string\n```\n\n```go\nfunc (s Service) GetDetectorForHost(hostname string) (string, error)\n```\n\n```go\nfunc (s Service) GetDetectorsForHosts(hosts []string) ([]string, error)\n```\n\n```go\nfunc (s Service) GetDetectorsInventory() (inventory map[string][]string, err error)\n```\n\n```go\nfunc (s Service) GetEndpointsForCRUCard(hostname, cardSerial string) ([]string, error)\n```\n\n```go\nfunc (s Service) GetHostInventory(detector string) (hosts []string, err error)\n```\n\n```go\nfunc (s Service) GetLinkIDsForCRUEndpoint(host string, cruId string, endpoint string, onlyEnabled bool) (ids []string, err error)\n```\n\n```go\nfunc (s Service) GetRuntimeEntries(component string) (map[string]string, error)\n```\n\n```go\nfunc (s Service) GetRuntimeEntry(component string, key string) (string, error)\n```\n\n```go\nfunc (s Service) GetVars() map[string]string\n```\n\n```go\nfunc (s Service) ImportComponentConfiguration(query *componentcfg.Query, payload string, newComponent bool) (existingComponentUpdated bool, existingEntryUpdated bool, err error)\n```\n\n```go\nfunc (s Service) InvalidateComponentTemplateCache()\n```\n\n```go\nfunc (s Service) ListComponentEntries(query *componentcfg.EntriesQuery) (entries []string, err error)\n```\n\n```go\nfunc (s Service) ListComponents() (components []string, err error)\n```\n\n```go\nfunc (s Service) ListDetectors(getAll bool) (detectors []string, err error)\n```\n\n```go\nfunc (s Service) ListRuntimeEntries(component string) ([]string, error)\n```\n\n```go\nfunc (s Service) NewRunNumber() (runNumber uint32, err error)\n```\n\n```go\nfunc (s Service) RawGetRecursive(path string) (string, error)\n```\n\n```go\nfunc (s Service) ResolveComponentQuery(query *componentcfg.Query) (resolved *componentcfg.Query, err error)\n```\n\n```go\nfunc (s Service) SetRuntimeEntry(component string, key string, value string) error\n```\n\n","path":"github.com/AliceO2Group/Control/apricot/cacheproxy","name":"cacheproxy","synopsis":"Package cacheproxy provides a caching proxy implementation for the configuration service, optimizing detector inventory lookups.","isRedistributable":true}
