Documentation ¶
Index ¶
- func DefaultOptions() *options
- func New(opts ...Option) (*WServe, *Hub)
- type Body
- type Client
- type DUser
- type Hub
- type IStore
- type IUser
- type Message
- type Operate
- type Option
- func Debug() Option
- func SetCertification(fn func(*http.Request) (IUser, error)) Option
- func SetCheckOrigin(fn func(r *http.Request) bool) Option
- func SetMaxMessageSize(v int64) Option
- func SetPermissions(fn func(*http.Request, string) bool) Option
- func SetReadBufferSize(v int) Option
- func SetReadDeadline(v int) Option
- func SetWriteBufferSize(v int) Option
- func SetWriteDeadline(v int) Option
- type Store
- type WServe
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultOptions ¶
func DefaultOptions() *options
Types ¶
type Body ¶
type Message ¶
func (*Message) OnlineClients ¶
func (m *Message) OnlineClients() interface{}
func (*Message) RadioMessage ¶
func (m *Message) RadioMessage(v interface{})
func (*Message) SendMessage ¶
func (m *Message) SendMessage(v interface{})
func (*Message) SendMessageTo ¶
func (m *Message) SendMessageTo(u interface{}, v interface{})
type Option ¶
type Option func(*options)
func SetMaxMessageSize ¶
func SetPermissions ¶ added in v1.0.0
func SetReadBufferSize ¶
func SetReadDeadline ¶
func SetWriteBufferSize ¶
func SetWriteDeadline ¶
Click to show internal directories.
Click to hide internal directories.