dashboard

package
v0.0.0-...-7077701 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const GetDashboardBadRequestCode int = 400

GetDashboardBadRequestCode is the HTTP code returned for type GetDashboardBadRequest

View Source
const GetDashboardInternalServerErrorCode int = 500

GetDashboardInternalServerErrorCode is the HTTP code returned for type GetDashboardInternalServerError

View Source
const GetDashboardOKCode int = 200

GetDashboardOKCode is the HTTP code returned for type GetDashboardOK

Variables

This section is empty.

Functions

This section is empty.

Types

type GetDashboard

type GetDashboard struct {
	Context *middleware.Context
	Handler GetDashboardHandler
}

GetDashboard swagger:route GET /dashboard Dashboard getDashboard

dashboard information

func NewGetDashboard

func NewGetDashboard(ctx *middleware.Context, handler GetDashboardHandler) *GetDashboard

NewGetDashboard creates a new http.Handler for the get dashboard operation

func (*GetDashboard) ServeHTTP

func (o *GetDashboard) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetDashboardBadRequest

type GetDashboardBadRequest struct {
}

GetDashboardBadRequest Bad request

swagger:response getDashboardBadRequest

func NewGetDashboardBadRequest

func NewGetDashboardBadRequest() *GetDashboardBadRequest

NewGetDashboardBadRequest creates GetDashboardBadRequest with default headers values

func (*GetDashboardBadRequest) WriteResponse

func (o *GetDashboardBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetDashboardHandler

type GetDashboardHandler interface {
	Handle(GetDashboardParams, *models.Principal) middleware.Responder
}

GetDashboardHandler interface for that can handle valid get dashboard params

type GetDashboardHandlerFunc

type GetDashboardHandlerFunc func(GetDashboardParams, *models.Principal) middleware.Responder

GetDashboardHandlerFunc turns a function with the right signature into a get dashboard handler

func (GetDashboardHandlerFunc) Handle

Handle executing the request and returning a response

type GetDashboardInternalServerError

type GetDashboardInternalServerError struct {
}

GetDashboardInternalServerError Server internal error

swagger:response getDashboardInternalServerError

func NewGetDashboardInternalServerError

func NewGetDashboardInternalServerError() *GetDashboardInternalServerError

NewGetDashboardInternalServerError creates GetDashboardInternalServerError with default headers values

func (*GetDashboardInternalServerError) WriteResponse

func (o *GetDashboardInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetDashboardOK

type GetDashboardOK struct {

	/*
	  In: Body
	*/
	Payload *models.Dashboard `json:"body,omitempty"`
}

GetDashboardOK Successful operation

swagger:response getDashboardOK

func NewGetDashboardOK

func NewGetDashboardOK() *GetDashboardOK

NewGetDashboardOK creates GetDashboardOK with default headers values

func (*GetDashboardOK) SetPayload

func (o *GetDashboardOK) SetPayload(payload *models.Dashboard)

SetPayload sets the payload to the get dashboard o k response

func (*GetDashboardOK) WithPayload

func (o *GetDashboardOK) WithPayload(payload *models.Dashboard) *GetDashboardOK

WithPayload adds the payload to the get dashboard o k response

func (*GetDashboardOK) WriteResponse

func (o *GetDashboardOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetDashboardParams

type GetDashboardParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`
}

GetDashboardParams contains all the bound params for the get dashboard operation typically these are obtained from a http.Request

swagger:parameters getDashboard

func NewGetDashboardParams

func NewGetDashboardParams() GetDashboardParams

NewGetDashboardParams creates a new GetDashboardParams object no default values defined in spec.

func (*GetDashboardParams) BindRequest

func (o *GetDashboardParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewGetDashboardParams() beforehand.

type GetDashboardURL

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

GetDashboardURL generates an URL for the get dashboard operation

func (*GetDashboardURL) Build

func (o *GetDashboardURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetDashboardURL) BuildFull

func (o *GetDashboardURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetDashboardURL) Must

func (o *GetDashboardURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetDashboardURL) SetBasePath

func (o *GetDashboardURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetDashboardURL) String

func (o *GetDashboardURL) String() string

String returns the string representation of the path with query string

func (*GetDashboardURL) StringFull

func (o *GetDashboardURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetDashboardURL) WithBasePath

func (o *GetDashboardURL) WithBasePath(bp string) *GetDashboardURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

Jump to

Keyboard shortcuts

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