queuemanager

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileConfig

func FileConfig(filename string) *naiveFileStore

func Mock

func Mock(queues ...application.Queue) *mockStore

func New

func New(ctx context.Context, config Store, platform Platform, factory QueueFactory) (*queueManager, error)

Types

type Platform

type Platform interface {
	InvokeByUID(ctx context.Context, uid string, request types.Request, out io.Writer) error
}

Minimal required platform features

type QueueFactory

type QueueFactory func(name string) (queue.Queue, error)

type Store

type Store interface {
	// Save queues list
	SetQueues(queues []application.Queue) error
	// Load queues list
	GetQueues() ([]application.Queue, error)
}

Store contains queues configuration for reload

Jump to

Keyboard shortcuts

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