Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GzipDecode ¶
Types ¶
type TypeMapper ¶
type TypeMapper struct {
// contains filtered or unexported fields
}
func NewTypeMapper ¶
func NewTypeMapper() *TypeMapper
func NewTypeMapperWithDefault ¶
func NewTypeMapperWithDefault(defaultHandler func([]byte)) *TypeMapper
func (*TypeMapper) RegisterProcessors ¶
func (m *TypeMapper) RegisterProcessors(matchers ...*TypeMatcher)
func (*TypeMapper) Route ¶
func (m *TypeMapper) Route(JSON []byte) error
type TypeMatcher ¶
type TypeMatcher struct {
// contains filtered or unexported fields
}
func NewTypeMatcher ¶
func NewTypeMatcher(callback, validator interface{}) *TypeMatcher
type WsError ¶
type WsError struct { Code WsErrorCode Msg string WrappedError error }
type WsErrorCode ¶
type WsErrorCode int
const ( NormalShutdown WsErrorCode = 0 + iota Disconnect Unknown )
Click to show internal directories.
Click to hide internal directories.