Documentation ¶
Index ¶
- Constants
- type VisitorList
- type VisitorListDefault
- func (o *VisitorListDefault) SetPayload(payload *models.Error)
- func (o *VisitorListDefault) SetStatusCode(code int)
- func (o *VisitorListDefault) WithPayload(payload *models.Error) *VisitorListDefault
- func (o *VisitorListDefault) WithStatusCode(code int) *VisitorListDefault
- func (o *VisitorListDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type VisitorListHandler
- type VisitorListHandlerFunc
- type VisitorListInternalServerError
- func (o *VisitorListInternalServerError) SetPayload(payload *models.ErrorInternalServerError)
- func (o *VisitorListInternalServerError) WithPayload(payload *models.ErrorInternalServerError) *VisitorListInternalServerError
- func (o *VisitorListInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type VisitorListMethodNotAllowed
- func (o *VisitorListMethodNotAllowed) SetPayload(payload *models.ErrorMethodNotAllowed)
- func (o *VisitorListMethodNotAllowed) WithPayload(payload *models.ErrorMethodNotAllowed) *VisitorListMethodNotAllowed
- func (o *VisitorListMethodNotAllowed) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type VisitorListNotAcceptable
- type VisitorListOK
- type VisitorListParams
- type VisitorListServiceUnavailable
- func (o *VisitorListServiceUnavailable) SetPayload(payload *models.ErrorServiceUnavailable)
- func (o *VisitorListServiceUnavailable) WithPayload(payload *models.ErrorServiceUnavailable) *VisitorListServiceUnavailable
- func (o *VisitorListServiceUnavailable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type VisitorListTooManyRequests
- func (o *VisitorListTooManyRequests) SetPayload(payload *models.ErrorTooManyRequests)
- func (o *VisitorListTooManyRequests) WithPayload(payload *models.ErrorTooManyRequests) *VisitorListTooManyRequests
- func (o *VisitorListTooManyRequests) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type VisitorListURL
- func (o *VisitorListURL) Build() (*url.URL, error)
- func (o *VisitorListURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *VisitorListURL) Must(u *url.URL, err error) *url.URL
- func (o *VisitorListURL) SetBasePath(bp string)
- func (o *VisitorListURL) String() string
- func (o *VisitorListURL) StringFull(scheme, host string) string
- func (o *VisitorListURL) WithBasePath(bp string) *VisitorListURL
Constants ¶
const VisitorListInternalServerErrorCode int = 500
VisitorListInternalServerErrorCode is the HTTP code returned for type VisitorListInternalServerError
const VisitorListMethodNotAllowedCode int = 405
VisitorListMethodNotAllowedCode is the HTTP code returned for type VisitorListMethodNotAllowed
const VisitorListNotAcceptableCode int = 406
VisitorListNotAcceptableCode is the HTTP code returned for type VisitorListNotAcceptable
const VisitorListOKCode int = 200
VisitorListOKCode is the HTTP code returned for type VisitorListOK
VisitorListServiceUnavailableCode is the HTTP code returned for type VisitorListServiceUnavailable
const VisitorListTooManyRequestsCode int = 429
VisitorListTooManyRequestsCode is the HTTP code returned for type VisitorListTooManyRequests
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VisitorList ¶
type VisitorList struct { Context *middleware.Context Handler VisitorListHandler }
VisitorList swagger:route GET / Visitors visitorList
VisitorList visitor list API
func NewVisitorList ¶
func NewVisitorList(ctx *middleware.Context, handler VisitorListHandler) *VisitorList
NewVisitorList creates a new http.Handler for the visitor list operation
func (*VisitorList) ServeHTTP ¶
func (o *VisitorList) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type VisitorListDefault ¶
type VisitorListDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
VisitorListDefault Unexpected error
swagger:response visitorListDefault
func NewVisitorListDefault ¶
func NewVisitorListDefault(code int) *VisitorListDefault
NewVisitorListDefault creates VisitorListDefault with default headers values
func (*VisitorListDefault) SetPayload ¶
func (o *VisitorListDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the visitor list default response
func (*VisitorListDefault) SetStatusCode ¶
func (o *VisitorListDefault) SetStatusCode(code int)
SetStatusCode sets the status to the visitor list default response
func (*VisitorListDefault) WithPayload ¶
func (o *VisitorListDefault) WithPayload(payload *models.Error) *VisitorListDefault
WithPayload adds the payload to the visitor list default response
func (*VisitorListDefault) WithStatusCode ¶
func (o *VisitorListDefault) WithStatusCode(code int) *VisitorListDefault
WithStatusCode adds the status to the visitor list default response
func (*VisitorListDefault) WriteResponse ¶
func (o *VisitorListDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type VisitorListHandler ¶
type VisitorListHandler interface {
Handle(VisitorListParams) middleware.Responder
}
VisitorListHandler interface for that can handle valid visitor list params
type VisitorListHandlerFunc ¶
type VisitorListHandlerFunc func(VisitorListParams) middleware.Responder
VisitorListHandlerFunc turns a function with the right signature into a visitor list handler
func (VisitorListHandlerFunc) Handle ¶
func (fn VisitorListHandlerFunc) Handle(params VisitorListParams) middleware.Responder
Handle executing the request and returning a response
type VisitorListInternalServerError ¶
type VisitorListInternalServerError struct { /* In: Body */ Payload *models.ErrorInternalServerError `json:"body,omitempty"` }
VisitorListInternalServerError Internal Server Error
swagger:response visitorListInternalServerError
func NewVisitorListInternalServerError ¶
func NewVisitorListInternalServerError() *VisitorListInternalServerError
NewVisitorListInternalServerError creates VisitorListInternalServerError with default headers values
func (*VisitorListInternalServerError) SetPayload ¶
func (o *VisitorListInternalServerError) SetPayload(payload *models.ErrorInternalServerError)
SetPayload sets the payload to the visitor list internal server error response
func (*VisitorListInternalServerError) WithPayload ¶
func (o *VisitorListInternalServerError) WithPayload(payload *models.ErrorInternalServerError) *VisitorListInternalServerError
WithPayload adds the payload to the visitor list internal server error response
func (*VisitorListInternalServerError) WriteResponse ¶
func (o *VisitorListInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type VisitorListMethodNotAllowed ¶
type VisitorListMethodNotAllowed struct { /* In: Body */ Payload *models.ErrorMethodNotAllowed `json:"body,omitempty"` }
VisitorListMethodNotAllowed Method Not Allowed
swagger:response visitorListMethodNotAllowed
func NewVisitorListMethodNotAllowed ¶
func NewVisitorListMethodNotAllowed() *VisitorListMethodNotAllowed
NewVisitorListMethodNotAllowed creates VisitorListMethodNotAllowed with default headers values
func (*VisitorListMethodNotAllowed) SetPayload ¶
func (o *VisitorListMethodNotAllowed) SetPayload(payload *models.ErrorMethodNotAllowed)
SetPayload sets the payload to the visitor list method not allowed response
func (*VisitorListMethodNotAllowed) WithPayload ¶
func (o *VisitorListMethodNotAllowed) WithPayload(payload *models.ErrorMethodNotAllowed) *VisitorListMethodNotAllowed
WithPayload adds the payload to the visitor list method not allowed response
func (*VisitorListMethodNotAllowed) WriteResponse ¶
func (o *VisitorListMethodNotAllowed) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type VisitorListNotAcceptable ¶
type VisitorListNotAcceptable struct { /* In: Body */ Payload *models.ErrorNotAcceptable `json:"body,omitempty"` }
VisitorListNotAcceptable Not Acceptable
swagger:response visitorListNotAcceptable
func NewVisitorListNotAcceptable ¶
func NewVisitorListNotAcceptable() *VisitorListNotAcceptable
NewVisitorListNotAcceptable creates VisitorListNotAcceptable with default headers values
func (*VisitorListNotAcceptable) SetPayload ¶
func (o *VisitorListNotAcceptable) SetPayload(payload *models.ErrorNotAcceptable)
SetPayload sets the payload to the visitor list not acceptable response
func (*VisitorListNotAcceptable) WithPayload ¶
func (o *VisitorListNotAcceptable) WithPayload(payload *models.ErrorNotAcceptable) *VisitorListNotAcceptable
WithPayload adds the payload to the visitor list not acceptable response
func (*VisitorListNotAcceptable) WriteResponse ¶
func (o *VisitorListNotAcceptable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type VisitorListOK ¶
type VisitorListOK struct { /* Max Items: 5000 In: Body */ Payload []*models.Visitor `json:"body,omitempty"` }
VisitorListOK Returns data about visitors
swagger:response visitorListOK
func NewVisitorListOK ¶
func NewVisitorListOK() *VisitorListOK
NewVisitorListOK creates VisitorListOK with default headers values
func (*VisitorListOK) SetPayload ¶
func (o *VisitorListOK) SetPayload(payload []*models.Visitor)
SetPayload sets the payload to the visitor list o k response
func (*VisitorListOK) WithPayload ¶
func (o *VisitorListOK) WithPayload(payload []*models.Visitor) *VisitorListOK
WithPayload adds the payload to the visitor list o k response
func (*VisitorListOK) WriteResponse ¶
func (o *VisitorListOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type VisitorListParams ¶
VisitorListParams contains all the bound params for the visitor list operation typically these are obtained from a http.Request
swagger:parameters VisitorList
func NewVisitorListParams ¶
func NewVisitorListParams() VisitorListParams
NewVisitorListParams creates a new VisitorListParams object
There are no default values defined in the spec.
func (*VisitorListParams) BindRequest ¶
func (o *VisitorListParams) 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 NewVisitorListParams() beforehand.
type VisitorListServiceUnavailable ¶
type VisitorListServiceUnavailable struct { models.ErrorServiceUnavailable `json:"body,omitempty"` }Payload *
VisitorListServiceUnavailable Service Unavailable
swagger:response visitorListServiceUnavailable
func NewVisitorListServiceUnavailable ¶
func NewVisitorListServiceUnavailable() *VisitorListServiceUnavailable
NewVisitorListServiceUnavailable creates VisitorListServiceUnavailable with default headers values
func (*VisitorListServiceUnavailable) SetPayload ¶
func (o *VisitorListServiceUnavailable) SetPayload(payload *models.ErrorServiceUnavailable)
SetPayload sets the payload to the visitor list service unavailable response
func (*VisitorListServiceUnavailable) WithPayload ¶
func (o *VisitorListServiceUnavailable) WithPayload(payload *models.ErrorServiceUnavailable) *VisitorListServiceUnavailable
WithPayload adds the payload to the visitor list service unavailable response
func (*VisitorListServiceUnavailable) WriteResponse ¶
func (o *VisitorListServiceUnavailable) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type VisitorListTooManyRequests ¶
type VisitorListTooManyRequests struct { /* In: Body */ Payload *models.ErrorTooManyRequests `json:"body,omitempty"` }
VisitorListTooManyRequests Too many request
swagger:response visitorListTooManyRequests
func NewVisitorListTooManyRequests ¶
func NewVisitorListTooManyRequests() *VisitorListTooManyRequests
NewVisitorListTooManyRequests creates VisitorListTooManyRequests with default headers values
func (*VisitorListTooManyRequests) SetPayload ¶
func (o *VisitorListTooManyRequests) SetPayload(payload *models.ErrorTooManyRequests)
SetPayload sets the payload to the visitor list too many requests response
func (*VisitorListTooManyRequests) WithPayload ¶
func (o *VisitorListTooManyRequests) WithPayload(payload *models.ErrorTooManyRequests) *VisitorListTooManyRequests
WithPayload adds the payload to the visitor list too many requests response
func (*VisitorListTooManyRequests) WriteResponse ¶
func (o *VisitorListTooManyRequests) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type VisitorListURL ¶
type VisitorListURL struct {
// contains filtered or unexported fields
}
VisitorListURL generates an URL for the visitor list operation
func (*VisitorListURL) Build ¶
func (o *VisitorListURL) Build() (*url.URL, error)
Build a url path and query string
func (*VisitorListURL) BuildFull ¶
func (o *VisitorListURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*VisitorListURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*VisitorListURL) SetBasePath ¶
func (o *VisitorListURL) 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 (*VisitorListURL) String ¶
func (o *VisitorListURL) String() string
String returns the string representation of the path with query string
func (*VisitorListURL) StringFull ¶
func (o *VisitorListURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*VisitorListURL) WithBasePath ¶
func (o *VisitorListURL) WithBasePath(bp string) *VisitorListURL
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