sessionallocation

package
v1.514.0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 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 SessionCreator

type SessionCreator interface {
	CreateSessionDirect(ctx context.Context, id string, req *entities.RunServerRequest, webhookPayload []byte) (entities.Session, error)
}

type Worker

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

Worker is a leader-only loop that binds queued allocation requests to sessions.

func NewWorker

func NewWorker(creator SessionCreator, client core.InternalAllocatorClient) *Worker

func (*Worker) Start

func (w *Worker) Start(ctx context.Context) error

func (*Worker) Stop

func (w *Worker) Stop()

Jump to

Keyboard shortcuts

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