Documentation ¶
Index ¶
- func Handle(route Route, handler Handler)
- func Intercept(route Route, interceptor Handler)
- func SetMessageParser(p MessageParser)
- type Handler
- type Hub
- func (hub *Hub) Handle(route Route, handler Handler)
- func (hub *Hub) Intercept(route Route, interceptor Handler)
- func (hub *Hub) Run(ctx context.Context)
- func (hub *Hub) SetMaxMessageSize(size int64)
- func (hub *Hub) SetMessageParser(p MessageParser)
- func (hub *Hub) SetPingPeriod(period time.Duration)
- func (hub *Hub) SetReadWait(wait time.Duration)
- func (hub *Hub) SetWriteWait(wait time.Duration)
- type Message
- type MessageParser
- type Route
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetMessageParser ¶
func SetMessageParser(p MessageParser)
Types ¶
type Hub ¶
type Hub struct {
// contains filtered or unexported fields
}
func (*Hub) SetMaxMessageSize ¶
func (*Hub) SetMessageParser ¶
func (hub *Hub) SetMessageParser(p MessageParser)
func (*Hub) SetPingPeriod ¶
func (*Hub) SetReadWait ¶
func (*Hub) SetWriteWait ¶
Click to show internal directories.
Click to hide internal directories.