app_info

package
v0.0.0-...-71505b4 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const GetInfoBadRequestCode int = 400

GetInfoBadRequestCode is the HTTP code returned for type GetInfoBadRequest

View Source
const GetInfoInternalServerErrorCode int = 500

GetInfoInternalServerErrorCode is the HTTP code returned for type GetInfoInternalServerError

View Source
const GetInfoOKCode int = 200

GetInfoOKCode is the HTTP code returned for type GetInfoOK

Variables

This section is empty.

Functions

This section is empty.

Types

type GetInfo

type GetInfo struct {
	Context *middleware.Context
	Handler GetInfoHandler
}

GetInfo swagger:route GET /v2/data/{platform}/{network}/info App Info getInfo

GetInfo get info API

func NewGetInfo

func NewGetInfo(ctx *middleware.Context, handler GetInfoHandler) *GetInfo

NewGetInfo creates a new http.Handler for the get info operation

func (*GetInfo) ServeHTTP

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

type GetInfoBadRequest

type GetInfoBadRequest struct {
}

GetInfoBadRequest Bad request

swagger:response getInfoBadRequest

func NewGetInfoBadRequest

func NewGetInfoBadRequest() *GetInfoBadRequest

NewGetInfoBadRequest creates GetInfoBadRequest with default headers values

func (*GetInfoBadRequest) WriteResponse

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

WriteResponse to the client

type GetInfoHandler

type GetInfoHandler interface {
	Handle(GetInfoParams) middleware.Responder
}

GetInfoHandler interface for that can handle valid get info params

type GetInfoHandlerFunc

type GetInfoHandlerFunc func(GetInfoParams) middleware.Responder

GetInfoHandlerFunc turns a function with the right signature into a get info handler

func (GetInfoHandlerFunc) Handle

Handle executing the request and returning a response

type GetInfoInternalServerError

type GetInfoInternalServerError struct {
}

GetInfoInternalServerError Internal error

swagger:response getInfoInternalServerError

func NewGetInfoInternalServerError

func NewGetInfoInternalServerError() *GetInfoInternalServerError

NewGetInfoInternalServerError creates GetInfoInternalServerError with default headers values

func (*GetInfoInternalServerError) WriteResponse

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

WriteResponse to the client

type GetInfoOK

type GetInfoOK struct {

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

GetInfoOK Application info endpoint

swagger:response getInfoOK

func NewGetInfoOK

func NewGetInfoOK() *GetInfoOK

NewGetInfoOK creates GetInfoOK with default headers values

func (*GetInfoOK) SetPayload

func (o *GetInfoOK) SetPayload(payload *models.Info)

SetPayload sets the payload to the get info o k response

func (*GetInfoOK) WithPayload

func (o *GetInfoOK) WithPayload(payload *models.Info) *GetInfoOK

WithPayload adds the payload to the get info o k response

func (*GetInfoOK) WriteResponse

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

WriteResponse to the client

type GetInfoParams

type GetInfoParams struct {

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

	/*Not used
	  Required: true
	  In: path
	*/
	Network string
	/*Not used
	  Required: true
	  In: path
	*/
	Platform string
}

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

swagger:parameters getInfo

func NewGetInfoParams

func NewGetInfoParams() GetInfoParams

NewGetInfoParams creates a new GetInfoParams object no default values defined in spec.

func (*GetInfoParams) BindRequest

func (o *GetInfoParams) 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 NewGetInfoParams() beforehand.

type GetInfoURL

type GetInfoURL struct {
	Network  string
	Platform string
	// contains filtered or unexported fields
}

GetInfoURL generates an URL for the get info operation

func (*GetInfoURL) Build

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

Build a url path and query string

func (*GetInfoURL) BuildFull

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

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

func (*GetInfoURL) Must

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

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

func (*GetInfoURL) SetBasePath

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

func (o *GetInfoURL) String() string

String returns the string representation of the path with query string

func (*GetInfoURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetInfoURL) WithBasePath

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

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