Documentation ¶
Index ¶
- type B
- type Ctx
- type E
- type N
- type S
- type Socket
- func (ws *Socket) AuthRequested() bool
- func (ws *Socket) Authed() S
- func (ws *Socket) AuthedBytes() B
- func (ws *Socket) Challenge() S
- func (ws *Socket) IsAuthed() bool
- func (ws *Socket) Limiter() *rate.Limiter
- func (ws *Socket) RealRemote() S
- func (ws *Socket) Req() *http.Request
- func (ws *Socket) RequestAuth()
- func (ws *Socket) SetAuthed(s S)
- func (ws *Socket) SetLimiter(l *rate.Limiter)
- func (ws *Socket) Write(p []byte) (n int, err error)
- func (ws *Socket) WriteJSON(any interface{}) E
- func (ws *Socket) WriteMessage(t int, b B) E
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Socket ¶
type Socket struct {
// contains filtered or unexported fields
}
func (*Socket) AuthRequested ¶ added in v1.0.7
func (*Socket) AuthedBytes ¶ added in v1.0.13
func (*Socket) RealRemote ¶
func (*Socket) RequestAuth ¶ added in v1.0.7
func (ws *Socket) RequestAuth()
func (*Socket) SetLimiter ¶
Click to show internal directories.
Click to hide internal directories.