sessionallocation

package
v1.496.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(baseURL, token string) *Client

func (*Client) Complete

func (c *Client) Complete(ctx context.Context, sessionID string, result core.AllocationResult) error

func (*Client) CompleteExternal

func (c *Client) CompleteExternal(ctx context.Context, sessionID string, result core.AllocationResult) error

func (*Client) Next

func (*Client) NextExternal

func (c *Client) NextExternal(ctx context.Context, wait time.Duration) (*core.AllocationRequest, bool, error)

type LocalNotifier

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

func NewLocalNotifier

func NewLocalNotifier() *LocalNotifier

func (*LocalNotifier) Notify

func (n *LocalNotifier) Notify(context.Context) error

func (*LocalNotifier) Subscribe

func (n *LocalNotifier) Subscribe(context.Context) (<-chan struct{}, func(), error)

type RedisNotifier

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

func NewRedisNotifier

func NewRedisNotifier(client *redis.Client) *RedisNotifier

func (*RedisNotifier) Notify

func (n *RedisNotifier) Notify(ctx context.Context) error

func (*RedisNotifier) Subscribe

func (n *RedisNotifier) Subscribe(ctx context.Context) (<-chan struct{}, func(), error)

Jump to

Keyboard shortcuts

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