endpoint

package
v0.0.5-0...-3eb11f3 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NopEndpoint

func NopEndpoint(
	context.Context,
	interface{},
) (interface{}, error)

NopEndpoint is no action Endpoint

Types

type Endpoint

type Endpoint func(cx context.Context, req interface{}) (res interface{}, err error)

Endpoint is a wrapper on top of kit_endpoint.Endpoint

type Middleware

type Middleware func(Endpoint) Endpoint

Middleware is a wrapper on top of kit_endpoint.Middleware

func Chain

func Chain(outer Middleware, others ...Middleware) Middleware

Chain is a wrapper on top of kit_endpoint.Middleware

Jump to

Keyboard shortcuts

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