records

package
v0.0.0-...-f3ca651 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const CreateRecordBadRequestCode int = 400

CreateRecordBadRequestCode is the HTTP code returned for type CreateRecordBadRequest

View Source
const CreateRecordInternalServerErrorCode int = 500

CreateRecordInternalServerErrorCode is the HTTP code returned for type CreateRecordInternalServerError

View Source
const CreateRecordOKCode int = 200

CreateRecordOKCode is the HTTP code returned for type CreateRecordOK

View Source
const DeleteRecordBadRequestCode int = 400

DeleteRecordBadRequestCode is the HTTP code returned for type DeleteRecordBadRequest

View Source
const DeleteRecordInternalServerErrorCode int = 500

DeleteRecordInternalServerErrorCode is the HTTP code returned for type DeleteRecordInternalServerError

View Source
const DeleteRecordNotFoundCode int = 404

DeleteRecordNotFoundCode is the HTTP code returned for type DeleteRecordNotFound

View Source
const DeleteRecordOKCode int = 200

DeleteRecordOKCode is the HTTP code returned for type DeleteRecordOK

View Source
const FindRecordInternalServerErrorCode int = 500

FindRecordInternalServerErrorCode is the HTTP code returned for type FindRecordInternalServerError

View Source
const FindRecordNotFoundCode int = 404

FindRecordNotFoundCode is the HTTP code returned for type FindRecordNotFound

View Source
const FindRecordOKCode int = 200

FindRecordOKCode is the HTTP code returned for type FindRecordOK

View Source
const GetRecordInternalServerErrorCode int = 500

GetRecordInternalServerErrorCode is the HTTP code returned for type GetRecordInternalServerError

View Source
const GetRecordNotFoundCode int = 404

GetRecordNotFoundCode is the HTTP code returned for type GetRecordNotFound

View Source
const GetRecordOKCode int = 200

GetRecordOKCode is the HTTP code returned for type GetRecordOK

View Source
const ListRecordsInternalServerErrorCode int = 500

ListRecordsInternalServerErrorCode is the HTTP code returned for type ListRecordsInternalServerError

View Source
const ListRecordsOKCode int = 200

ListRecordsOKCode is the HTTP code returned for type ListRecordsOK

View Source
const UpdateRecordBadRequestCode int = 400

UpdateRecordBadRequestCode is the HTTP code returned for type UpdateRecordBadRequest

View Source
const UpdateRecordInternalServerErrorCode int = 500

UpdateRecordInternalServerErrorCode is the HTTP code returned for type UpdateRecordInternalServerError

View Source
const UpdateRecordNotFoundCode int = 404

UpdateRecordNotFoundCode is the HTTP code returned for type UpdateRecordNotFound

View Source
const UpdateRecordOKCode int = 200

UpdateRecordOKCode is the HTTP code returned for type UpdateRecordOK

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateRecord

type CreateRecord struct {
	Context *middleware.Context
	Handler CreateRecordHandler
}

CreateRecord swagger:route POST /records records createRecord

Create a new record

func NewCreateRecord

func NewCreateRecord(ctx *middleware.Context, handler CreateRecordHandler) *CreateRecord

NewCreateRecord creates a new http.Handler for the create record operation

func (*CreateRecord) ServeHTTP

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

type CreateRecordBadRequest

