api

package
v1.23.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2018 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Require added in v1.20.0

func Require(handlerFunc rest.HandlerFunc) rest.HandlerFunc

func RequireServer added in v1.20.0

func RequireServer(handlerFunc rest.HandlerFunc) rest.HandlerFunc

func RequireUser added in v1.20.0

func RequireUser(handlerFunc rest.HandlerFunc) rest.HandlerFunc

Types

type API added in v1.20.0

type API struct {
	service.Service
	// contains filtered or unexported fields
}

func New added in v1.20.0

func New(svc service.Service) (*API, error)

func (*API) DEPRECATEDAPI added in v1.20.0

func (a *API) DEPRECATEDAPI() *rest.Api

func (*API) Handler added in v1.20.0

func (a *API) Handler() http.Handler

func (*API) InitializeMiddleware added in v1.20.0

func (a *API) InitializeMiddleware() error

func (*API) InitializeRouter added in v1.20.0

func (a *API) InitializeRouter(routes ...*rest.Route) error

func (*API) Status added in v1.20.0

func (a *API) Status() *rest.Status

Jump to

Keyboard shortcuts

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