endpoint

package
v0.0.0-...-6080588 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2015 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrBadCast = errors.New("bad cast")

ErrBadCast indicates an unexpected concrete request or response struct was received from an endpoint.

View Source
var ErrContextCanceled = errors.New("context canceled")

ContextCanceled indicates the request context was canceled.

Functions

This section is empty.

Types

type Endpoint

type Endpoint func(ctx context.Context, request interface{}) (response interface{}, err error)

Endpoint is the fundamental building block of servers and clients. It represents a single RPC method.

type Middleware

type Middleware func(Endpoint) Endpoint

Middleware is a chainable behavior modifier for endpoints.

Jump to

Keyboard shortcuts

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