type CreateRecordBadRequest struct {

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

CreateRecordBadRequest Bad request

swagger:response createRecordBadRequest

func NewCreateRecordBadRequest

func NewCreateRecordBadRequest() *CreateRecordBadRequest

NewCreateRecordBadRequest creates CreateRecordBadRequest with default headers values

func (*CreateRecordBadRequest) SetPayload

func (o *CreateRecordBadRequest) SetPayload(payload *models.BadRequest)

SetPayload sets the payload to the create record bad request response

func (*CreateRecordBadRequest) WithPayload

WithPayload adds the payload to the create record bad request response

func (*CreateRecordBadRequest) WriteResponse

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

WriteResponse to the client

type CreateRecordHandler

type CreateRecordHandler interface {
	Handle(CreateRecordParams, *models.Principal) middleware.Responder
}

CreateRecordHandler interface for that can handle valid create record params

type CreateRecordHandlerFunc

type CreateRecordHandlerFunc func(CreateRecordParams, *models.Principal) middleware.Responder

CreateRecordHandlerFunc turns a function with the right signature into a create record handler

func (CreateRecordHandlerFunc) Handle

Handle executing the request and returning a response

type CreateRecordInternalServerError

type CreateRecordInternalServerError struct {

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

CreateRecordInternalServerError Internal Server Error

swagger:response createRecordInternalServerError

func NewCreateRecordInternalServerError

func NewCreateRecordInternalServerError() *CreateRecordInternalServerError

NewCreateRecordInternalServerError creates CreateRecordInternalServerError with default headers values

func (*CreateRecordInternalServerError) SetPayload

SetPayload sets the payload to the create record internal server error response

func (*CreateRecordInternalServerError) WithPayload

WithPayload adds the payload to the create record internal server error response

func (*CreateRecordInternalServerError) WriteResponse

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

WriteResponse to the client

type CreateRecordOK

type CreateRecordOK struct {

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

CreateRecordOK Successfully created

swagger:response createRecordOK

func NewCreateRecordOK

func NewCreateRecordOK() *CreateRecordOK

NewCreateRecordOK creates CreateRecordOK with default headers values

func (*CreateRecordOK) SetPayload

func (o *CreateRecordOK) SetPayload(payload *models.RecordOutput)

SetPayload sets the payload to the create record o k response

func (*CreateRecordOK) WithPayload

func (o *CreateRecordOK) WithPayload(payload *models.RecordOutput) *CreateRecordOK

WithPayload adds the payload to the create record o k response

func (*CreateRecordOK) WriteResponse

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

WriteResponse to the client

type CreateRecordParams

type CreateRecordParams struct {

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

	/*Override user ID
	  In: header
	*/
	XUserID *string
	/*Record to be created
	  Required: true
	  In: body
	*/
	Body *models.RecordInput
}

CreateRecordParams contains all the bound params for the create record operation typically these are obtained from a http.Request

swagger:parameters createRecord

func NewCreateRecordParams

func NewCreateRecordParams() CreateRecordParams

NewCreateRecordParams creates a new CreateRecordParams object no default values defined in spec.

func (*CreateRecordParams) BindRequest

func (o *CreateRecordParams) 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 NewCreateRecordParams() beforehand.

type CreateRecordURL

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

CreateRecordURL generates an URL for the create record operation

func (*CreateRecordURL) Build

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

Build a url path and query string

func (*CreateRecordURL) BuildFull

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

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

func (*CreateRecordURL) Must

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

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

func (*CreateRecordURL) SetBasePath

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

func (o *CreateRecordURL) String() string

String returns the string representation of the path with query string

func (*CreateRecordURL) StringFull

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

StringFull returns the string representation of a complete url

func (*CreateRecordURL) WithBasePath

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

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

type DeleteRecord

type DeleteRecord struct {
	Context *middleware.Context
	Handler DeleteRecordHandler
}

DeleteRecord swagger:route DELETE /records/{recordId} records deleteRecord

Deletes a record

func NewDeleteRecord

func NewDeleteRecord(ctx *middleware.Context, handler DeleteRecordHandler) *DeleteRecord

NewDeleteRecord creates a new http.Handler for the delete record operation

func (*DeleteRecord) ServeHTTP

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

type DeleteRecordBadRequest

type DeleteRecordBadRequest struct {

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

DeleteRecordBadRequest Bad request

swagger:response deleteRecordBadRequest

func NewDeleteRecordBadRequest

func NewDeleteRecordBadRequest() *DeleteRecordBadRequest

NewDeleteRecordBadRequest creates DeleteRecordBadRequest with default headers values

func (*DeleteRecordBadRequest) SetPayload

func (o *DeleteRecordBadRequest) SetPayload(payload *models.BadRequest)

SetPayload sets the payload to the delete record bad request response

func (*DeleteRecordBadRequest) WithPayload

WithPayload adds the payload to the delete record bad request response

func (*DeleteRecordBadRequest) WriteResponse

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

WriteResponse to the client

type DeleteRecordHandler

type DeleteRecordHandler interface {
	Handle(DeleteRecordParams, *models.Principal) middleware.Responder
}

DeleteRecordHandler interface for that can handle valid delete record params

type DeleteRecordHandlerFunc

type DeleteRecordHandlerFunc func(DeleteRecordParams, *models.Principal) middleware.Responder

DeleteRecordHandlerFunc turns a function with the right signature into a delete record handler

func (DeleteRecordHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteRecordInternalServerError

type DeleteRecordInternalServerError struct {

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

DeleteRecordInternalServerError Internal Server Error

swagger:response deleteRecordInternalServerError

func NewDeleteRecordInternalServerError

func NewDeleteRecordInternalServerError() *DeleteRecordInternalServerError

NewDeleteRecordInternalServerError creates DeleteRecordInternalServerError with default headers values

func (*DeleteRecordInternalServerError) SetPayload

SetPayload sets the payload to the delete record internal server error response

func (*DeleteRecordInternalServerError) WithPayload

WithPayload adds the payload to the delete record internal server error response

func (*DeleteRecordInternalServerError) WriteResponse

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

WriteResponse to the client

type DeleteRecordNotFound

type DeleteRecordNotFound struct {

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

DeleteRecordNotFound Record not found

swagger:response deleteRecordNotFound

func NewDeleteRecordNotFound

func NewDeleteRecordNotFound() *DeleteRecordNotFound

NewDeleteRecordNotFound creates DeleteRecordNotFound with default headers values

func (*DeleteRecordNotFound) SetPayload

func (o *DeleteRecordNotFound) SetPayload(payload *models.NotFoundError)

SetPayload sets the payload to the delete record not found response

func (*DeleteRecordNotFound) WithPayload

WithPayload adds the payload to the delete record not found response

func (*DeleteRecordNotFound) WriteResponse

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

WriteResponse to the client

type DeleteRecordOK

type DeleteRecordOK struct {
}

DeleteRecordOK Record deleted

swagger:response deleteRecordOK

func NewDeleteRecordOK

func NewDeleteRecordOK() *DeleteRecordOK

NewDeleteRecordOK creates DeleteRecordOK with default headers values

func (*DeleteRecordOK) WriteResponse

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

WriteResponse to the client

type DeleteRecordParams

type DeleteRecordParams struct {

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

	/*Override user ID
	  In: header
	*/
	XUserID *string
	/*ID of record to be updated
	  Required: true
	  In: path
	*/
	RecordID string
}

DeleteRecordParams contains all the bound params for the delete record operation typically these are obtained from a http.Request

swagger:parameters deleteRecord

func NewDeleteRecordParams

func NewDeleteRecordParams() DeleteRecordParams

NewDeleteRecordParams creates a new DeleteRecordParams object no default values defined in spec.

func (*DeleteRecordParams) BindRequest

func (o *DeleteRecordParams) 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 NewDeleteRecordParams() beforehand.

type DeleteRecordURL

type DeleteRecordURL struct {
	RecordID string
	// contains filtered or unexported fields
}

DeleteRecordURL generates an URL for the delete record operation

func (*DeleteRecordURL) Build

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

Build a url path and query string

func (*DeleteRecordURL) BuildFull

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

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

func (*DeleteRecordURL) Must

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

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

func (*DeleteRecordURL) SetBasePath

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

func (o *DeleteRecordURL) String() string

String returns the string representation of the path with query string

func (*DeleteRecordURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DeleteRecordURL) WithBasePath

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

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

type FindRecord

type FindRecord struct {
	Context *middleware.Context
	Handler FindRecordHandler
}

FindRecord swagger:route GET /find records findRecord

Find a record by path

func NewFindRecord

func NewFindRecord(ctx *middleware.Context, handler FindRecordHandler) *FindRecord

NewFindRecord creates a new http.Handler for the find record operation

func (*FindRecord) ServeHTTP

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

type FindRecordHandler

type FindRecordHandler interface {
	Handle(FindRecordParams, *models.Principal) middleware.Responder
}

FindRecordHandler interface for that can handle valid find record params

type FindRecordHandlerFunc

type FindRecordHandlerFunc func(FindRecordParams, *models.Principal) middleware.Responder

FindRecordHandlerFunc turns a function with the right signature into a find record handler

func (FindRecordHandlerFunc) Handle

Handle executing the request and returning a response

type FindRecordInternalServerError

type FindRecordInternalServerError struct {

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

FindRecordInternalServerError Internal Server Error

swagger:response findRecordInternalServerError

func NewFindRecordInternalServerError

func NewFindRecordInternalServerError() *FindRecordInternalServerError

NewFindRecordInternalServerError creates FindRecordInternalServerError with default headers values

func (*FindRecordInternalServerError) SetPayload

SetPayload sets the payload to the find record internal server error response

func (*FindRecordInternalServerError) WithPayload

WithPayload adds the payload to the find record internal server error response

func (*FindRecordInternalServerError) WriteResponse

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

WriteResponse to the client

type FindRecordNotFound

type FindRecordNotFound struct {

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

FindRecordNotFound Record not found

swagger:response findRecordNotFound

func NewFindRecordNotFound

func NewFindRecordNotFound() *FindRecordNotFound

NewFindRecordNotFound creates FindRecordNotFound with default headers values

func (*FindRecordNotFound) SetPayload

func (o *FindRecordNotFound) SetPayload(payload *models.NotFoundError)

SetPayload sets the payload to the find record not found response

func (*FindRecordNotFound) WithPayload

func (o *FindRecordNotFound) WithPayload(payload *models.NotFoundError) *FindRecordNotFound

WithPayload adds the payload to the find record not found response

func (*FindRecordNotFound) WriteResponse

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

WriteResponse to the client

type FindRecordOK

type FindRecordOK struct {

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

FindRecordOK The retrieved record

swagger:response findRecordOK

func NewFindRecordOK

func NewFindRecordOK() *FindRecordOK

NewFindRecordOK creates FindRecordOK with default headers values

func (*FindRecordOK) SetPayload

func (o *FindRecordOK) SetPayload(payload *models.RecordOutput)

SetPayload sets the payload to the find record o k response

func (*FindRecordOK) WithPayload

func (o *FindRecordOK) WithPayload(payload *models.RecordOutput) *FindRecordOK

WithPayload adds the payload to the find record o k response

func (*FindRecordOK) WriteResponse

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

WriteResponse to the client

type FindRecordParams

type FindRecordParams struct {

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

	/*Override user ID
	  In: header
	*/
	XUserID *string
	/*Path of record to find
	  Required: true
	  In: query
	*/
	Path string
}

FindRecordParams contains all the bound params for the find record operation typically these are obtained from a http.Request

swagger:parameters findRecord

func NewFindRecordParams

func NewFindRecordParams() FindRecordParams

NewFindRecordParams creates a new FindRecordParams object no default values defined in spec.

func (*FindRecordParams) BindRequest

func (o *FindRecordParams) 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 NewFindRecordParams() beforehand.

type FindRecordURL

type FindRecordURL struct {
	Path string
	// contains filtered or unexported fields
}

FindRecordURL generates an URL for the find record operation

func (*FindRecordURL) Build

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

Build a url path and query string

func (*FindRecordURL) BuildFull

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

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

func (*FindRecordURL) Must

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

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

func (*FindRecordURL) SetBasePath

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

func (o *FindRecordURL) String() string

String returns the string representation of the path with query string

func (*FindRecordURL) StringFull

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

StringFull returns the string representation of a complete url

func (*FindRecordURL) WithBasePath

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

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

type GetRecord

type GetRecord struct {
	Context *middleware.Context
	Handler GetRecordHandler
}

GetRecord swagger:route GET /records/{recordId} records getRecord

Find record by ID

func NewGetRecord

func NewGetRecord(ctx *middleware.Context, handler GetRecordHandler) *GetRecord

NewGetRecord creates a new http.Handler for the get record operation

func (*GetRecord) ServeHTTP

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

type GetRecordHandler

type GetRecordHandler interface {
	Handle(GetRecordParams, *models.Principal) middleware.Responder
}

GetRecordHandler interface for that can handle valid get record params

type GetRecordHandlerFunc

type GetRecordHandlerFunc func(GetRecordParams, *models.Principal) middleware.Responder

GetRecordHandlerFunc turns a function with the right signature into a get record handler

func (GetRecordHandlerFunc) Handle

Handle executing the request and returning a response

type GetRecordInternalServerError

type GetRecordInternalServerError struct {

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

GetRecordInternalServerError Internal Server Error

swagger:response getRecordInternalServerError

func NewGetRecordInternalServerError

func NewGetRecordInternalServerError() *GetRecordInternalServerError

NewGetRecordInternalServerError creates GetRecordInternalServerError with default headers values

func (*GetRecordInternalServerError) SetPayload

SetPayload sets the payload to the get record internal server error response

func (*GetRecordInternalServerError) WithPayload

WithPayload adds the payload to the get record internal server error response

func (*GetRecordInternalServerError) WriteResponse

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

WriteResponse to the client

type GetRecordNotFound

type GetRecordNotFound struct {

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

GetRecordNotFound Record not found

swagger:response getRecordNotFound

func NewGetRecordNotFound

func NewGetRecordNotFound() *GetRecordNotFound

NewGetRecordNotFound creates GetRecordNotFound with default headers values

func (*GetRecordNotFound) SetPayload

func (o *GetRecordNotFound) SetPayload(payload *models.NotFoundError)

SetPayload sets the payload to the get record not found response

func (*GetRecordNotFound) WithPayload

func (o *GetRecordNotFound) WithPayload(payload *models.NotFoundError) *GetRecordNotFound

WithPayload adds the payload to the get record not found response

func (*GetRecordNotFound) WriteResponse

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

WriteResponse to the client

type GetRecordOK

type GetRecordOK struct {

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

GetRecordOK The retrieved record

swagger:response getRecordOK

func NewGetRecordOK

func NewGetRecordOK() *GetRecordOK

NewGetRecordOK creates GetRecordOK with default headers values

func (*GetRecordOK) SetPayload

func (o *GetRecordOK) SetPayload(payload *models.RecordOutput)

SetPayload sets the payload to the get record o k response

func (*GetRecordOK) WithPayload

func (o *GetRecordOK) WithPayload(payload *models.RecordOutput) *GetRecordOK

WithPayload adds the payload to the get record o k response

func (*GetRecordOK) WriteResponse

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

WriteResponse to the client

type GetRecordParams

type GetRecordParams struct {

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

	/*Override user ID
	  In: header
	*/
	XUserID *string
	/*ID of record to return
	  Required: true
	  In: path
	*/
	RecordID string
}

GetRecordParams contains all the bound params for the get record operation typically these are obtained from a http.Request

swagger:parameters getRecord

func NewGetRecordParams

func NewGetRecordParams() GetRecordParams

NewGetRecordParams creates a new GetRecordParams object no default values defined in spec.

func (*GetRecordParams) BindRequest

func (o *GetRecordParams) 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 NewGetRecordParams() beforehand.

type GetRecordURL

type GetRecordURL struct {
	RecordID string
	// contains filtered or unexported fields
}

GetRecordURL generates an URL for the get record operation

func (*GetRecordURL) Build

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

Build a url path and query string

func (*GetRecordURL) BuildFull

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

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

func (*GetRecordURL) Must

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

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

func (*GetRecordURL) SetBasePath

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

func (o *GetRecordURL) String() string

String returns the string representation of the path with query string

func (*GetRecordURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetRecordURL) WithBasePath

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

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

type ListRecords

type ListRecords struct {
	Context *middleware.Context
	Handler ListRecordsHandler
}

ListRecords swagger:route GET /records records listRecords

List records

func NewListRecords

func NewListRecords(ctx *middleware.Context, handler ListRecordsHandler) *ListRecords

NewListRecords creates a new http.Handler for the list records operation

func (*ListRecords) ServeHTTP

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

type ListRecordsHandler

type ListRecordsHandler interface {
	Handle(ListRecordsParams, *models.Principal) middleware.Responder
}

ListRecordsHandler interface for that can handle valid list records params

type ListRecordsHandlerFunc

type ListRecordsHandlerFunc func(ListRecordsParams, *models.Principal) middleware.Responder

ListRecordsHandlerFunc turns a function with the right signature into a list records handler

func (ListRecordsHandlerFunc) Handle

Handle executing the request and returning a response

type ListRecordsInternalServerError

type ListRecordsInternalServerError struct {

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

ListRecordsInternalServerError Internal Server Error

swagger:response listRecordsInternalServerError

func NewListRecordsInternalServerError

func NewListRecordsInternalServerError() *ListRecordsInternalServerError

NewListRecordsInternalServerError creates ListRecordsInternalServerError with default headers values

func (*ListRecordsInternalServerError) SetPayload

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

func (*ListRecordsInternalServerError) WithPayload

WithPayload adds the payload to the list records internal server error response

func (*ListRecordsInternalServerError) WriteResponse

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

WriteResponse to the client

type ListRecordsOK

type ListRecordsOK struct {

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

ListRecordsOK Successful query

swagger:response listRecordsOK

func NewListRecordsOK

func NewListRecordsOK() *ListRecordsOK

NewListRecordsOK creates ListRecordsOK with default headers values

func (*ListRecordsOK) SetPayload

func (o *ListRecordsOK) SetPayload(payload *models.QueryResult)

SetPayload sets the payload to the list records o k response

func (*ListRecordsOK) WithPayload

func (o *ListRecordsOK) WithPayload(payload *models.QueryResult) *ListRecordsOK

WithPayload adds the payload to the list records o k response

func (*ListRecordsOK) WriteResponse

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

WriteResponse to the client

type ListRecordsParams

type ListRecordsParams struct {

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

	/*Override user ID
	  In: header
	*/
	XUserID *string
	/*
	  Maximum: 1000
	  Minimum: 0
	  In: query
	*/
	Limit *int64
	/*
	  Minimum: 0
	  In: query
	*/
	Offset *int64
	/*
	  In: query
	*/
	OrderBy *string
	/*
	  In: query
	*/
	OrderByDesc *bool
	/*
	  In: query
	*/
	OrderByProperty *string
	/*
	  In: query
	*/
	OrderByPropertyDesc *bool
	/*
	  In: query
	*/
	Parent *string
	/*
	  In: query
	*/
	Prefix *string
}

ListRecordsParams contains all the bound params for the list records operation typically these are obtained from a http.Request

swagger:parameters listRecords

func NewListRecordsParams

func NewListRecordsParams() ListRecordsParams

NewListRecordsParams creates a new ListRecordsParams object no default values defined in spec.

func (*ListRecordsParams) BindRequest

func (o *ListRecordsParams) 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 NewListRecordsParams() beforehand.

type ListRecordsURL

type ListRecordsURL struct {
	Limit               *int64
	Offset              *int64
	OrderBy             *string
	OrderByDesc         *bool
	OrderByProperty     *string
	OrderByPropertyDesc *bool
	Parent              *string
	Prefix              *string
	// contains filtered or unexported fields
}

ListRecordsURL generates an URL for the list records operation

func (*ListRecordsURL) Build

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

Build a url path and query string

func (*ListRecordsURL) BuildFull

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

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

func (*ListRecordsURL) Must

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

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

func (*ListRecordsURL) SetBasePath

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

func (o *ListRecordsURL) String() string

String returns the string representation of the path with query string

func (*ListRecordsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*ListRecordsURL) WithBasePath

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

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

type UpdateRecord

type UpdateRecord struct {
	Context *middleware.Context
	Handler UpdateRecordHandler
}

UpdateRecord swagger:route PUT /records/{recordId} records updateRecord

Update an existing record

func NewUpdateRecord

func NewUpdateRecord(ctx *middleware.Context, handler UpdateRecordHandler) *UpdateRecord

NewUpdateRecord creates a new http.Handler for the update record operation

func (*UpdateRecord) ServeHTTP

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

type UpdateRecordBadRequest

type UpdateRecordBadRequest struct {

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

UpdateRecordBadRequest Bad request

swagger:response updateRecordBadRequest

func NewUpdateRecordBadRequest

func NewUpdateRecordBadRequest() *UpdateRecordBadRequest

NewUpdateRecordBadRequest creates UpdateRecordBadRequest with default headers values

func (*UpdateRecordBadRequest) SetPayload

func (o *UpdateRecordBadRequest) SetPayload(payload *models.BadRequest)

SetPayload sets the payload to the update record bad request response

func (*UpdateRecordBadRequest) WithPayload

WithPayload adds the payload to the update record bad request response

func (*UpdateRecordBadRequest) WriteResponse

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

WriteResponse to the client

type UpdateRecordHandler

type UpdateRecordHandler interface {
	Handle(UpdateRecordParams, *models.Principal) middleware.Responder
}

UpdateRecordHandler interface for that can handle valid update record params

type UpdateRecordHandlerFunc

type UpdateRecordHandlerFunc func(UpdateRecordParams, *models.Principal) middleware.Responder

UpdateRecordHandlerFunc turns a function with the right signature into a update record handler

func (UpdateRecordHandlerFunc) Handle

Handle executing the request and returning a response

type UpdateRecordInternalServerError

type UpdateRecordInternalServerError struct {

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

UpdateRecordInternalServerError Internal Server Error

swagger:response updateRecordInternalServerError

func NewUpdateRecordInternalServerError

func NewUpdateRecordInternalServerError() *UpdateRecordInternalServerError

NewUpdateRecordInternalServerError creates UpdateRecordInternalServerError with default headers values

func (*UpdateRecordInternalServerError) SetPayload

SetPayload sets the payload to the update record internal server error response

func (*UpdateRecordInternalServerError) WithPayload

WithPayload adds the payload to the update record internal server error response

func (*UpdateRecordInternalServerError) WriteResponse

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

WriteResponse to the client

type UpdateRecordNotFound

type UpdateRecordNotFound struct {

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

UpdateRecordNotFound Not found

swagger:response updateRecordNotFound

func NewUpdateRecordNotFound

func NewUpdateRecordNotFound() *UpdateRecordNotFound

NewUpdateRecordNotFound creates UpdateRecordNotFound with default headers values

func (*UpdateRecordNotFound) SetPayload

func (o *UpdateRecordNotFound) SetPayload(payload *models.NotFoundError)

SetPayload sets the payload to the update record not found response

func (*UpdateRecordNotFound) WithPayload

WithPayload adds the payload to the update record not found response

func (*UpdateRecordNotFound) WriteResponse

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

WriteResponse to the client

type UpdateRecordOK

type UpdateRecordOK struct {

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

UpdateRecordOK Successfully updated

swagger:response updateRecordOK

func NewUpdateRecordOK

func NewUpdateRecordOK() *UpdateRecordOK

NewUpdateRecordOK creates UpdateRecordOK with default headers values

func (*UpdateRecordOK) SetPayload

func (o *UpdateRecordOK) SetPayload(payload *models.RecordOutput)

SetPayload sets the payload to the update record o k response

func (*UpdateRecordOK) WithPayload

func (o *UpdateRecordOK) WithPayload(payload *models.RecordOutput) *UpdateRecordOK

WithPayload adds the payload to the update record o k response

func (*UpdateRecordOK) WriteResponse

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

WriteResponse to the client

type UpdateRecordParams

type UpdateRecordParams struct {

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

	/*Override user ID
	  In: header
	*/
	XUserID *string
	/*Record to be updated
	  Required: true
	  In: body
	*/
	Record *models.RecordInput
	/*ID of record to be updated
	  Required: true
	  In: path
	*/
	RecordID string
}

UpdateRecordParams contains all the bound params for the update record operation typically these are obtained from a http.Request

swagger:parameters updateRecord

func NewUpdateRecordParams

func NewUpdateRecordParams() UpdateRecordParams

NewUpdateRecordParams creates a new UpdateRecordParams object no default values defined in spec.

func (*UpdateRecordParams) BindRequest

func (o *UpdateRecordParams) 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 NewUpdateRecordParams() beforehand.

type UpdateRecordURL

type UpdateRecordURL struct {
	RecordID string
	// contains filtered or unexported fields
}

UpdateRecordURL generates an URL for the update record operation

func (*UpdateRecordURL) Build

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

Build a url path and query string

func (*UpdateRecordURL) BuildFull

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

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

func (*UpdateRecordURL) Must

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

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

func (*UpdateRecordURL) SetBasePath

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

func (o *UpdateRecordURL) String() string

String returns the string representation of the path with query string

func (*UpdateRecordURL) StringFull

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

StringFull returns the string representation of a complete url

func (*UpdateRecordURL) WithBasePath

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

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