Documentation
¶
Index ¶
- type Socket
- func (ws *Socket) AuthRequested() bool
- func (ws *Socket) Authed() string
- func (ws *Socket) AuthedBytes() []byte
- func (ws *Socket) Challenge() string
- func (ws *Socket) IsAuthed() bool
- func (ws *Socket) Limiter() *rate.Limiter
- func (ws *Socket) RealRemote() string
- func (ws *Socket) Req() *http.Request
- func (ws *Socket) RequestAuth()
- func (ws *Socket) SetAuthed(s string)
- func (ws *Socket) SetLimiter(l *rate.Limiter)
- func (ws *Socket) Write(p []byte) (n int, err error)
- func (ws *Socket) WriteJSON(any interface{}) error
- func (ws *Socket) WriteMessage(t int, b []byte) error
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 ¶
func (*Socket) AuthedBytes ¶
func (*Socket) RealRemote ¶
func (*Socket) RequestAuth ¶
func (ws *Socket) RequestAuth()
func (*Socket) SetLimiter ¶
Click to show internal directories.
Click to hide internal directories.