Documentation ¶
Index ¶
- Constants
- type DeleteEntriesID
- type DeleteEntriesIDDefault
- func (o *DeleteEntriesIDDefault) SetPayload(payload *models.Error)
- func (o *DeleteEntriesIDDefault) SetStatusCode(code int)
- func (o *DeleteEntriesIDDefault) WithPayload(payload *models.Error) *DeleteEntriesIDDefault
- func (o *DeleteEntriesIDDefault) WithStatusCode(code int) *DeleteEntriesIDDefault
- func (o *DeleteEntriesIDDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteEntriesIDHandler
- type DeleteEntriesIDHandlerFunc
- type DeleteEntriesIDNoContent
- type DeleteEntriesIDParams
- type DeleteEntriesIDURL
- func (o *DeleteEntriesIDURL) Build() (*url.URL, error)
- func (o *DeleteEntriesIDURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteEntriesIDURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteEntriesIDURL) SetBasePath(bp string)
- func (o *DeleteEntriesIDURL) String() string
- func (o *DeleteEntriesIDURL) StringFull(scheme, host string) string
- func (o *DeleteEntriesIDURL) WithBasePath(bp string) *DeleteEntriesIDURL
- type GetEntries
- type GetEntriesDefault
- func (o *GetEntriesDefault) SetPayload(payload *models.Error)
- func (o *GetEntriesDefault) SetStatusCode(code int)
- func (o *GetEntriesDefault) WithPayload(payload *models.Error) *GetEntriesDefault
- func (o *GetEntriesDefault) WithStatusCode(code int) *GetEntriesDefault
- func (o *GetEntriesDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetEntriesHandler
- type GetEntriesHandlerFunc
- type GetEntriesID
- type GetEntriesIDDefault
- func (o *GetEntriesIDDefault) SetPayload(payload *models.Error)
- func (o *GetEntriesIDDefault) SetStatusCode(code int)
- func (o *GetEntriesIDDefault) WithPayload(payload *models.Error) *GetEntriesIDDefault
- func (o *GetEntriesIDDefault) WithStatusCode(code int) *GetEntriesIDDefault
- func (o *GetEntriesIDDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetEntriesIDHandler
- type GetEntriesIDHandlerFunc
- type GetEntriesIDOK
- type GetEntriesIDParams
- type GetEntriesIDURL
- func (o *GetEntriesIDURL) Build() (*url.URL, error)
- func (o *GetEntriesIDURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetEntriesIDURL) Must(u *url.URL, err error) *url.URL
- func (o *GetEntriesIDURL) SetBasePath(bp string)
- func (o *GetEntriesIDURL) String() string
- func (o *GetEntriesIDURL) StringFull(scheme, host string) string
- func (o *GetEntriesIDURL) WithBasePath(bp string) *GetEntriesIDURL
- type GetEntriesOK
- type GetEntriesParams
- type GetEntriesURL
- func (o *GetEntriesURL) Build() (*url.URL, error)
- func (o *GetEntriesURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetEntriesURL) Must(u *url.URL, err error) *url.URL
- func (o *GetEntriesURL) SetBasePath(bp string)
- func (o *GetEntriesURL) String() string
- func (o *GetEntriesURL) StringFull(scheme, host string) string
- func (o *GetEntriesURL) WithBasePath(bp string) *GetEntriesURL
- type PostEntries
- type PostEntriesCreated
- type PostEntriesDefault
- func (o *PostEntriesDefault) SetPayload(payload *models.Error)
- func (o *PostEntriesDefault) SetStatusCode(code int)
- func (o *PostEntriesDefault) WithPayload(payload *models.Error) *PostEntriesDefault
- func (o *PostEntriesDefault) WithStatusCode(code int) *PostEntriesDefault
- func (o *PostEntriesDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PostEntriesHandler
- type PostEntriesHandlerFunc
- type PostEntriesParams
- type PostEntriesURL
- func (o *PostEntriesURL) Build() (*url.URL, error)
- func (o *PostEntriesURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PostEntriesURL) Must(u *url.URL, err error) *url.URL
- func (o *PostEntriesURL) SetBasePath(bp string)
- func (o *PostEntriesURL) String() string
- func (o *PostEntriesURL) StringFull(scheme, host string) string
- func (o *PostEntriesURL) WithBasePath(bp string) *PostEntriesURL
- type PostUser
- type PostUserCreated
- type PostUserDefault
- func (o *PostUserDefault) SetPayload(payload *models.Error)
- func (o *PostUserDefault) SetStatusCode(code int)
- func (o *PostUserDefault) WithPayload(payload *models.Error) *PostUserDefault
- func (o *PostUserDefault) WithStatusCode(code int) *PostUserDefault
- func (o *PostUserDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PostUserHandler
- type PostUserHandlerFunc
- type PostUserParams
- type PostUserURL
- func (o *PostUserURL) Build() (*url.URL, error)
- func (o *PostUserURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PostUserURL) Must(u *url.URL, err error) *url.URL
- func (o *PostUserURL) SetBasePath(bp string)
- func (o *PostUserURL) String() string
- func (o *PostUserURL) StringFull(scheme, host string) string
- func (o *PostUserURL) WithBasePath(bp string) *PostUserURL
- type PutEntriesID
- type PutEntriesIDDefault
- func (o *PutEntriesIDDefault) SetPayload(payload *models.Error)
- func (o *PutEntriesIDDefault) SetStatusCode(code int)
- func (o *PutEntriesIDDefault) WithPayload(payload *models.Error) *PutEntriesIDDefault
- func (o *PutEntriesIDDefault) WithStatusCode(code int) *PutEntriesIDDefault
- func (o *PutEntriesIDDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PutEntriesIDHandler
- type PutEntriesIDHandlerFunc
- type PutEntriesIDOK
- type PutEntriesIDParams
- type PutEntriesIDURL
- func (o *PutEntriesIDURL) Build() (*url.URL, error)
- func (o *PutEntriesIDURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PutEntriesIDURL) Must(u *url.URL, err error) *url.URL
- func (o *PutEntriesIDURL) SetBasePath(bp string)
- func (o *PutEntriesIDURL) String() string
- func (o *PutEntriesIDURL) StringFull(scheme, host string) string
- func (o *PutEntriesIDURL) WithBasePath(bp string) *PutEntriesIDURL
Constants ¶
const DeleteEntriesIDNoContentCode int = 204
DeleteEntriesIDNoContentCode is the HTTP code returned for type DeleteEntriesIDNoContent
const GetEntriesIDOKCode int = 200
GetEntriesIDOKCode is the HTTP code returned for type GetEntriesIDOK
const GetEntriesOKCode int = 200
GetEntriesOKCode is the HTTP code returned for type GetEntriesOK
const PostEntriesCreatedCode int = 201
PostEntriesCreatedCode is the HTTP code returned for type PostEntriesCreated
const PostUserCreatedCode int = 201
PostUserCreatedCode is the HTTP code returned for type PostUserCreated
const PutEntriesIDOKCode int = 200
PutEntriesIDOKCode is the HTTP code returned for type PutEntriesIDOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeleteEntriesID ¶
type DeleteEntriesID struct { Context *middleware.Context Handler DeleteEntriesIDHandler }
DeleteEntriesID swagger:route DELETE /entries/{id} entry deleteEntriesId
DeleteEntriesID delete entries ID API
func NewDeleteEntriesID ¶
func NewDeleteEntriesID(ctx *middleware.Context, handler DeleteEntriesIDHandler) *DeleteEntriesID
NewDeleteEntriesID creates a new http.Handler for the delete entries ID operation
func (*DeleteEntriesID) ServeHTTP ¶
func (o *DeleteEntriesID) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteEntriesIDDefault ¶
type DeleteEntriesIDDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
DeleteEntriesIDDefault Error
swagger:response deleteEntriesIdDefault
func NewDeleteEntriesIDDefault ¶
func NewDeleteEntriesIDDefault(code int) *DeleteEntriesIDDefault
NewDeleteEntriesIDDefault creates DeleteEntriesIDDefault with default headers values
func (*DeleteEntriesIDDefault) SetPayload ¶
func (o *DeleteEntriesIDDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete entries ID default response
func (*DeleteEntriesIDDefault) SetStatusCode ¶
func (o *DeleteEntriesIDDefault) SetStatusCode(code int)
SetStatusCode sets the status to the delete entries ID default response
func (*DeleteEntriesIDDefault) WithPayload ¶
func (o *DeleteEntriesIDDefault) WithPayload(payload *models.Error) *DeleteEntriesIDDefault
WithPayload adds the payload to the delete entries ID default response
func (*DeleteEntriesIDDefault) WithStatusCode ¶
func (o *DeleteEntriesIDDefault) WithStatusCode(code int) *DeleteEntriesIDDefault
WithStatusCode adds the status to the delete entries ID default response
func (*DeleteEntriesIDDefault) WriteResponse ¶
func (o *DeleteEntriesIDDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteEntriesIDHandler ¶
type DeleteEntriesIDHandler interface {
Handle(DeleteEntriesIDParams, *schemas.User) middleware.Responder
}
DeleteEntriesIDHandler interface for that can handle valid delete entries ID params
type DeleteEntriesIDHandlerFunc ¶
type DeleteEntriesIDHandlerFunc func(DeleteEntriesIDParams, *schemas.User) middleware.Responder
DeleteEntriesIDHandlerFunc turns a function with the right signature into a delete entries ID handler
func (DeleteEntriesIDHandlerFunc) Handle ¶
func (fn DeleteEntriesIDHandlerFunc) Handle(params DeleteEntriesIDParams, principal *schemas.User) middleware.Responder
Handle executing the request and returning a response
type DeleteEntriesIDNoContent ¶
type DeleteEntriesIDNoContent struct { }
DeleteEntriesIDNoContent Deleted
swagger:response deleteEntriesIdNoContent
func NewDeleteEntriesIDNoContent ¶
func NewDeleteEntriesIDNoContent() *DeleteEntriesIDNoContent
NewDeleteEntriesIDNoContent creates DeleteEntriesIDNoContent with default headers values
func (*DeleteEntriesIDNoContent) WriteResponse ¶
func (o *DeleteEntriesIDNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteEntriesIDParams ¶
type DeleteEntriesIDParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: path */ ID int64 }
DeleteEntriesIDParams contains all the bound params for the delete entries ID operation typically these are obtained from a http.Request
swagger:parameters DeleteEntriesID
func NewDeleteEntriesIDParams ¶
func NewDeleteEntriesIDParams() DeleteEntriesIDParams
NewDeleteEntriesIDParams creates a new DeleteEntriesIDParams object
There are no default values defined in the spec.
func (*DeleteEntriesIDParams) BindRequest ¶
func (o *DeleteEntriesIDParams) 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 NewDeleteEntriesIDParams() beforehand.
type DeleteEntriesIDURL ¶
type DeleteEntriesIDURL struct { ID int64 // contains filtered or unexported fields }
DeleteEntriesIDURL generates an URL for the delete entries ID operation
func (*DeleteEntriesIDURL) Build ¶
func (o *DeleteEntriesIDURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteEntriesIDURL) BuildFull ¶
func (o *DeleteEntriesIDURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteEntriesIDURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteEntriesIDURL) SetBasePath ¶
func (o *DeleteEntriesIDURL) 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 (*DeleteEntriesIDURL) String ¶
func (o *DeleteEntriesIDURL) String() string
String returns the string representation of the path with query string
func (*DeleteEntriesIDURL) StringFull ¶
func (o *DeleteEntriesIDURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteEntriesIDURL) WithBasePath ¶
func (o *DeleteEntriesIDURL) WithBasePath(bp string) *DeleteEntriesIDURL
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 GetEntries ¶
type GetEntries struct { Context *middleware.Context Handler GetEntriesHandler }
GetEntries swagger:route GET /entries/ entry getEntries
GetEntries get entries API
func NewGetEntries ¶
func NewGetEntries(ctx *middleware.Context, handler GetEntriesHandler) *GetEntries
NewGetEntries creates a new http.Handler for the get entries operation
func (*GetEntries) ServeHTTP ¶
func (o *GetEntries) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetEntriesDefault ¶
type GetEntriesDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GetEntriesDefault Error
swagger:response getEntriesDefault
func NewGetEntriesDefault ¶
func NewGetEntriesDefault(code int) *GetEntriesDefault
NewGetEntriesDefault creates GetEntriesDefault with default headers values
func (*GetEntriesDefault) SetPayload ¶
func (o *GetEntriesDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get entries default response
func (*GetEntriesDefault) SetStatusCode ¶
func (o *GetEntriesDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get entries default response
func (*GetEntriesDefault) WithPayload ¶
func (o *GetEntriesDefault) WithPayload(payload *models.Error) *GetEntriesDefault
WithPayload adds the payload to the get entries default response
func (*GetEntriesDefault) WithStatusCode ¶
func (o *GetEntriesDefault) WithStatusCode(code int) *GetEntriesDefault
WithStatusCode adds the status to the get entries default response
func (*GetEntriesDefault) WriteResponse ¶
func (o *GetEntriesDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetEntriesHandler ¶
type GetEntriesHandler interface {
Handle(GetEntriesParams, *schemas.User) middleware.Responder
}
GetEntriesHandler interface for that can handle valid get entries params
type GetEntriesHandlerFunc ¶
type GetEntriesHandlerFunc func(GetEntriesParams, *schemas.User) middleware.Responder
GetEntriesHandlerFunc turns a function with the right signature into a get entries handler
func (GetEntriesHandlerFunc) Handle ¶
func (fn GetEntriesHandlerFunc) Handle(params GetEntriesParams, principal *schemas.User) middleware.Responder
Handle executing the request and returning a response
type GetEntriesID ¶
type GetEntriesID struct { Context *middleware.Context Handler GetEntriesIDHandler }
GetEntriesID swagger:route GET /entries/{id} entry getEntriesId
GetEntriesID get entries ID API
func NewGetEntriesID ¶
func NewGetEntriesID(ctx *middleware.Context, handler GetEntriesIDHandler) *GetEntriesID
NewGetEntriesID creates a new http.Handler for the get entries ID operation
func (*GetEntriesID) ServeHTTP ¶
func (o *GetEntriesID) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetEntriesIDDefault ¶
type GetEntriesIDDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GetEntriesIDDefault Error
swagger:response getEntriesIdDefault
func NewGetEntriesIDDefault ¶
func NewGetEntriesIDDefault(code int) *GetEntriesIDDefault
NewGetEntriesIDDefault creates GetEntriesIDDefault with default headers values
func (*GetEntriesIDDefault) SetPayload ¶
func (o *GetEntriesIDDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get entries ID default response
func (*GetEntriesIDDefault) SetStatusCode ¶
func (o *GetEntriesIDDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get entries ID default response
func (*GetEntriesIDDefault) WithPayload ¶
func (o *GetEntriesIDDefault) WithPayload(payload *models.Error) *GetEntriesIDDefault
WithPayload adds the payload to the get entries ID default response
func (*GetEntriesIDDefault) WithStatusCode ¶
func (o *GetEntriesIDDefault) WithStatusCode(code int) *GetEntriesIDDefault
WithStatusCode adds the status to the get entries ID default response
func (*GetEntriesIDDefault) WriteResponse ¶
func (o *GetEntriesIDDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetEntriesIDHandler ¶
type GetEntriesIDHandler interface {
Handle(GetEntriesIDParams, *schemas.User) middleware.Responder
}
GetEntriesIDHandler interface for that can handle valid get entries ID params
type GetEntriesIDHandlerFunc ¶
type GetEntriesIDHandlerFunc func(GetEntriesIDParams, *schemas.User) middleware.Responder
GetEntriesIDHandlerFunc turns a function with the right signature into a get entries ID handler
func (GetEntriesIDHandlerFunc) Handle ¶
func (fn GetEntriesIDHandlerFunc) Handle(params GetEntriesIDParams, principal *schemas.User) middleware.Responder
Handle executing the request and returning a response
type GetEntriesIDOK ¶
GetEntriesIDOK OK
swagger:response getEntriesIdOK
func NewGetEntriesIDOK ¶
func NewGetEntriesIDOK() *GetEntriesIDOK
NewGetEntriesIDOK creates GetEntriesIDOK with default headers values
func (*GetEntriesIDOK) SetPayload ¶
func (o *GetEntriesIDOK) SetPayload(payload *models.Entry)
SetPayload sets the payload to the get entries Id o k response
func (*GetEntriesIDOK) WithPayload ¶
func (o *GetEntriesIDOK) WithPayload(payload *models.Entry) *GetEntriesIDOK
WithPayload adds the payload to the get entries Id o k response
func (*GetEntriesIDOK) WriteResponse ¶
func (o *GetEntriesIDOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetEntriesIDParams ¶
type GetEntriesIDParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: path */ ID int64 }
GetEntriesIDParams contains all the bound params for the get entries ID operation typically these are obtained from a http.Request
swagger:parameters GetEntriesID
func NewGetEntriesIDParams ¶
func NewGetEntriesIDParams() GetEntriesIDParams
NewGetEntriesIDParams creates a new GetEntriesIDParams object
There are no default values defined in the spec.
func (*GetEntriesIDParams) BindRequest ¶
func (o *GetEntriesIDParams) 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 NewGetEntriesIDParams() beforehand.
type GetEntriesIDURL ¶
type GetEntriesIDURL struct { ID int64 // contains filtered or unexported fields }
GetEntriesIDURL generates an URL for the get entries ID operation
func (*GetEntriesIDURL) Build ¶
func (o *GetEntriesIDURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetEntriesIDURL) BuildFull ¶
func (o *GetEntriesIDURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetEntriesIDURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetEntriesIDURL) SetBasePath ¶
func (o *GetEntriesIDURL) 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 (*GetEntriesIDURL) String ¶
func (o *GetEntriesIDURL) String() string
String returns the string representation of the path with query string
func (*GetEntriesIDURL) StringFull ¶
func (o *GetEntriesIDURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetEntriesIDURL) WithBasePath ¶
func (o *GetEntriesIDURL) WithBasePath(bp string) *GetEntriesIDURL
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 GetEntriesOK ¶
GetEntriesOK List of entries
swagger:response getEntriesOK
func NewGetEntriesOK ¶
func NewGetEntriesOK() *GetEntriesOK
NewGetEntriesOK creates GetEntriesOK with default headers values
func (*GetEntriesOK) SetPayload ¶
func (o *GetEntriesOK) SetPayload(payload []*models.Entry)
SetPayload sets the payload to the get entries o k response
func (*GetEntriesOK) WithPayload ¶
func (o *GetEntriesOK) WithPayload(payload []*models.Entry) *GetEntriesOK
WithPayload adds the payload to the get entries o k response
func (*GetEntriesOK) WriteResponse ¶
func (o *GetEntriesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetEntriesParams ¶
type GetEntriesParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* In: query */ First *int32 /* In: query Default: 20 */ Limit *int32 }
GetEntriesParams contains all the bound params for the get entries operation typically these are obtained from a http.Request
swagger:parameters GetEntries
func NewGetEntriesParams ¶
func NewGetEntriesParams() GetEntriesParams
NewGetEntriesParams creates a new GetEntriesParams object with the default values initialized.
func (*GetEntriesParams) BindRequest ¶
func (o *GetEntriesParams) 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 NewGetEntriesParams() beforehand.
type GetEntriesURL ¶
GetEntriesURL generates an URL for the get entries operation
func (*GetEntriesURL) Build ¶
func (o *GetEntriesURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetEntriesURL) BuildFull ¶
func (o *GetEntriesURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetEntriesURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetEntriesURL) SetBasePath ¶
func (o *GetEntriesURL) 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 (*GetEntriesURL) String ¶
func (o *GetEntriesURL) String() string
String returns the string representation of the path with query string
func (*GetEntriesURL) StringFull ¶
func (o *GetEntriesURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetEntriesURL) WithBasePath ¶
func (o *GetEntriesURL) WithBasePath(bp string) *GetEntriesURL
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 PostEntries ¶
type PostEntries struct { Context *middleware.Context Handler PostEntriesHandler }
PostEntries swagger:route POST /entries/ entry postEntries
PostEntries post entries API
func NewPostEntries ¶
func NewPostEntries(ctx *middleware.Context, handler PostEntriesHandler) *PostEntries
NewPostEntries creates a new http.Handler for the post entries operation
func (*PostEntries) ServeHTTP ¶
func (o *PostEntries) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type PostEntriesCreated ¶
PostEntriesCreated Created
swagger:response postEntriesCreated
func NewPostEntriesCreated ¶
func NewPostEntriesCreated() *PostEntriesCreated
NewPostEntriesCreated creates PostEntriesCreated with default headers values
func (*PostEntriesCreated) SetPayload ¶
func (o *PostEntriesCreated) SetPayload(payload *models.Entry)
SetPayload sets the payload to the post entries created response
func (*PostEntriesCreated) WithPayload ¶
func (o *PostEntriesCreated) WithPayload(payload *models.Entry) *PostEntriesCreated
WithPayload adds the payload to the post entries created response
func (*PostEntriesCreated) WriteResponse ¶
func (o *PostEntriesCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostEntriesDefault ¶
type PostEntriesDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
PostEntriesDefault Error
swagger:response postEntriesDefault
func NewPostEntriesDefault ¶
func NewPostEntriesDefault(code int) *PostEntriesDefault
NewPostEntriesDefault creates PostEntriesDefault with default headers values
func (*PostEntriesDefault) SetPayload ¶
func (o *PostEntriesDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the post entries default response
func (*PostEntriesDefault) SetStatusCode ¶
func (o *PostEntriesDefault) SetStatusCode(code int)
SetStatusCode sets the status to the post entries default response
func (*PostEntriesDefault) WithPayload ¶
func (o *PostEntriesDefault) WithPayload(payload *models.Error) *PostEntriesDefault
WithPayload adds the payload to the post entries default response
func (*PostEntriesDefault) WithStatusCode ¶
func (o *PostEntriesDefault) WithStatusCode(code int) *PostEntriesDefault
WithStatusCode adds the status to the post entries default response
func (*PostEntriesDefault) WriteResponse ¶
func (o *PostEntriesDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostEntriesHandler ¶
type PostEntriesHandler interface {
Handle(PostEntriesParams, *schemas.User) middleware.Responder
}
PostEntriesHandler interface for that can handle valid post entries params
type PostEntriesHandlerFunc ¶
type PostEntriesHandlerFunc func(PostEntriesParams, *schemas.User) middleware.Responder
PostEntriesHandlerFunc turns a function with the right signature into a post entries handler
func (PostEntriesHandlerFunc) Handle ¶
func (fn PostEntriesHandlerFunc) Handle(params PostEntriesParams, principal *schemas.User) middleware.Responder
Handle executing the request and returning a response
type PostEntriesParams ¶
type PostEntriesParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* In: body */ Body *models.Entry }
PostEntriesParams contains all the bound params for the post entries operation typically these are obtained from a http.Request
swagger:parameters PostEntries
func NewPostEntriesParams ¶
func NewPostEntriesParams() PostEntriesParams
NewPostEntriesParams creates a new PostEntriesParams object
There are no default values defined in the spec.
func (*PostEntriesParams) BindRequest ¶
func (o *PostEntriesParams) 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 NewPostEntriesParams() beforehand.
type PostEntriesURL ¶
type PostEntriesURL struct {
// contains filtered or unexported fields
}
PostEntriesURL generates an URL for the post entries operation
func (*PostEntriesURL) Build ¶
func (o *PostEntriesURL) Build() (*url.URL, error)
Build a url path and query string
func (*PostEntriesURL) BuildFull ¶
func (o *PostEntriesURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PostEntriesURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*PostEntriesURL) SetBasePath ¶
func (o *PostEntriesURL) 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 (*PostEntriesURL) String ¶
func (o *PostEntriesURL) String() string
String returns the string representation of the path with query string
func (*PostEntriesURL) StringFull ¶
func (o *PostEntriesURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PostEntriesURL) WithBasePath ¶
func (o *PostEntriesURL) WithBasePath(bp string) *PostEntriesURL
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 PostUser ¶
type PostUser struct { Context *middleware.Context Handler PostUserHandler }
PostUser swagger:route POST /user/ entry postUser
PostUser post user API
func NewPostUser ¶
func NewPostUser(ctx *middleware.Context, handler PostUserHandler) *PostUser
NewPostUser creates a new http.Handler for the post user operation
type PostUserCreated ¶
PostUserCreated Created
swagger:response postUserCreated
func NewPostUserCreated ¶
func NewPostUserCreated() *PostUserCreated
NewPostUserCreated creates PostUserCreated with default headers values
func (*PostUserCreated) SetPayload ¶
func (o *PostUserCreated) SetPayload(payload *models.Entry)
SetPayload sets the payload to the post user created response
func (*PostUserCreated) WithPayload ¶
func (o *PostUserCreated) WithPayload(payload *models.Entry) *PostUserCreated
WithPayload adds the payload to the post user created response
func (*PostUserCreated) WriteResponse ¶
func (o *PostUserCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostUserDefault ¶
type PostUserDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
PostUserDefault Error
swagger:response postUserDefault
func NewPostUserDefault ¶
func NewPostUserDefault(code int) *PostUserDefault
NewPostUserDefault creates PostUserDefault with default headers values
func (*PostUserDefault) SetPayload ¶
func (o *PostUserDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the post user default response
func (*PostUserDefault) SetStatusCode ¶
func (o *PostUserDefault) SetStatusCode(code int)
SetStatusCode sets the status to the post user default response
func (*PostUserDefault) WithPayload ¶
func (o *PostUserDefault) WithPayload(payload *models.Error) *PostUserDefault
WithPayload adds the payload to the post user default response
func (*PostUserDefault) WithStatusCode ¶
func (o *PostUserDefault) WithStatusCode(code int) *PostUserDefault
WithStatusCode adds the status to the post user default response
func (*PostUserDefault) WriteResponse ¶
func (o *PostUserDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostUserHandler ¶
type PostUserHandler interface {
Handle(PostUserParams, *models.User) middleware.Responder
}
PostUserHandler interface for that can handle valid post user params
type PostUserHandlerFunc ¶
type PostUserHandlerFunc func(PostUserParams, *models.User) middleware.Responder
PostUserHandlerFunc turns a function with the right signature into a post user handler
func (PostUserHandlerFunc) Handle ¶
func (fn PostUserHandlerFunc) Handle(params PostUserParams, principal *models.User) middleware.Responder
Handle executing the request and returning a response
type PostUserParams ¶
type PostUserParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* In: body */ Body *models.Entry }
PostUserParams contains all the bound params for the post user operation typically these are obtained from a http.Request
swagger:parameters PostUser
func NewPostUserParams ¶
func NewPostUserParams() PostUserParams
NewPostUserParams creates a new PostUserParams object
There are no default values defined in the spec.
func (*PostUserParams) BindRequest ¶
func (o *PostUserParams) 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 NewPostUserParams() beforehand.
type PostUserURL ¶
type PostUserURL struct {
// contains filtered or unexported fields
}
PostUserURL generates an URL for the post user operation
func (*PostUserURL) Build ¶
func (o *PostUserURL) Build() (*url.URL, error)
Build a url path and query string
func (*PostUserURL) BuildFull ¶
func (o *PostUserURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PostUserURL) SetBasePath ¶
func (o *PostUserURL) 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 (*PostUserURL) String ¶
func (o *PostUserURL) String() string
String returns the string representation of the path with query string
func (*PostUserURL) StringFull ¶
func (o *PostUserURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PostUserURL) WithBasePath ¶
func (o *PostUserURL) WithBasePath(bp string) *PostUserURL
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 PutEntriesID ¶
type PutEntriesID struct { Context *middleware.Context Handler PutEntriesIDHandler }
PutEntriesID swagger:route PUT /entries/{id} entry putEntriesId
PutEntriesID put entries ID API
func NewPutEntriesID ¶
func NewPutEntriesID(ctx *middleware.Context, handler PutEntriesIDHandler) *PutEntriesID
NewPutEntriesID creates a new http.Handler for the put entries ID operation
func (*PutEntriesID) ServeHTTP ¶
func (o *PutEntriesID) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type PutEntriesIDDefault ¶
type PutEntriesIDDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
PutEntriesIDDefault Error
swagger:response putEntriesIdDefault
func NewPutEntriesIDDefault ¶
func NewPutEntriesIDDefault(code int) *PutEntriesIDDefault
NewPutEntriesIDDefault creates PutEntriesIDDefault with default headers values
func (*PutEntriesIDDefault) SetPayload ¶
func (o *PutEntriesIDDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the put entries ID default response
func (*PutEntriesIDDefault) SetStatusCode ¶
func (o *PutEntriesIDDefault) SetStatusCode(code int)
SetStatusCode sets the status to the put entries ID default response
func (*PutEntriesIDDefault) WithPayload ¶
func (o *PutEntriesIDDefault) WithPayload(payload *models.Error) *PutEntriesIDDefault
WithPayload adds the payload to the put entries ID default response
func (*PutEntriesIDDefault) WithStatusCode ¶
func (o *PutEntriesIDDefault) WithStatusCode(code int) *PutEntriesIDDefault
WithStatusCode adds the status to the put entries ID default response
func (*PutEntriesIDDefault) WriteResponse ¶
func (o *PutEntriesIDDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PutEntriesIDHandler ¶
type PutEntriesIDHandler interface {
Handle(PutEntriesIDParams, *schemas.User) middleware.Responder
}
PutEntriesIDHandler interface for that can handle valid put entries ID params
type PutEntriesIDHandlerFunc ¶
type PutEntriesIDHandlerFunc func(PutEntriesIDParams, *schemas.User) middleware.Responder
PutEntriesIDHandlerFunc turns a function with the right signature into a put entries ID handler
func (PutEntriesIDHandlerFunc) Handle ¶
func (fn PutEntriesIDHandlerFunc) Handle(params PutEntriesIDParams, principal *schemas.User) middleware.Responder
Handle executing the request and returning a response
type PutEntriesIDOK ¶
PutEntriesIDOK OK
swagger:response putEntriesIdOK
func NewPutEntriesIDOK ¶
func NewPutEntriesIDOK() *PutEntriesIDOK
NewPutEntriesIDOK creates PutEntriesIDOK with default headers values
func (*PutEntriesIDOK) SetPayload ¶
func (o *PutEntriesIDOK) SetPayload(payload *models.Entry)
SetPayload sets the payload to the put entries Id o k response
func (*PutEntriesIDOK) WithPayload ¶
func (o *PutEntriesIDOK) WithPayload(payload *models.Entry) *PutEntriesIDOK
WithPayload adds the payload to the put entries Id o k response
func (*PutEntriesIDOK) WriteResponse ¶
func (o *PutEntriesIDOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PutEntriesIDParams ¶
type PutEntriesIDParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* In: body */ Body *models.Entry /* Required: true In: path */ ID int64 }
PutEntriesIDParams contains all the bound params for the put entries ID operation typically these are obtained from a http.Request
swagger:parameters PutEntriesID
func NewPutEntriesIDParams ¶
func NewPutEntriesIDParams() PutEntriesIDParams
NewPutEntriesIDParams creates a new PutEntriesIDParams object
There are no default values defined in the spec.
func (*PutEntriesIDParams) BindRequest ¶
func (o *PutEntriesIDParams) 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 NewPutEntriesIDParams() beforehand.
type PutEntriesIDURL ¶
type PutEntriesIDURL struct { ID int64 // contains filtered or unexported fields }
PutEntriesIDURL generates an URL for the put entries ID operation
func (*PutEntriesIDURL) Build ¶
func (o *PutEntriesIDURL) Build() (*url.URL, error)
Build a url path and query string
func (*PutEntriesIDURL) BuildFull ¶
func (o *PutEntriesIDURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PutEntriesIDURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*PutEntriesIDURL) SetBasePath ¶
func (o *PutEntriesIDURL) 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 (*PutEntriesIDURL) String ¶
func (o *PutEntriesIDURL) String() string
String returns the string representation of the path with query string
func (*PutEntriesIDURL) StringFull ¶
func (o *PutEntriesIDURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PutEntriesIDURL) WithBasePath ¶
func (o *PutEntriesIDURL) WithBasePath(bp string) *PutEntriesIDURL
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
Source Files ¶
- delete_entries_id.go
- delete_entries_id_parameters.go
- delete_entries_id_responses.go
- delete_entries_id_urlbuilder.go
- get_entries.go
- get_entries_id.go
- get_entries_id_parameters.go
- get_entries_id_responses.go
- get_entries_id_urlbuilder.go
- get_entries_parameters.go
- get_entries_responses.go
- get_entries_urlbuilder.go
- post_entries.go
- post_entries_parameters.go
- post_entries_responses.go
- post_entries_urlbuilder.go
- post_user.go
- post_user_parameters.go
- post_user_responses.go
- post_user_urlbuilder.go
- put_entries_id.go
- put_entries_id_parameters.go
- put_entries_id_responses.go
- put_entries_id_urlbuilder.go