session

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSession

func GetSession(ctx context.Context, nodeId string) (*smux.Session, error)

func GetSessionNodeList

func GetSessionNodeList(ctx context.Context) ([]string, error)

func NewSessionByClient

func NewSessionByClient(conn net.Conn) (*smux.Session, error)

func NewSessoinByServer

func NewSessoinByServer(conn net.Conn) (*smux.Session, error)

func SaveSession

func SaveSession(ctx context.Context, nodeId string, sess *smux.Session) error

Types

type SessionMgr

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

Jump to

Keyboard shortcuts

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