session

package
v0.0.0-...-91c7ab2 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrEmptyCodec          = errors.Errorf("Codec cannot be specified as nil")
	ErrEmptyMessageHandler = errors.Errorf("Message handler cannot be specified as nil")
)

Functions

This section is empty.

Types

type EmptyRecorder

type EmptyRecorder struct{}

func (*EmptyRecorder) Record

func (e *EmptyRecorder) Record(id int64, direction delegate.RecorderDirection, d []byte, err error)

type Session

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

func (*Session) Run

func (t *Session) Run()

func (*Session) Write

func (t *Session) Write(d interface{}) error

type State

type State uint8
const (
	Disconnected State = iota
	Connecting
	Reconnecting
	Connected
)

func (State) String

func (i State) String() string

Jump to

Keyboard shortcuts

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