session

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: MIT Imports: 7 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

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