visitors

package
v0.0.0-...-d6856e5 Latest Latest
Warning

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

Go to latest
Published: May 4, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const VisitorListInternalServerErrorCode int = 500

VisitorListInternalServerErrorCode is the HTTP code returned for type VisitorListInternalServerError

View Source
const VisitorListMethodNotAllowedCode int = 405

VisitorListMethodNotAllowedCode is the HTTP code returned for type VisitorListMethodNotAllowed

View Source
const VisitorListNotAcceptableCode int = 406

VisitorListNotAcceptableCode is the HTTP code returned for type VisitorListNotAcceptable

View Source
const VisitorListOKCode int = 200

VisitorListOKCode is the HTTP code returned for type VisitorListOK

View Source
const VisitorListServiceUnavailableCode int = 503

VisitorListServiceUnavailableCode is the HTTP code returned for type VisitorListServiceUnavailable

View Source
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

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

SetPayload sets the payload to the visitor list internal server error response

func (*VisitorListInternalServerError) WithPayload

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

SetPayload sets the payload to the visitor list method not allowed response

func (*VisitorListMethodNotAllowed) WithPayload

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

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

type VisitorListParams struct {

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

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 {

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

VisitorListServiceUnavailable Service Unavailable

swagger:response visitorListServiceUnavailable

func NewVisitorListServiceUnavailable

func NewVisitorListServiceUnavailable() *VisitorListServiceUnavailable

NewVisitorListServiceUnavailable creates VisitorListServiceUnavailable with default headers values

func (*VisitorListServiceUnavailable) SetPayload

SetPayload sets the payload to the visitor list service unavailable response

func (*VisitorListServiceUnavailable) WithPayload

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

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

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL