{"modulePath":"github.com/zencoder/kit","version":"v0.4.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package endpoint\n\nPackage endpoint defines an abstraction for RPCs.\n\nEndpoints are a fundamental building block for many Go kit components. Endpoints are implemented by servers, and called by clients.\n\n## Functions\n\n```go\nfunc Nop(context.Context, interface{}) (interface{}, error)\n```\nNop is an endpoint that does nothing and returns a nil error. Useful for tests.\n\n## Types\n\n```go\ntype Endpoint func(ctx context.Context, request interface{}) (response interface{}, err error)\n```\nEndpoint is the fundamental building block of servers and clients. It represents a single RPC method.\n\n```go\ntype Middleware func(Endpoint) Endpoint\n```\nMiddleware is a chainable behavior modifier for endpoints.\n\n```go\nfunc Chain(outer Middleware, others ...Middleware) Middleware\n```\nChain is a helper function for composing middlewares. Requests will traverse them in the order they're declared. That is, the first middleware is treated as the outermost middleware.\n\n","path":"github.com/zencoder/kit/endpoint","name":"endpoint","synopsis":"Package endpoint defines an abstraction for RPCs.","isRedistributable":true}
