api

package
v1.30.0-dexcom-api-v2.4 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2018 License: BSD-2-Clause Imports: 6 Imported by: 5

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) InitializeRouters added in v1.29.0

func (a *API) InitializeRouters(routers ...service.Router) error

func (*API) Status added in v1.20.0

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

type StatusProvider added in v1.27.0

type StatusProvider interface {
	Status() interface{}
}

type StatusRouter added in v1.27.0

type StatusRouter struct {
	StatusProvider
}

func NewStatusRouter added in v1.27.0

func NewStatusRouter(statusProvider StatusProvider) (*StatusRouter, error)

func (*StatusRouter) Routes added in v1.27.0

func (s *StatusRouter) Routes() []*rest.Route

func (*StatusRouter) StatusGet added in v1.27.0

func (s *StatusRouter) StatusGet(res rest.ResponseWriter, req *rest.Request)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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