Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandFactory ¶
type CommandFactory func() rpc.RpcRawParams
type CommandRegistry ¶
type CommandRegistry interface {
Register(ct types.CommandType, cf CommandFactory)
GetCommandFactory(ct types.CommandType) (CommandFactory, error)
}
func GetCommandRegistry ¶
func GetCommandRegistry() CommandRegistry
type CommandRegistryImpl ¶
type CommandRegistryImpl struct {
// contains filtered or unexported fields
}
func (*CommandRegistryImpl) GetCommandFactory ¶
func (c *CommandRegistryImpl) GetCommandFactory(ct types.CommandType) (CommandFactory, error)
func (CommandRegistryImpl) Register ¶
func (c CommandRegistryImpl) Register(ct types.CommandType, cFactory CommandFactory)
Click to show internal directories.
Click to hide internal directories.