handlers

package
Version: v0.0.0-...-3909df4 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var None = &noneHandler{}

Functions

This section is empty.

Types

type Handler

type Handler interface {
	v1.HealthChecker
	Handle(*v1.RequestContext, v1.Message) (*v1.RawMessage, HandlerError)
}

Handler handles queue messages.

func NewHttpHandler

func NewHttpHandler(options *HttpHandlerOptions) Handler

type HandlerError

type HandlerError interface {
	error
	Code() HandlerErrorCode
}

func BadRequestError

func BadRequestError(err error) HandlerError

func ServerError

func ServerError(err error) HandlerError

type HandlerErrorCode

type HandlerErrorCode int

type HttpHandlerOptions

type HttpHandlerOptions struct {
	Endpoint string
	Method   string
	Host     string
	Headers  map[string]string
}

Jump to

Keyboard shortcuts

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