Documentation ¶
Index ¶
- Constants
- Variables
- func NewMemoryConfigurationSource() source.ConfigSource
- type Source
- func (ms *Source) AddDimensionInfo(labels map[string]string) error
- func (ms *Source) Cleanup() error
- func (ms *Source) Delete(key string) error
- func (ms *Source) GetConfigurationByKey(key string) (interface{}, error)
- func (ms *Source) GetConfigurations() (map[string]interface{}, error)
- func (ms *Source) GetPriority() int
- func (*Source) GetSourceName() string
- func (ms *Source) Set(key string, value interface{}) error
- func (ms *Source) SetPriority(priority int)
- func (ms *Source) Watch(callback source.EventHandler) error
Constants ¶
View Source
const (
Name = "MemorySource"
)
const
Variables ¶
View Source
var ErrSourceNotReady = errors.New("source is not ready")
Functions ¶
func NewMemoryConfigurationSource ¶
func NewMemoryConfigurationSource() source.ConfigSource
NewMemoryConfigurationSource initializes all necessary components for memory configuration
Types ¶
type Source ¶
Source is a struct
func (*Source) AddDimensionInfo ¶
AddDimensionInfo is none function
func (*Source) GetConfigurationByKey ¶
GetConfigurationByKey gets required memory configuration for a particular key
func (*Source) GetConfigurations ¶
GetConfigurations gets all memory configurations
func (*Source) GetPriority ¶
GetPriority returns priority of the memory configuration
func (*Source) GetSourceName ¶
GetSourceName returns name of memory configuration
func (*Source) SetPriority ¶
SetPriority custom priority
Click to show internal directories.
Click to hide internal directories.