Documentation ¶
Index ¶
- Constants
- type Command
- type ConfigClient
- func (d *ConfigClient) Get(name string) (*Response, error)
- func (d *ConfigClient) GetProperties() ([]string, error)
- func (d *ConfigClient) ReadOneMessage() string
- func (d *ConfigClient) Reset(name string) (*Response, error)
- func (d *ConfigClient) SendCommand(command Command) error
- func (d *ConfigClient) Set(name string, value interface{}) (*Response, error)
- type ConfigEntry
- type ConfigService
- type GetFunc
- type Response
- type SetFunc
Constants ¶
View Source
const ( GETPROPS = "getprops" GET = "get" SET = "set" RESET = "reset" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigClient ¶
type ConfigClient struct { Bus messagebus.Messagebus CommandQueue string ResponseQueue string }
func NewConfigClient ¶
func NewConfigClient(bus messagebus.Messagebus, commandQueue string, responseQueue string) *ConfigClient
func (*ConfigClient) GetProperties ¶
func (d *ConfigClient) GetProperties() ([]string, error)
func (*ConfigClient) ReadOneMessage ¶
func (d *ConfigClient) ReadOneMessage() string
func (*ConfigClient) SendCommand ¶
func (d *ConfigClient) SendCommand(command Command) error
type ConfigEntry ¶
type ConfigService ¶
type ConfigService struct { Entries map[string]*ConfigEntry CommandQueue string Bus messagebus.Messagebus }
func NewConfigService ¶
func NewConfigService(bus messagebus.Messagebus, commandQueue string, entries map[string]*ConfigEntry) *ConfigService
func (*ConfigService) Get ¶
func (d *ConfigService) Get(command *Command)
func (*ConfigService) GetProperties ¶
func (d *ConfigService) GetProperties(command *Command)
func (*ConfigService) Reset ¶
func (d *ConfigService) Reset(command *Command)
func (*ConfigService) Run ¶
func (d *ConfigService) Run()
func (*ConfigService) Set ¶
func (d *ConfigService) Set(command *Command)
Click to show internal directories.
Click to hide internal directories.