reg_agent

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: 9 Imported by: 0

Documentation

Index

Constants

View Source
const PostAgentNoContentCode int = 204

PostAgentNoContentCode is the HTTP code returned for type PostAgentNoContent

Variables

This section is empty.

Functions

This section is empty.

Types

type PostAgent

type PostAgent struct {
	Context *middleware.Context
	Handler PostAgentHandler
}

PostAgent swagger:route POST /agent regAgent postAgent

Register new agent

func NewPostAgent

func NewPostAgent(ctx *middleware.Context, handler PostAgentHandler) *PostAgent

NewPostAgent creates a new http.Handler for the post agent operation

func (*PostAgent) ServeHTTP

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

type PostAgentHandler

type PostAgentHandler interface {
	Handle(PostAgentParams) middleware.Responder
}

PostAgentHandler interface for that can handle valid post agent params

type PostAgentHandlerFunc

type PostAgentHandlerFunc func(PostAgentParams) middleware.Responder

PostAgentHandlerFunc turns a function with the right signature into a post agent handler

func (PostAgentHandlerFunc) Handle

Handle executing the request and returning a response

type PostAgentNoContent

type PostAgentNoContent struct {
}

PostAgentNoContent OK No Content

swagger:response postAgentNoContent

func NewPostAgentNoContent

func NewPostAgentNoContent() *PostAgentNoContent

NewPostAgentNoContent creates PostAgentNoContent with default headers values

func (*PostAgentNoContent) WriteResponse

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

WriteResponse to the client

type PostAgentParams

type PostAgentParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	Body *models.RequestAgent
}

PostAgentParams contains all the bound params for the post agent operation typically these are obtained from a http.Request

swagger:parameters PostAgent

func NewPostAgentParams

func NewPostAgentParams() PostAgentParams

NewPostAgentParams creates a new PostAgentParams object no default values defined in spec.

func (*PostAgentParams) BindRequest

func (o *PostAgentParams) 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 NewPostAgentParams() beforehand.

type PostAgentURL

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

PostAgentURL generates an URL for the post agent operation

func (*PostAgentURL) Build

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

Build a url path and query string

func (*PostAgentURL) BuildFull

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

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

func (*PostAgentURL) Must

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

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

func (*PostAgentURL) SetBasePath

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

func (o *PostAgentURL) String() string

String returns the string representation of the path with query string

func (*PostAgentURL) StringFull

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

StringFull returns the string representation of a complete url

func (*PostAgentURL) WithBasePath

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

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