swagx

package
v0.0.0-...-bc6c5c1 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

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