api

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2022 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const QueueServiceKey = "6c6b0b2a-6c5b-11ed-b52b-e78c8b06a360"

Variables

This section is empty.

Functions

func AccessLog

func AccessLog(l *log.Logger) box.I

func Build

func Build(version, staticsDir string, qs queue.Service) *box.B

func CreateQueue

func CreateQueue(ctx context.Context, input CreateQueueInput, w http.ResponseWriter) error

func GetQueueService

func GetQueueService(ctx context.Context) queue.Service

func InjectQueueService

func InjectQueueService(qs queue.Service) box.I

func ListQueues

func ListQueues(ctx context.Context) (interface{}, error)

func PrettyErrorInterceptor

func PrettyErrorInterceptor(next box.H) box.H

func Read

func RecoverFromPanic

func RecoverFromPanic(next box.H) box.H

func RetrieveQueue

func RetrieveQueue(ctx context.Context, w http.ResponseWriter) (interface{}, error)

func Save

func Save(response *apitest.Response, title, description string)

Save generates the MD of the tests.

func SetQueueService

func SetQueueService(ctx context.Context, qs queue.Service) context.Context

func Write

Types

type CreateQueueInput

type CreateQueueInput struct {
	Name string `json:"name"`
}

Jump to

Keyboard shortcuts

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