Documentation ¶
Index ¶
- Variables
- type BytesRWHandlerFunc
- type Matcher
- func (m *Matcher) Invoke(k interface{}, r io.Reader, w io.Writer, c net.Conn) error
- func (m *Matcher) Match(k interface{}) (RWHandler, error)
- func (m *Matcher) Register(k interface{}, h RWHandler) error
- func (m *Matcher) RegisterByte(b byte, h RWHandler) error
- func (m *Matcher) RegisterBytes(bytes []byte, h RWHandler) error
- func (m *Matcher) RegisterString(s string, h RWHandler) error
- type RWHandler
- type Socket
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrByteHeaderNotFound = errors.New("byte header not found") ErrByteHeaderAlreadyRegistered = errors.New("byte header already registered") )
View Source
var (
ErrConnectionClosed = errors.New("connection closed")
)
View Source
var (
ErrWrongHandlerReached = errors.New("wrong handler reached")
)
Functions ¶
This section is empty.
Types ¶
type BytesRWHandlerFunc ¶
type BytesRWHandlerFunc func(interface{}) (interface{}, error)
type Matcher ¶
type Matcher struct {
// contains filtered or unexported fields
}
func CreateEmptyMatcher ¶
func CreateEmptyMatcher() *Matcher
type RWHandler ¶
func BytesRWHandler ¶
func BytesRWHandler(handle BytesRWHandlerFunc, i interface{}, c codec.Handle) RWHandler
func GoNetRPCRWHandler ¶
Click to show internal directories.
Click to hide internal directories.