Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connect ¶
type Connect struct {
ID string
Host string
Uri string
Headers map[string]string
// contains filtered or unexported fields
}
func New ¶
func New( listener net.Listener, poller netpoll.Poller, pool *pond.WorkerPool, readBufferSize int, writeBufferSize int, protocol func([]byte) bool, protocolCustom func([]byte) (string, bool), extension func(httphead.Option) bool, extensionCustom func([]byte, []httphead.Option) ([]httphead.Option, bool), negotiate func(httphead.Option) (httphead.Option, error), header ws.HandshakeHeader, eventsCors *[]func(origin string) (err error), eventsConnect *[]func(cn *Connect) (err error), ) (*Connect, error)
type Decoding ¶
type Decoding struct {
ID int `json:"id"`
Type string `json:"type"`
Value json.RawMessage `json:"value"`
}
func (*Decoding) UnmarshalJSON ¶ added in v0.0.2
Click to show internal directories.
Click to hide internal directories.