Documentation
¶
Overview ¶
Package handler_manager creates a socket that manages the handler
Index ¶
- Constants
- type HandlerManager
- func (m *HandlerManager) PartStatuses() key_value.KeyValue
- func (m *HandlerManager) Route(cmd string, handle route.HandleFunc0) error
- func (m *HandlerManager) SetClose(req message.RequestInterface) message.ReplyInterface
- func (m *HandlerManager) SetConfig(config *config.Handler)
- func (m *HandlerManager) Start() error
- func (m *HandlerManager) Status() string
Constants ¶
View Source
const ( Incomplete = "incomplete" Ready = "ready" SocketIdle = "idle" SocketReady = "ready" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HandlerManager ¶
type HandlerManager struct {
// contains filtered or unexported fields
}
func New ¶
func New(parent *log.Logger, frontend *frontend.Frontend, instanceManager *instances.Parent, startInstanceManager func() error) *HandlerManager
New creates a new HandlerManager
func (*HandlerManager) PartStatuses ¶
func (m *HandlerManager) PartStatuses() key_value.KeyValue
PartStatuses returns statuses of the base handler parts.
Intended to be used by the extending handlers.
func (*HandlerManager) Route ¶
func (m *HandlerManager) Route(cmd string, handle route.HandleFunc0) error
Route overrides the default route with the given handle. Returns an error if the command is not supported. Returns an error if HandlerManager is running.
func (*HandlerManager) SetClose ¶
func (m *HandlerManager) SetClose(req message.RequestInterface) message.ReplyInterface
SetClose adds a close signal to the queue.
func (*HandlerManager) SetConfig ¶
func (m *HandlerManager) SetConfig(config *config.Handler)
SetConfig sets the link to the configuration of the handler
func (*HandlerManager) Status ¶
func (m *HandlerManager) Status() string
Status returns the socket status of the HandlerManager.
Click to show internal directories.
Click to hide internal directories.