controller

package
v0.0.0-...-0557d4e Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2018 License: Apache-2.0, Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LimitsController

type LimitsController struct {
	// contains filtered or unexported fields
}

func NewLimitsController

func NewLimitsController(model LimitsModel, view RESTView) *LimitsController

func (*LimitsController) GetLimit

func (s *LimitsController) GetLimit(w rest.ResponseWriter, r *rest.Request)

type LimitsModel

type LimitsModel interface {
	GetLimit(ctx context.Context, name string) (*limits.Limit, error)
}

type RESTView

type RESTView interface {
	RenderSuccessGet(w rest.ResponseWriter, object interface{})
	RenderError(w rest.ResponseWriter, r *rest.Request, err error, status int, l *log.Logger)
	RenderInternalError(w rest.ResponseWriter, r *rest.Request, err error, l *log.Logger)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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