services

package
v0.1.95 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GatewayManager = &GatewayCtl{serverSession: make(map[string]*ServerSession)}
View Source
var (
	Version = "dev"
)

Functions

func LoginServer added in v0.1.83

func LoginServer(tokenstr string) (*yamux.Session, error)

func LoginWorkConn

func LoginWorkConn(token *models.TokenClaims, tokenStr string) (net.Conn, error)

Types

type GatewayCtl added in v0.1.83

type GatewayCtl struct {
	// contains filtered or unexported fields
}

func (*GatewayCtl) AddServer added in v0.1.83

func (gm *GatewayCtl) AddServer(token string) (err error)

type ServerSession added in v0.1.83

type ServerSession struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*ServerSession) CheckSessionStatus added in v0.1.83

func (ss *ServerSession) CheckSessionStatus()

func (*ServerSession) LoginServer added in v0.1.83

func (ss *ServerSession) LoginServer() (err error)

func (*ServerSession) LoopStream added in v0.1.83

func (ss *ServerSession) LoopStream()

func (*ServerSession) Task added in v0.1.83

func (ss *ServerSession) Task()

Jump to

Keyboard shortcuts

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