address

package
v0.0.0-...-037b8db Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const GetAddressAgentBadRequestCode int = 400

GetAddressAgentBadRequestCode is the HTTP code returned for type GetAddressAgentBadRequest

View Source
const GetAddressAgentOKCode int = 200

GetAddressAgentOKCode is the HTTP code returned for type GetAddressAgentOK

Variables

This section is empty.

Functions

This section is empty.

Types

type GetAddressAgent

type GetAddressAgent struct {
	Context *middleware.Context
	Handler GetAddressAgentHandler
}

GetAddressAgent swagger:route GET /address/{agent} address getAddressAgent

Get agents ip

func NewGetAddressAgent

func NewGetAddressAgent(ctx *middleware.Context, handler GetAddressAgentHandler) *GetAddressAgent

NewGetAddressAgent creates a new http.Handler for the get address agent operation

func (*GetAddressAgent) ServeHTTP

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

type GetAddressAgentBadRequest

type GetAddressAgentBadRequest struct {

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

GetAddressAgentBadRequest Bad Request

swagger:response getAddressAgentBadRequest

func NewGetAddressAgentBadRequest

func NewGetAddressAgentBadRequest() *GetAddressAgentBadRequest

NewGetAddressAgentBadRequest creates GetAddressAgentBadRequest with default headers values

func (*GetAddressAgentBadRequest) SetPayload

func (o *GetAddressAgentBadRequest) SetPayload(payload *models.ResponseError)

SetPayload sets the payload to the get address agent bad request response

func (*GetAddressAgentBadRequest) WithPayload

WithPayload adds the payload to the get address agent bad request response

func (*GetAddressAgentBadRequest) WriteResponse

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

WriteResponse to the client

type GetAddressAgentHandler

type GetAddressAgentHandler interface {
	Handle(GetAddressAgentParams) middleware.Responder
}

GetAddressAgentHandler interface for that can handle valid get address agent params

type GetAddressAgentHandlerFunc

type GetAddressAgentHandlerFunc func(GetAddressAgentParams) middleware.Responder

GetAddressAgentHandlerFunc turns a function with the right signature into a get address agent handler

func (GetAddressAgentHandlerFunc) Handle

Handle executing the request and returning a response

type GetAddressAgentOK

type GetAddressAgentOK struct {

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

GetAddressAgentOK OK

swagger:response getAddressAgentOK

func NewGetAddressAgentOK

func NewGetAddressAgentOK() *GetAddressAgentOK

NewGetAddressAgentOK creates GetAddressAgentOK with default headers values

func (*GetAddressAgentOK) SetPayload

func (o *GetAddressAgentOK) SetPayload(payload *models.RequestAgent)

SetPayload sets the payload to the get address agent o k response

func (*GetAddressAgentOK) WithPayload

func (o *GetAddressAgentOK) WithPayload(payload *models.RequestAgent) *GetAddressAgentOK

WithPayload adds the payload to the get address agent o k response

func (*GetAddressAgentOK) WriteResponse

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

WriteResponse to the client

type GetAddressAgentParams

type GetAddressAgentParams struct {

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

	/*
	  Required: true
	  In: path
	*/
	Agent string
}

GetAddressAgentParams contains all the bound params for the get address agent operation typically these are obtained from a http.Request

swagger:parameters GetAddressAgent

func NewGetAddressAgentParams

func NewGetAddressAgentParams() GetAddressAgentParams

NewGetAddressAgentParams creates a new GetAddressAgentParams object no default values defined in spec.

func (*GetAddressAgentParams) BindRequest

func (o *GetAddressAgentParams) 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 NewGetAddressAgentParams() beforehand.

type GetAddressAgentURL

type GetAddressAgentURL struct {
	Agent string
	// contains filtered or unexported fields
}

GetAddressAgentURL generates an URL for the get address agent operation

func (*GetAddressAgentURL) Build

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

Build a url path and query string

func (*GetAddressAgentURL) BuildFull

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

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

func (*GetAddressAgentURL) Must

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

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

func (*GetAddressAgentURL) SetBasePath

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

func (o *GetAddressAgentURL) String() string

String returns the string representation of the path with query string

func (*GetAddressAgentURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetAddressAgentURL) WithBasePath

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

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