config

package
v3.2.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const GetConfigOKCode int = 200

GetConfigOKCode is the HTTP code returned for type GetConfigOK

Variables

This section is empty.

Functions

This section is empty.

Types

type GetConfig

type GetConfig struct {
	Context *middleware.Context
	Handler GetConfigHandler
}

GetConfig swagger:route GET /api/config config getConfig

GetConfig get config API

func NewGetConfig

func NewGetConfig(ctx *middleware.Context, handler GetConfigHandler) *GetConfig

NewGetConfig creates a new http.Handler for the get config operation

func (*GetConfig) ServeHTTP

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

type GetConfigDefault

type GetConfigDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

GetConfigDefault generic error response

swagger:response getConfigDefault

func NewGetConfigDefault

func NewGetConfigDefault(code int) *GetConfigDefault

NewGetConfigDefault creates GetConfigDefault with default headers values

func (*GetConfigDefault) SetPayload

func (o *GetConfigDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the get config default response

func (*GetConfigDefault) SetStatusCode

func (o *GetConfigDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get config default response

func (*GetConfigDefault) WithPayload

func (o *GetConfigDefault) WithPayload(payload *models.Error) *GetConfigDefault

WithPayload adds the payload to the get config default response

func (*GetConfigDefault) WithStatusCode

func (o *GetConfigDefault) WithStatusCode(code int) *GetConfigDefault

WithStatusCode adds the status to the get config default response

func (*GetConfigDefault) WriteResponse

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

WriteResponse to the client

type GetConfigHandler

type GetConfigHandler interface {
	Handle(GetConfigParams) middleware.Responder
}

GetConfigHandler interface for that can handle valid get config params

type GetConfigHandlerFunc

type GetConfigHandlerFunc func(GetConfigParams) middleware.Responder

GetConfigHandlerFunc turns a function with the right signature into a get config handler

func (GetConfigHandlerFunc) Handle

Handle executing the request and returning a response

type GetConfigOK

type GetConfigOK struct {

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

GetConfigOK the configuration of entry

swagger:response getConfigOK

func NewGetConfigOK

func NewGetConfigOK() *GetConfigOK

NewGetConfigOK creates GetConfigOK with default headers values

func (*GetConfigOK) SetPayload

func (o *GetConfigOK) SetPayload(payload *models.Config)

SetPayload sets the payload to the get config o k response

func (*GetConfigOK) WithPayload

func (o *GetConfigOK) WithPayload(payload *models.Config) *GetConfigOK

WithPayload adds the payload to the get config o k response

func (*GetConfigOK) WriteResponse

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

WriteResponse to the client

type GetConfigParams

type GetConfigParams struct {

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

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

swagger:parameters getConfig

func NewGetConfigParams

func NewGetConfigParams() GetConfigParams

NewGetConfigParams creates a new GetConfigParams object no default values defined in spec.

func (*GetConfigParams) BindRequest

func (o *GetConfigParams) 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 NewGetConfigParams() beforehand.

type GetConfigURL

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

GetConfigURL generates an URL for the get config operation

func (*GetConfigURL) Build

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

Build a url path and query string

func (*GetConfigURL) BuildFull

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

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

func (*GetConfigURL) Must

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

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

func (*GetConfigURL) SetBasePath

func (o *GetConfigURL) 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 (*GetConfigURL) String

func (o *GetConfigURL) String() string

String returns the string representation of the path with query string

func (*GetConfigURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetConfigURL) WithBasePath

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

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