session

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseSession

type BaseSession struct {
	sync.WaitGroup // For no-copy status

	ID       uuid.UUID // Internal ID
	Peer     *domain.Peer
	Incoming bool // Indicate that the instance was created by an external connection
	LastDial time.Time
}

type Session

type Session interface {
	GetID() uuid.UUID
	IsIncoming() bool
	GetReadChannel(context.Context) (chan *pb.Message, error)
	GetWriteChannel(context.Context) (chan *pb.Message, error)
	Close(context.Context)
	IsOpen() bool
}

Jump to

Keyboard shortcuts

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