Documentation ¶
Index ¶
Constants ¶
View Source
const ( StartCommand = CommandName("start") StopConsulCommand = CommandName("stop") RegisterServiceCommand = CommandName("register_service") DeregisterServiceCommand = CommandName("deregister_service") UpdateServiceCommand = CommandName("update_service") ReleaseLockCommand = CommandName("release_lock") )
list of commands the Consul connection can handle
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
Command is the payload sent to the Consul connection it consist of the commad name and the redis state
func NewCommand ¶
func NewCommand(cmd CommandName, redisState state.Redis) Command
NewCommand will create a Command object
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func (*Manager) CommandRunner ¶
func (m *Manager) CommandRunner()
func (*Manager) GetCommandWriter ¶
func (*Manager) GetStateReader ¶
Click to show internal directories.
Click to hide internal directories.