manager

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeQueueUsageBackupKey

func MakeQueueUsageBackupKey(qID string) string

func New

func New(ctx context.Context, ops ...Option) types.QueueManager

New return a new queue manager.

Types

type Option

type Option func(manager *defaultManager)

func WithDBClient

func WithDBClient(dbClient *dbclient.Client) Option

func WithEtcdClient

func WithEtcdClient(etcd *etcd.Store) Option

func WithJsonStore

func WithJsonStore(js jsonstore.JsonStore) Option

type SnapshotObj

type SnapshotObj struct {
	QueueUsageByID map[string][]byte `json:"queueUsageByID"`
}

Jump to

Keyboard shortcuts

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