Documentation ¶
Index ¶
Constants ¶
View Source
const ( CtxEventBusKey mwCtxKeyType = iota CtxEventQueueKey )
Keys for components attached to the context for a middleware builder.
Variables ¶
This section is empty.
Functions ¶
func DummyEndpoint ¶
DummyEndpoint is a dummy endpoint.
Types ¶
type Endpoint ¶
Endpoint represent one method for calling from remote.
func DummyMiddleware ¶
DummyMiddleware is a dummy middleware.
type Middleware ¶
Middleware deal with input Endpoint and output Endpoint.
func Build ¶
func Build(mws []Middleware) Middleware
Build builds the given middlewares into one middleware.
func Chain ¶
func Chain(mws ...Middleware) Middleware
Chain connect middlewares into one middleware.
type MiddlewareBuilder ¶
type MiddlewareBuilder func(ctx context.Context) Middleware
MiddlewareBuilder builds a middleware with information from a context.
Click to show internal directories.
Click to hide internal directories.