ws

package
v0.0.0-...-43e5fc7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WsConnContext

type WsConnContext struct {
	context.Context
	// contains filtered or unexported fields
}

func New

func New(c *gin.Context) (*WsConnContext, error)

func (*WsConnContext) Close

func (w *WsConnContext) Close()

func (*WsConnContext) Deadline

func (w *WsConnContext) Deadline() (deadline time.Time, ok bool)

func (*WsConnContext) Done

func (w *WsConnContext) Done() <-chan struct{}

func (*WsConnContext) Err

func (w *WsConnContext) Err() error

func (*WsConnContext) Pong

func (w *WsConnContext) Pong()

func (*WsConnContext) Send

func (w *WsConnContext) Send(cmd int, data []byte) error

func (*WsConnContext) Value

func (w *WsConnContext) Value(key interface{}) interface{}

func (*WsConnContext) Wait

func (w *WsConnContext) Wait()

func (*WsConnContext) Write

func (w *WsConnContext) Write(buf []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL