Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler interface { Start(<-chan string, *loader.Loader) <-chan bool Load(string) error Get(key []byte) ([]byte, error) }
Handler defines an interface to a handler
type Multiplexer ¶
type Multiplexer struct {
// contains filtered or unexported fields
}
Multiplexer represents a handler multiplexer
func (*Multiplexer) GetHandler ¶
func (m *Multiplexer) GetHandler(name string) (Handler, error)
GetHandler returns a Handler with given name
func (*Multiplexer) GetNSHandler ¶
func (m *Multiplexer) GetNSHandler(name string) (NSHandler, error)
GetNSHandler returns a NSHandler with given name
func (*Multiplexer) RegisterHandler ¶
func (m *Multiplexer) RegisterHandler(name string, hdr Handler) error
RegisterHandler registers a Handler to Multiplexer
func (*Multiplexer) RegisterNSHandler ¶
func (m *Multiplexer) RegisterNSHandler(name string, hdr NSHandler) error
RegisterNSHandler registers a NSHandler to Multiplexer
Click to show internal directories.
Click to hide internal directories.