session

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 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 Manager

type Manager interface {
	Start(ctx context.Context, instance model.Instance) error
	Stop(ctx context.Context, instanceID string) error
	Status(ctx context.Context, instanceID string) (model.InstanceStatus, error)
}

type StubManager

type StubManager struct{}

func NewStubManager

func NewStubManager() *StubManager

func (*StubManager) Start

func (m *StubManager) Start(ctx context.Context, instance model.Instance) error

func (*StubManager) Status

func (m *StubManager) Status(ctx context.Context, instanceID string) (model.InstanceStatus, error)

func (*StubManager) Stop

func (m *StubManager) Stop(ctx context.Context, instanceID string) error

type Watchdog

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

func NewWatchdog

func NewWatchdog(instanceID string, repo storage.InstanceRepository, log *zap.Logger) *Watchdog

func (*Watchdog) HandleEvent

func (w *Watchdog) HandleEvent(evt any)

func (*Watchdog) SetOnDisconnect

func (w *Watchdog) SetOnDisconnect(fn func(string))

func (*Watchdog) Start

func (w *Watchdog) Start(ctx context.Context)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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