slots

package
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 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 Entry

type Entry struct {
	SlotName string
	Index    int
	Manager  *session.Manager
	Healthy  func() bool
}

type Multiplexer

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

func NewMultiplexer

func NewMultiplexer(groupName string, logger *slog.Logger, entries []Entry) *Multiplexer

func (*Multiplexer) AdmissionStatus

func (m *Multiplexer) AdmissionStatus() (atCapacity bool, current int, max int)

func (*Multiplexer) CloseAll

func (m *Multiplexer) CloseAll()

func (*Multiplexer) Rebind

func (m *Multiplexer) Rebind(oldKey, newKey string)

func (*Multiplexer) Release

func (m *Multiplexer) Release(upstreamSessionID string)

func (*Multiplexer) ReplaceEntries

func (m *Multiplexer) ReplaceEntries(entries []Entry)

func (*Multiplexer) ReportSpawnResult

func (m *Multiplexer) ReportSpawnResult(sessionKey string, err error)

func (*Multiplexer) SelectForNewSession

func (m *Multiplexer) SelectForNewSession(_ context.Context, upstreamSessionID string) (*session.Manager, error)

func (*Multiplexer) SetOnSessionRemoved

func (m *Multiplexer) SetOnSessionRemoved(fn func(sessionID string))

Jump to

Keyboard shortcuts

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