Documentation ¶
Index ¶
- Constants
- func AccessLog(l *log.Logger) box.I
- func Build(version, staticsDir string, qs queue.Service) *box.B
- func CreateQueue(ctx context.Context, input CreateQueueInput, w http.ResponseWriter) error
- func GetQueueService(ctx context.Context) queue.Service
- func InjectQueueService(qs queue.Service) box.I
- func ListQueues(ctx context.Context) (interface{}, error)
- func PrettyErrorInterceptor(next box.H) box.H
- func Read(ctx context.Context, w http.ResponseWriter, r *http.Request) error
- func RecoverFromPanic(next box.H) box.H
- func RetrieveQueue(ctx context.Context, w http.ResponseWriter) (interface{}, error)
- func Save(response *apitest.Response, title, description string)
- func SetQueueService(ctx context.Context, qs queue.Service) context.Context
- func Write(ctx context.Context, w http.ResponseWriter, r *http.Request) error
- type CreateQueueInput
Constants ¶
View Source
const QueueServiceKey = "6c6b0b2a-6c5b-11ed-b52b-e78c8b06a360"
Variables ¶
This section is empty.
Functions ¶
func CreateQueue ¶
func CreateQueue(ctx context.Context, input CreateQueueInput, w http.ResponseWriter) error
func ListQueues ¶
func RetrieveQueue ¶
func RetrieveQueue(ctx context.Context, w http.ResponseWriter) (interface{}, error)
Types ¶
type CreateQueueInput ¶
type CreateQueueInput struct {
Name string `json:"name"`
}
Click to show internal directories.
Click to hide internal directories.