console

package
v0.6.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2025 License: Apache-2.0 Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const ChannelSize = 2048

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsoleSession

type ConsoleSession struct {
	UUID       string
	OrgId      uuid.UUID
	DeviceName string
	SendCh     chan []byte
	RecvCh     chan []byte
	ProtocolCh chan string
}

type ConsoleSessionManager

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

func NewConsoleSessionManager

func NewConsoleSessionManager(serviceHandler *service.ServiceHandler, log logrus.FieldLogger, sessionRegistration InternalSessionRegistration) *ConsoleSessionManager

func (*ConsoleSessionManager) CloseSession

func (m *ConsoleSessionManager) CloseSession(ctx context.Context, session *ConsoleSession) error

func (*ConsoleSessionManager) StartSession

func (m *ConsoleSessionManager) StartSession(ctx context.Context, orgId uuid.UUID, deviceName, sessionMetadata string) (*ConsoleSession, error)

type InternalSessionRegistration

type InternalSessionRegistration interface {
	// Register a session with a given UUID and channels
	// Those channels will be used to read from and write to the session
	// in a way that this interface down to the gRPC session is abstracted
	StartSession(*ConsoleSession) error
	CloseSession(*ConsoleSession) error
}

Jump to

Keyboard shortcuts

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