deferrer

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Method is the HTTP method this endpoint is registered for.
	Method = "GET"
	// Name identifies the endpoint. It is aligned to the package path.
	Name = "deferrer"
	// Path is the HTTP request path this endpoint is registered for.
	Path = "/v1/defer/"
)

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsInvalidResponseType

func IsInvalidResponseType(err error) bool

IsInvalidResponseType asserts invalidResponseTypeError.

Types

type Config

type Config struct {
	// Dependencies.
	Deferrer *deferrer.Service
	Logger   micrologger.Logger
}

Config represents the configuration used to create a lister endpoint.

type Endpoint

type Endpoint struct {
	// contains filtered or unexported fields
}

func New

func New(config Config) (*Endpoint, error)

New creates a new configured lister object.

func (*Endpoint) Decoder

func (e *Endpoint) Decoder() kithttp.DecodeRequestFunc

func (*Endpoint) Encoder

func (e *Endpoint) Encoder() kithttp.EncodeResponseFunc

func (*Endpoint) Endpoint

func (e *Endpoint) Endpoint() kitendpoint.Endpoint

func (*Endpoint) Method

func (e *Endpoint) Method() string

func (*Endpoint) Middlewares

func (e *Endpoint) Middlewares() []kitendpoint.Middleware

Middlewares returns a slice of the middlewares used in this endpoint.

func (*Endpoint) Name

func (e *Endpoint) Name() string

func (*Endpoint) Path

func (e *Endpoint) Path() string

Jump to

Keyboard shortcuts

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