sessions

package
v0.0.0-...-41dda67 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetClosedCallback

func SetClosedCallback(cb func(*Session))

Types

type Session

type Session struct {
	ID int64

	Route2ServerId map[string]string
	// contains filtered or unexported fields
}

func New

func New(p proxy.Proxy) *Session

func SessionByID

func SessionByID(sessionID int64) *Session

func (*Session) OnClosed

func (s *Session) OnClosed()

func (*Session) Send

func (s *Session) Send(route string, payload []byte) error

func (*Session) SetClosedCallback

func (s *Session) SetClosedCallback(cb func())

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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