Documentation ¶
Index ¶
- Constants
- type PostAgent
- type PostAgentHandler
- type PostAgentHandlerFunc
- type PostAgentNoContent
- type PostAgentParams
- type PostAgentURL
- func (o *PostAgentURL) Build() (*url.URL, error)
- func (o *PostAgentURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PostAgentURL) Must(u *url.URL, err error) *url.URL
- func (o *PostAgentURL) SetBasePath(bp string)
- func (o *PostAgentURL) String() string
- func (o *PostAgentURL) StringFull(scheme, host string) string
- func (o *PostAgentURL) WithBasePath(bp string) *PostAgentURL
Constants ¶
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
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 ¶
func (fn PostAgentHandlerFunc) Handle(params PostAgentParams) middleware.Responder
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 ¶
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