Documentation ¶ Index ¶ func Endpoints(prefix string, receiver interface{}, timeout time.Duration, ...) ([]*swagger.Endpoint, error) func Func(fn interface{}) endpoint.Option func Handler(receiver reflect.Value, method reflect.Method, timeout time.Duration) web.HandlerFunc Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Endpoints ¶ func Endpoints(prefix string, receiver interface{}, timeout time.Duration, options ...endpoint.Option) ([]*swagger.Endpoint, error) func Func ¶ func Func(fn interface{}) endpoint.Option Func accepts a function and generates a swagger definition for function. Functions should accept zero or one input parameters in additional to an optional context.Context parameter. Functions should return either error or a type plus error. func Handler ¶ func Handler(receiver reflect.Value, method reflect.Method, timeout time.Duration) web.HandlerFunc Types ¶ This section is empty. Source Files ¶ View all Source files funcs.go Click to show internal directories. Click to hide internal directories.