operations

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2020 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const CreateRecoveryCodeNoContentCode int = 204

CreateRecoveryCodeNoContentCode is the HTTP code returned for type CreateRecoveryCodeNoContent

View Source
const CreateUserOKCode int = 200

CreateUserOKCode is the HTTP code returned for type CreateUserOK

View Source
const DeleteUserNoContentCode int = 204

DeleteUserNoContentCode is the HTTP code returned for type DeleteUserNoContent

View Source
const GetUserOKCode int = 200

GetUserOKCode is the HTTP code returned for type GetUserOK

View Source
const GetUsersOKCode int = 200

GetUsersOKCode is the HTTP code returned for type GetUsersOK

View Source
const LoginOKCode int = 200

LoginOKCode is the HTTP code returned for type LoginOK

View Source
const LogoutNoContentCode int = 204

LogoutNoContentCode is the HTTP code returned for type LogoutNoContent

View Source
const RecoveryPasswordNoContentCode int = 204

RecoveryPasswordNoContentCode is the HTTP code returned for type RecoveryPasswordNoContent

View Source
const UpdateEmailNoContentCode int = 204

UpdateEmailNoContentCode is the HTTP code returned for type UpdateEmailNoContent

View Source
const UpdatePasswordNoContentCode int = 204

UpdatePasswordNoContentCode is the HTTP code returned for type UpdatePasswordNoContent

View Source
const UpdateUsernameNoContentCode int = 204

UpdateUsernameNoContentCode is the HTTP code returned for type UpdateUsernameNoContent

View Source
const VerificationEmailNoContentCode int = 204

VerificationEmailNoContentCode is the HTTP code returned for type VerificationEmailNoContent

View Source
const VerificationUsernameNoContentCode int = 204

VerificationUsernameNoContentCode is the HTTP code returned for type VerificationUsernameNoContent

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateRecoveryCode

type CreateRecoveryCode struct {
	Context *middleware.Context
	Handler CreateRecoveryCodeHandler
}

CreateRecoveryCode swagger:route POST /recovery-code createRecoveryCode

Creates a password recovery token and sends it to the email.

func NewCreateRecoveryCode

func NewCreateRecoveryCode(ctx *middleware.Context, handler CreateRecoveryCodeHandler) *CreateRecoveryCode

NewCreateRecoveryCode creates a new http.Handler for the create recovery code operation

func (*CreateRecoveryCode) ServeHTTP

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

type CreateRecoveryCodeBody

type CreateRecoveryCodeBody struct {

	// email
	// Required: true
	// Format: email
	Email models.Email `json:"email"`
}

CreateRecoveryCodeBody create recovery code body

swagger:model CreateRecoveryCodeBody

func (*CreateRecoveryCodeBody) MarshalBinary

func (o *CreateRecoveryCodeBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateRecoveryCodeBody) UnmarshalBinary

func (o *CreateRecoveryCodeBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateRecoveryCodeBody) Validate

func (o *CreateRecoveryCodeBody) Validate(formats strfmt.Registry) error

Validate validates this create recovery code body

type CreateRecoveryCodeDefault

type CreateRecoveryCodeDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

CreateRecoveryCodeDefault Generic error response.

swagger:response createRecoveryCodeDefault

func NewCreateRecoveryCodeDefault

func NewCreateRecoveryCodeDefault(code int) *CreateRecoveryCodeDefault

NewCreateRecoveryCodeDefault creates CreateRecoveryCodeDefault with default headers values

func (*CreateRecoveryCodeDefault) SetPayload

func (o *CreateRecoveryCodeDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the create recovery code default response

func (*CreateRecoveryCodeDefault) SetStatusCode

func (o *CreateRecoveryCodeDefault) SetStatusCode(code int)

SetStatusCode sets the status to the create recovery code default response

func (*CreateRecoveryCodeDefault) WithPayload

WithPayload adds the payload to the create recovery code default response

func (*CreateRecoveryCodeDefault) WithStatusCode

func (o *CreateRecoveryCodeDefault) WithStatusCode(code int) *CreateRecoveryCodeDefault

WithStatusCode adds the status to the create recovery code default response

func (*CreateRecoveryCodeDefault) WriteResponse

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

WriteResponse to the client

type CreateRecoveryCodeHandler

type CreateRecoveryCodeHandler interface {
	Handle(CreateRecoveryCodeParams) middleware.Responder
}

CreateRecoveryCodeHandler interface for that can handle valid create recovery code params

type CreateRecoveryCodeHandlerFunc

type CreateRecoveryCodeHandlerFunc func(CreateRecoveryCodeParams) middleware.Responder

CreateRecoveryCodeHandlerFunc turns a function with the right signature into a create recovery code handler

func (CreateRecoveryCodeHandlerFunc) Handle

Handle executing the request and returning a response

type CreateRecoveryCodeNoContent

type CreateRecoveryCodeNoContent struct {
}

CreateRecoveryCodeNoContent The server successfully processed the request and is not returning any content.

swagger:response createRecoveryCodeNoContent

func NewCreateRecoveryCodeNoContent

func NewCreateRecoveryCodeNoContent() *CreateRecoveryCodeNoContent

NewCreateRecoveryCodeNoContent creates CreateRecoveryCodeNoContent with default headers values

func (*CreateRecoveryCodeNoContent) WriteResponse

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

WriteResponse to the client

type CreateRecoveryCodeParams

type CreateRecoveryCodeParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	Args CreateRecoveryCodeBody
}

CreateRecoveryCodeParams contains all the bound params for the create recovery code operation typically these are obtained from a http.Request

swagger:parameters createRecoveryCode

func NewCreateRecoveryCodeParams

func NewCreateRecoveryCodeParams() CreateRecoveryCodeParams

NewCreateRecoveryCodeParams creates a new CreateRecoveryCodeParams object no default values defined in spec.

func (*CreateRecoveryCodeParams) BindRequest

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 NewCreateRecoveryCodeParams() beforehand.

type CreateRecoveryCodeURL

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

CreateRecoveryCodeURL generates an URL for the create recovery code operation

func (*CreateRecoveryCodeURL) Build

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

Build a url path and query string

func (*CreateRecoveryCodeURL) BuildFull

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

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

func (*CreateRecoveryCodeURL) Must

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

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

func (*CreateRecoveryCodeURL) SetBasePath

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

func (o *CreateRecoveryCodeURL) String() string

String returns the string representation of the path with query string

func (*CreateRecoveryCodeURL) StringFull

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

StringFull returns the string representation of a complete url

func (*CreateRecoveryCodeURL) WithBasePath

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

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 CreateUser

type CreateUser struct {
	Context *middleware.Context
	Handler CreateUserHandler
}

CreateUser swagger:route POST /user createUser

New user registration. If it is not sent to username, it will be the userID

func NewCreateUser

func NewCreateUser(ctx *middleware.Context, handler CreateUserHandler) *CreateUser

NewCreateUser creates a new http.Handler for the create user operation

func (*CreateUser) ServeHTTP

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

type CreateUserDefault

type CreateUserDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

CreateUserDefault Generic error response.

swagger:response createUserDefault

func NewCreateUserDefault

func NewCreateUserDefault(code int) *CreateUserDefault

NewCreateUserDefault creates CreateUserDefault with default headers values

func (*CreateUserDefault) SetPayload

func (o *CreateUserDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the create user default response

func (*CreateUserDefault) SetStatusCode

func (o *CreateUserDefault) SetStatusCode(code int)

SetStatusCode sets the status to the create user default response

func (*CreateUserDefault) WithPayload

func (o *CreateUserDefault) WithPayload(payload *models.Error) *CreateUserDefault

WithPayload adds the payload to the create user default response

func (*CreateUserDefault) WithStatusCode

func (o *CreateUserDefault) WithStatusCode(code int) *CreateUserDefault

WithStatusCode adds the status to the create user default response

func (*CreateUserDefault) WriteResponse

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

WriteResponse to the client

type CreateUserHandler

type CreateUserHandler interface {
	Handle(CreateUserParams) middleware.Responder
}

CreateUserHandler interface for that can handle valid create user params

type CreateUserHandlerFunc

type CreateUserHandlerFunc func(CreateUserParams) middleware.Responder

CreateUserHandlerFunc turns a function with the right signature into a create user handler

func (CreateUserHandlerFunc) Handle

Handle executing the request and returning a response

type CreateUserOK

type CreateUserOK struct {
	/*Session auth.

	 */
	SetCookie string `json:"Set-Cookie"`

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

CreateUserOK OK

swagger:response createUserOK

func NewCreateUserOK

func NewCreateUserOK() *CreateUserOK

NewCreateUserOK creates CreateUserOK with default headers values

func (*CreateUserOK) SetPayload

func (o *CreateUserOK) SetPayload(payload *models.User)

SetPayload sets the payload to the create user o k response

func (*CreateUserOK) SetSetCookie

func (o *CreateUserOK) SetSetCookie(setCookie string)

SetSetCookie sets the setCookie to the create user o k response

func (*CreateUserOK) WithPayload

func (o *CreateUserOK) WithPayload(payload *models.User) *CreateUserOK

WithPayload adds the payload to the create user o k response

func (*CreateUserOK) WithSetCookie

func (o *CreateUserOK) WithSetCookie(setCookie string) *CreateUserOK

WithSetCookie adds the setCookie to the create user o k response

func (*CreateUserOK) WriteResponse

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

WriteResponse to the client

type CreateUserParams

type CreateUserParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	Args *models.CreateUserParams
}

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

swagger:parameters createUser

func NewCreateUserParams

func NewCreateUserParams() CreateUserParams

NewCreateUserParams creates a new CreateUserParams object no default values defined in spec.

func (*CreateUserParams) BindRequest

func (o *CreateUserParams) 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 NewCreateUserParams() beforehand.

type CreateUserURL

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

CreateUserURL generates an URL for the create user operation

func (*CreateUserURL) Build

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

Build a url path and query string

func (*CreateUserURL) BuildFull

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

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

func (*CreateUserURL) Must

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

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

func (*CreateUserURL) SetBasePath

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

func (o *CreateUserURL) String() string

String returns the string representation of the path with query string

func (*CreateUserURL) StringFull

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

StringFull returns the string representation of a complete url

func (*CreateUserURL) WithBasePath

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

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 DeleteUser

type DeleteUser struct {
	Context *middleware.Context
	Handler DeleteUserHandler
}

DeleteUser swagger:route DELETE /user deleteUser

Deletion of your account.

func NewDeleteUser

func NewDeleteUser(ctx *middleware.Context, handler DeleteUserHandler) *DeleteUser

NewDeleteUser creates a new http.Handler for the delete user operation

func (*DeleteUser) ServeHTTP

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

type DeleteUserDefault

type DeleteUserDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

DeleteUserDefault Generic error response.

swagger:response deleteUserDefault

func NewDeleteUserDefault

func NewDeleteUserDefault(code int) *DeleteUserDefault

NewDeleteUserDefault creates DeleteUserDefault with default headers values

func (*DeleteUserDefault) SetPayload

func (o *DeleteUserDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the delete user default response

func (*DeleteUserDefault) SetStatusCode

func (o *DeleteUserDefault) SetStatusCode(code int)

SetStatusCode sets the status to the delete user default response

func (*DeleteUserDefault) WithPayload

func (o *DeleteUserDefault) WithPayload(payload *models.Error) *DeleteUserDefault

WithPayload adds the payload to the delete user default response

func (*DeleteUserDefault) WithStatusCode

func (o *DeleteUserDefault) WithStatusCode(code int) *DeleteUserDefault

WithStatusCode adds the status to the delete user default response

func (*DeleteUserDefault) WriteResponse

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

WriteResponse to the client

type DeleteUserHandler

type DeleteUserHandler interface {
	Handle(DeleteUserParams, *app.AuthUser) middleware.Responder
}

DeleteUserHandler interface for that can handle valid delete user params

type DeleteUserHandlerFunc

type DeleteUserHandlerFunc func(DeleteUserParams, *app.AuthUser) middleware.Responder

DeleteUserHandlerFunc turns a function with the right signature into a delete user handler

func (DeleteUserHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteUserNoContent

type DeleteUserNoContent struct {
}

DeleteUserNoContent The server successfully processed the request and is not returning any content.

swagger:response deleteUserNoContent

func NewDeleteUserNoContent

func NewDeleteUserNoContent() *DeleteUserNoContent

NewDeleteUserNoContent creates DeleteUserNoContent with default headers values

func (*DeleteUserNoContent) WriteResponse

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

WriteResponse to the client

type DeleteUserParams

type DeleteUserParams struct {

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

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

swagger:parameters deleteUser

func NewDeleteUserParams

func NewDeleteUserParams() DeleteUserParams

NewDeleteUserParams creates a new DeleteUserParams object no default values defined in spec.

func (*DeleteUserParams) BindRequest

func (o *DeleteUserParams) 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 NewDeleteUserParams() beforehand.

type DeleteUserURL

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

DeleteUserURL generates an URL for the delete user operation

func (*DeleteUserURL) Build

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

Build a url path and query string

func (*DeleteUserURL) BuildFull

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

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

func (*DeleteUserURL) Must

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

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

func (*DeleteUserURL) SetBasePath

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

func (o *DeleteUserURL) String() string

String returns the string representation of the path with query string

func (*DeleteUserURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DeleteUserURL) WithBasePath

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

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 GetUser

type GetUser struct {
	Context *middleware.Context
	Handler GetUserHandler
}

GetUser swagger:route GET /user getUser

Open user profile.

func NewGetUser

func NewGetUser(ctx *middleware.Context, handler GetUserHandler) *GetUser

NewGetUser creates a new http.Handler for the get user operation

func (*GetUser) ServeHTTP

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

type GetUserDefault

type GetUserDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

GetUserDefault Generic error response.

swagger:response getUserDefault

func NewGetUserDefault

func NewGetUserDefault(code int) *GetUserDefault

NewGetUserDefault creates GetUserDefault with default headers values

func (*GetUserDefault) SetPayload

func (o *GetUserDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the get user default response

func (*GetUserDefault) SetStatusCode

func (o *GetUserDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get user default response

func (*GetUserDefault) WithPayload

func (o *GetUserDefault) WithPayload(payload *models.Error) *GetUserDefault

WithPayload adds the payload to the get user default response

func (*GetUserDefault) WithStatusCode

func (o *GetUserDefault) WithStatusCode(code int) *GetUserDefault

WithStatusCode adds the status to the get user default response

func (*GetUserDefault) WriteResponse

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

WriteResponse to the client

type GetUserHandler

type GetUserHandler interface {
	Handle(GetUserParams, *app.AuthUser) middleware.Responder
}

GetUserHandler interface for that can handle valid get user params

type GetUserHandlerFunc

type GetUserHandlerFunc func(GetUserParams, *app.AuthUser) middleware.Responder

GetUserHandlerFunc turns a function with the right signature into a get user handler

func (GetUserHandlerFunc) Handle

func (fn GetUserHandlerFunc) Handle(params GetUserParams, principal *app.AuthUser) middleware.Responder

Handle executing the request and returning a response

type GetUserOK

type GetUserOK struct {

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

GetUserOK OK

swagger:response getUserOK

func NewGetUserOK

func NewGetUserOK() *GetUserOK

NewGetUserOK creates GetUserOK with default headers values

func (*GetUserOK) SetPayload

func (o *GetUserOK) SetPayload(payload *models.User)

SetPayload sets the payload to the get user o k response

func (*GetUserOK) WithPayload

func (o *GetUserOK) WithPayload(payload *models.User) *GetUserOK

WithPayload adds the payload to the get user o k response

func (*GetUserOK) WriteResponse

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

WriteResponse to the client

type GetUserParams

type GetUserParams struct {

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

	/*
	  In: query
	*/
	ID *int32
}

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

swagger:parameters getUser

func NewGetUserParams

func NewGetUserParams() GetUserParams

NewGetUserParams creates a new GetUserParams object no default values defined in spec.

func (*GetUserParams) BindRequest

func (o *GetUserParams) 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 NewGetUserParams() beforehand.

type GetUserURL

type GetUserURL struct {
	ID *int32
	// contains filtered or unexported fields
}

GetUserURL generates an URL for the get user operation

func (*GetUserURL) Build

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

Build a url path and query string

func (*GetUserURL) BuildFull

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

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

func (*GetUserURL) Must

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

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

func (*GetUserURL) SetBasePath

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

func (o *GetUserURL) String() string

String returns the string representation of the path with query string

func (*GetUserURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetUserURL) WithBasePath

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

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 GetUsers

type GetUsers struct {
	Context *middleware.Context
	Handler GetUsersHandler
}

GetUsers swagger:route GET /users getUsers

User search.

func NewGetUsers

func NewGetUsers(ctx *middleware.Context, handler GetUsersHandler) *GetUsers

NewGetUsers creates a new http.Handler for the get users operation

func (*GetUsers) ServeHTTP

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

type GetUsersDefault

type GetUsersDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

GetUsersDefault Generic error response.

swagger:response getUsersDefault

func NewGetUsersDefault

func NewGetUsersDefault(code int) *GetUsersDefault

NewGetUsersDefault creates GetUsersDefault with default headers values

func (*GetUsersDefault) SetPayload

func (o *GetUsersDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the get users default response

func (*GetUsersDefault) SetStatusCode

func (o *GetUsersDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get users default response

func (*GetUsersDefault) WithPayload

func (o *GetUsersDefault) WithPayload(payload *models.Error) *GetUsersDefault

WithPayload adds the payload to the get users default response

func (*GetUsersDefault) WithStatusCode

func (o *GetUsersDefault) WithStatusCode(code int) *GetUsersDefault

WithStatusCode adds the status to the get users default response

func (*GetUsersDefault) WriteResponse

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

WriteResponse to the client

type GetUsersHandler

type GetUsersHandler interface {
	Handle(GetUsersParams, *app.AuthUser) middleware.Responder
}

GetUsersHandler interface for that can handle valid get users params

type GetUsersHandlerFunc

type GetUsersHandlerFunc func(GetUsersParams, *app.AuthUser) middleware.Responder

GetUsersHandlerFunc turns a function with the right signature into a get users handler

func (GetUsersHandlerFunc) Handle

func (fn GetUsersHandlerFunc) Handle(params GetUsersParams, principal *app.AuthUser) middleware.Responder

Handle executing the request and returning a response

type GetUsersOK

type GetUsersOK struct {

	/*
	  In: Body
	*/
	Payload *GetUsersOKBody `json:"body,omitempty"`
}

GetUsersOK OK

swagger:response getUsersOK

func NewGetUsersOK

func NewGetUsersOK() *GetUsersOK

NewGetUsersOK creates GetUsersOK with default headers values

func (*GetUsersOK) SetPayload

func (o *GetUsersOK) SetPayload(payload *GetUsersOKBody)

SetPayload sets the payload to the get users o k response

func (*GetUsersOK) WithPayload

func (o *GetUsersOK) WithPayload(payload *GetUsersOKBody) *GetUsersOK

WithPayload adds the payload to the get users o k response

func (*GetUsersOK) WriteResponse

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

WriteResponse to the client

type GetUsersOKBody

type GetUsersOKBody struct {

	// total
	// Minimum: 0
	Total *int32 `json:"total,omitempty"`

	// users
	// Max Items: 100
	// Unique: true
	Users []*models.User `json:"users"`
}

GetUsersOKBody get users o k body

swagger:model GetUsersOKBody

func (*GetUsersOKBody) MarshalBinary

func (o *GetUsersOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetUsersOKBody) UnmarshalBinary

func (o *GetUsersOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetUsersOKBody) Validate

func (o *GetUsersOKBody) Validate(formats strfmt.Registry) error

Validate validates this get users o k body

type GetUsersParams

type GetUsersParams struct {

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

	/*
	  Required: true
	  In: query
	  Default: 100
	*/
	Limit int32
	/*
	  In: query
	  Default: 0
	*/
	Offset *int32
	/*
	  Required: true
	  In: query
	*/
	Username string
}

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

swagger:parameters getUsers

func NewGetUsersParams

func NewGetUsersParams() GetUsersParams

NewGetUsersParams creates a new GetUsersParams object with the default values initialized.

func (*GetUsersParams) BindRequest

func (o *GetUsersParams) 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 NewGetUsersParams() beforehand.

type GetUsersURL

type GetUsersURL struct {
	Limit    int32
	Offset   *int32
	Username string
	// contains filtered or unexported fields
}

GetUsersURL generates an URL for the get users operation

func (*GetUsersURL) Build

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

Build a url path and query string

func (*GetUsersURL) BuildFull

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

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

func (*GetUsersURL) Must

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

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

func (*GetUsersURL) SetBasePath

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

func (o *GetUsersURL) String() string

String returns the string representation of the path with query string

func (*GetUsersURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetUsersURL) WithBasePath

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

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 Login

type Login struct {
	Context *middleware.Context
	Handler LoginHandler
}

Login swagger:route POST /login login

Login for user.

func NewLogin

func NewLogin(ctx *middleware.Context, handler LoginHandler) *Login

NewLogin creates a new http.Handler for the login operation

func (*Login) ServeHTTP

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

type LoginDefault

type LoginDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

LoginDefault Generic error response.

swagger:response loginDefault

func NewLoginDefault

func NewLoginDefault(code int) *LoginDefault

NewLoginDefault creates LoginDefault with default headers values

func (*LoginDefault) SetPayload

func (o *LoginDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the login default response

func (*LoginDefault) SetStatusCode

func (o *LoginDefault) SetStatusCode(code int)

SetStatusCode sets the status to the login default response

func (*LoginDefault) WithPayload

func (o *LoginDefault) WithPayload(payload *models.Error) *LoginDefault

WithPayload adds the payload to the login default response

func (*LoginDefault) WithStatusCode

func (o *LoginDefault) WithStatusCode(code int) *LoginDefault

WithStatusCode adds the status to the login default response

func (*LoginDefault) WriteResponse

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

WriteResponse to the client

type LoginHandler

type LoginHandler interface {
	Handle(LoginParams) middleware.Responder
}

LoginHandler interface for that can handle valid login params

type LoginHandlerFunc

type LoginHandlerFunc func(LoginParams) middleware.Responder

LoginHandlerFunc turns a function with the right signature into a login handler

func (LoginHandlerFunc) Handle

Handle executing the request and returning a response

type LoginOK

type LoginOK struct {
	/*Session auth.

	 */
	SetCookie string `json:"Set-Cookie"`

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

LoginOK OK

swagger:response loginOK

func NewLoginOK

func NewLoginOK() *LoginOK

NewLoginOK creates LoginOK with default headers values

func (*LoginOK) SetPayload

func (o *LoginOK) SetPayload(payload *models.User)

SetPayload sets the payload to the login o k response

func (*LoginOK) SetSetCookie

func (o *LoginOK) SetSetCookie(setCookie string)

SetSetCookie sets the setCookie to the login o k response

func (*LoginOK) WithPayload

func (o *LoginOK) WithPayload(payload *models.User) *LoginOK

WithPayload adds the payload to the login o k response

func (*LoginOK) WithSetCookie

func (o *LoginOK) WithSetCookie(setCookie string) *LoginOK

WithSetCookie adds the setCookie to the login o k response

func (*LoginOK) WriteResponse

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

WriteResponse to the client

type LoginParams

type LoginParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	Args *models.LoginParam
}

LoginParams contains all the bound params for the login operation typically these are obtained from a http.Request

swagger:parameters login

func NewLoginParams

func NewLoginParams() LoginParams

NewLoginParams creates a new LoginParams object no default values defined in spec.

func (*LoginParams) BindRequest

func (o *LoginParams) 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 NewLoginParams() beforehand.

type LoginURL

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

LoginURL generates an URL for the login operation

func (*LoginURL) Build

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

Build a url path and query string

func (*LoginURL) BuildFull

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

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

func (*LoginURL) Must

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

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

func (*LoginURL) SetBasePath

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

func (o *LoginURL) String() string

String returns the string representation of the path with query string

func (*LoginURL) StringFull

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

StringFull returns the string representation of a complete url

func (*LoginURL) WithBasePath

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

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 Logout

type Logout struct {
	Context *middleware.Context
	Handler LogoutHandler
}

Logout swagger:route POST /logout logout

Logout for user

func NewLogout

func NewLogout(ctx *middleware.Context, handler LogoutHandler) *Logout

NewLogout creates a new http.Handler for the logout operation

func (*Logout) ServeHTTP

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

type LogoutDefault

type LogoutDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

LogoutDefault Generic error response.

swagger:response logoutDefault

func NewLogoutDefault

func NewLogoutDefault(code int) *LogoutDefault

NewLogoutDefault creates LogoutDefault with default headers values

func (*LogoutDefault) SetPayload

func (o *LogoutDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the logout default response

func (*LogoutDefault) SetStatusCode

func (o *LogoutDefault) SetStatusCode(code int)

SetStatusCode sets the status to the logout default response

func (*LogoutDefault) WithPayload

func (o *LogoutDefault) WithPayload(payload *models.Error) *LogoutDefault

WithPayload adds the payload to the logout default response

func (*LogoutDefault) WithStatusCode

func (o *LogoutDefault) WithStatusCode(code int) *LogoutDefault

WithStatusCode adds the status to the logout default response

func (*LogoutDefault) WriteResponse

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

WriteResponse to the client

type LogoutHandler

type LogoutHandler interface {
	Handle(LogoutParams, *app.AuthUser) middleware.Responder
}

LogoutHandler interface for that can handle valid logout params

type LogoutHandlerFunc

type LogoutHandlerFunc func(LogoutParams, *app.AuthUser) middleware.Responder

LogoutHandlerFunc turns a function with the right signature into a logout handler

func (LogoutHandlerFunc) Handle

func (fn LogoutHandlerFunc) Handle(params LogoutParams, principal *app.AuthUser) middleware.Responder

Handle executing the request and returning a response

type LogoutNoContent

type LogoutNoContent struct {
}

LogoutNoContent The server successfully processed the request and is not returning any content.

swagger:response logoutNoContent

func NewLogoutNoContent

func NewLogoutNoContent() *LogoutNoContent

NewLogoutNoContent creates LogoutNoContent with default headers values

func (*LogoutNoContent) WriteResponse

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

WriteResponse to the client

type LogoutParams

type LogoutParams struct {

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

LogoutParams contains all the bound params for the logout operation typically these are obtained from a http.Request

swagger:parameters logout

func NewLogoutParams

func NewLogoutParams() LogoutParams

NewLogoutParams creates a new LogoutParams object no default values defined in spec.

func (*LogoutParams) BindRequest

func (o *LogoutParams) 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 NewLogoutParams() beforehand.

type LogoutURL

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

LogoutURL generates an URL for the logout operation

func (*LogoutURL) Build

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

Build a url path and query string

func (*LogoutURL) BuildFull

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

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

func (*LogoutURL) Must

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

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

func (*LogoutURL) SetBasePath

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

func (o *LogoutURL) String() string

String returns the string representation of the path with query string

func (*LogoutURL) StringFull

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

StringFull returns the string representation of a complete url

func (*LogoutURL) WithBasePath

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

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 RecoveryPassword

type RecoveryPassword struct {
	Context *middleware.Context
	Handler RecoveryPasswordHandler
}

RecoveryPassword swagger:route POST /recovery-password recoveryPassword

Updates the password of the user who owns this recovery code.

func NewRecoveryPassword

func NewRecoveryPassword(ctx *middleware.Context, handler RecoveryPasswordHandler) *RecoveryPassword

NewRecoveryPassword creates a new http.Handler for the recovery password operation

func (*RecoveryPassword) ServeHTTP

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

type RecoveryPasswordBody

type RecoveryPasswordBody struct {

	// password
	// Required: true
	// Format: password
	Password models.Password `json:"password"`

	// recovery code
	// Required: true
	RecoveryCode models.RecoveryCode `json:"recoveryCode"`
}

RecoveryPasswordBody recovery password body

swagger:model RecoveryPasswordBody

func (*RecoveryPasswordBody) MarshalBinary

func (o *RecoveryPasswordBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RecoveryPasswordBody) UnmarshalBinary

func (o *RecoveryPasswordBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RecoveryPasswordBody) Validate

func (o *RecoveryPasswordBody) Validate(formats strfmt.Registry) error

Validate validates this recovery password body

type RecoveryPasswordDefault

type RecoveryPasswordDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

RecoveryPasswordDefault Generic error response.

swagger:response recoveryPasswordDefault

func NewRecoveryPasswordDefault

func NewRecoveryPasswordDefault(code int) *RecoveryPasswordDefault

NewRecoveryPasswordDefault creates RecoveryPasswordDefault with default headers values

func (*RecoveryPasswordDefault) SetPayload

func (o *RecoveryPasswordDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the recovery password default response

func (*RecoveryPasswordDefault) SetStatusCode

func (o *RecoveryPasswordDefault) SetStatusCode(code int)

SetStatusCode sets the status to the recovery password default response

func (*RecoveryPasswordDefault) WithPayload

func (o *RecoveryPasswordDefault) WithPayload(payload *models.Error) *RecoveryPasswordDefault

WithPayload adds the payload to the recovery password default response

func (*RecoveryPasswordDefault) WithStatusCode

func (o *RecoveryPasswordDefault) WithStatusCode(code int) *RecoveryPasswordDefault

WithStatusCode adds the status to the recovery password default response

func (*RecoveryPasswordDefault) WriteResponse

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

WriteResponse to the client

type RecoveryPasswordHandler

type RecoveryPasswordHandler interface {
	Handle(RecoveryPasswordParams) middleware.Responder
}

RecoveryPasswordHandler interface for that can handle valid recovery password params

type RecoveryPasswordHandlerFunc

type RecoveryPasswordHandlerFunc func(RecoveryPasswordParams) middleware.Responder

RecoveryPasswordHandlerFunc turns a function with the right signature into a recovery password handler

func (RecoveryPasswordHandlerFunc) Handle

Handle executing the request and returning a response

type RecoveryPasswordNoContent

type RecoveryPasswordNoContent struct {
}

RecoveryPasswordNoContent The server successfully processed the request and is not returning any content.

swagger:response recoveryPasswordNoContent

func NewRecoveryPasswordNoContent

func NewRecoveryPasswordNoContent() *RecoveryPasswordNoContent

NewRecoveryPasswordNoContent creates RecoveryPasswordNoContent with default headers values

func (*RecoveryPasswordNoContent) WriteResponse

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

WriteResponse to the client

type RecoveryPasswordParams

type RecoveryPasswordParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	Args RecoveryPasswordBody
}

RecoveryPasswordParams contains all the bound params for the recovery password operation typically these are obtained from a http.Request

swagger:parameters recoveryPassword

func NewRecoveryPasswordParams

func NewRecoveryPasswordParams() RecoveryPasswordParams

NewRecoveryPasswordParams creates a new RecoveryPasswordParams object no default values defined in spec.

func (*RecoveryPasswordParams) BindRequest

func (o *RecoveryPasswordParams) 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 NewRecoveryPasswordParams() beforehand.

type RecoveryPasswordURL

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

RecoveryPasswordURL generates an URL for the recovery password operation

func (*RecoveryPasswordURL) Build

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

Build a url path and query string

func (*RecoveryPasswordURL) BuildFull

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

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

func (*RecoveryPasswordURL) Must

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

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

func (*RecoveryPasswordURL) SetBasePath

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

func (o *RecoveryPasswordURL) String() string

String returns the string representation of the path with query string

func (*RecoveryPasswordURL) StringFull

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

StringFull returns the string representation of a complete url

func (*RecoveryPasswordURL) WithBasePath

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

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 ServiceBoilerplateAPI

type ServiceBoilerplateAPI struct {
	Middleware func(middleware.Builder) http.Handler

	// BasicAuthenticator generates a runtime.Authenticator from the supplied basic auth function.
	// It has a default implementation in the security package, however you can replace it for your particular usage.
	BasicAuthenticator func(security.UserPassAuthentication) runtime.Authenticator
	// APIKeyAuthenticator generates a runtime.Authenticator from the supplied token auth function.
	// It has a default implementation in the security package, however you can replace it for your particular usage.
	APIKeyAuthenticator func(string, string, security.TokenAuthentication) runtime.Authenticator
	// BearerAuthenticator generates a runtime.Authenticator from the supplied bearer token auth function.
	// It has a default implementation in the security package, however you can replace it for your particular usage.
	BearerAuthenticator func(string, security.ScopedTokenAuthentication) runtime.Authenticator

	// JSONConsumer registers a consumer for the following mime types:
	//   - application/json
	JSONConsumer runtime.Consumer

	// JSONProducer registers a producer for the following mime types:
	//   - application/json
	JSONProducer runtime.Producer

	// CookieKeyAuth registers a function that takes a token and returns a principal
	// it performs authentication based on an api key Cookie provided in the header
	CookieKeyAuth func(string) (*app.AuthUser, error)

	// APIAuthorizer provides access control (ACL/RBAC/ABAC) by providing access to the request and authenticated principal
	APIAuthorizer runtime.Authorizer

	// CreateRecoveryCodeHandler sets the operation handler for the create recovery code operation
	CreateRecoveryCodeHandler CreateRecoveryCodeHandler
	// CreateUserHandler sets the operation handler for the create user operation
	CreateUserHandler CreateUserHandler
	// DeleteUserHandler sets the operation handler for the delete user operation
	DeleteUserHandler DeleteUserHandler
	// GetUserHandler sets the operation handler for the get user operation
	GetUserHandler GetUserHandler
	// GetUsersHandler sets the operation handler for the get users operation
	GetUsersHandler GetUsersHandler
	// LoginHandler sets the operation handler for the login operation
	LoginHandler LoginHandler
	// LogoutHandler sets the operation handler for the logout operation
	LogoutHandler LogoutHandler
	// RecoveryPasswordHandler sets the operation handler for the recovery password operation
	RecoveryPasswordHandler RecoveryPasswordHandler
	// UpdateEmailHandler sets the operation handler for the update email operation
	UpdateEmailHandler UpdateEmailHandler
	// UpdatePasswordHandler sets the operation handler for the update password operation
	UpdatePasswordHandler UpdatePasswordHandler
	// UpdateUsernameHandler sets the operation handler for the update username operation
	UpdateUsernameHandler UpdateUsernameHandler
	// VerificationEmailHandler sets the operation handler for the verification email operation
	VerificationEmailHandler VerificationEmailHandler
	// VerificationUsernameHandler sets the operation handler for the verification username operation
	VerificationUsernameHandler VerificationUsernameHandler
	// ServeError is called when an error is received, there is a default handler
	// but you can set your own with this
	ServeError func(http.ResponseWriter, *http.Request, error)

	// PreServerShutdown is called before the HTTP(S) server is shutdown
	// This allows for custom functions to get executed before the HTTP(S) server stops accepting traffic
	PreServerShutdown func()

	// ServerShutdown is called when the HTTP(S) server is shut down and done
	// handling all active connections and does not accept connections any more
	ServerShutdown func()

	// Custom command line argument groups with their descriptions
	CommandLineOptionsGroups []swag.CommandLineOptionsGroup

	// User defined logger function.
	Logger func(string, ...interface{})
	// contains filtered or unexported fields
}

ServiceBoilerplateAPI the service boilerplate API

func NewServiceBoilerplateAPI

func NewServiceBoilerplateAPI(spec *loads.Document) *ServiceBoilerplateAPI

NewServiceBoilerplateAPI creates a new ServiceBoilerplate instance

func (*ServiceBoilerplateAPI) AddMiddlewareFor

func (o *ServiceBoilerplateAPI) AddMiddlewareFor(method, path string, builder middleware.Builder)

AddMiddlewareFor adds a http middleware to existing handler

func (*ServiceBoilerplateAPI) AuthenticatorsFor

func (o *ServiceBoilerplateAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator

AuthenticatorsFor gets the authenticators for the specified security schemes

func (*ServiceBoilerplateAPI) Authorizer

func (o *ServiceBoilerplateAPI) Authorizer() runtime.Authorizer

Authorizer returns the registered authorizer

func (*ServiceBoilerplateAPI) ConsumersFor

func (o *ServiceBoilerplateAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer

ConsumersFor gets the consumers for the specified media types. MIME type parameters are ignored here.

func (*ServiceBoilerplateAPI) Context

Context returns the middleware context for the service boilerplate API

func (*ServiceBoilerplateAPI) DefaultConsumes

func (o *ServiceBoilerplateAPI) DefaultConsumes() string

DefaultConsumes returns the default consumes media type

func (*ServiceBoilerplateAPI) DefaultProduces

func (o *ServiceBoilerplateAPI) DefaultProduces() string

DefaultProduces returns the default produces media type

func (*ServiceBoilerplateAPI) Formats

func (o *ServiceBoilerplateAPI) Formats() strfmt.Registry

Formats returns the registered string formats

func (*ServiceBoilerplateAPI) HandlerFor

func (o *ServiceBoilerplateAPI) HandlerFor(method, path string) (http.Handler, bool)

HandlerFor gets a http.Handler for the provided operation method and path

func (*ServiceBoilerplateAPI) Init

func (o *ServiceBoilerplateAPI) Init()

Init allows you to just initialize the handler cache, you can then recompose the middleware as you see fit

func (*ServiceBoilerplateAPI) ProducersFor

func (o *ServiceBoilerplateAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer

ProducersFor gets the producers for the specified media types. MIME type parameters are ignored here.

func (*ServiceBoilerplateAPI) RegisterConsumer

func (o *ServiceBoilerplateAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer)

RegisterConsumer allows you to add (or override) a consumer for a media type.

func (*ServiceBoilerplateAPI) RegisterFormat

func (o *ServiceBoilerplateAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)

RegisterFormat registers a custom format validator

func (*ServiceBoilerplateAPI) RegisterProducer

func (o *ServiceBoilerplateAPI) RegisterProducer(mediaType string, producer runtime.Producer)

RegisterProducer allows you to add (or override) a producer for a media type.

func (*ServiceBoilerplateAPI) Serve

Serve creates a http handler to serve the API over HTTP can be used directly in http.ListenAndServe(":8000", api.Serve(nil))

func (*ServiceBoilerplateAPI) ServeErrorFor

func (o *ServiceBoilerplateAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)

ServeErrorFor gets a error handler for a given operation id

func (*ServiceBoilerplateAPI) SetDefaultConsumes

func (o *ServiceBoilerplateAPI) SetDefaultConsumes(mediaType string)

SetDefaultConsumes returns the default consumes media type

func (*ServiceBoilerplateAPI) SetDefaultProduces

func (o *ServiceBoilerplateAPI) SetDefaultProduces(mediaType string)

SetDefaultProduces sets the default produces media type

func (*ServiceBoilerplateAPI) SetSpec

func (o *ServiceBoilerplateAPI) SetSpec(spec *loads.Document)

SetSpec sets a spec that will be served for the clients.

func (*ServiceBoilerplateAPI) Validate

func (o *ServiceBoilerplateAPI) Validate() error

Validate validates the registrations in the ServiceBoilerplateAPI

type UpdateEmail

type UpdateEmail struct {
	Context *middleware.Context
	Handler UpdateEmailHandler
}

UpdateEmail swagger:route PATCH /user/email updateEmail

Change email.

func NewUpdateEmail

func NewUpdateEmail(ctx *middleware.Context, handler UpdateEmailHandler) *UpdateEmail

NewUpdateEmail creates a new http.Handler for the update email operation

func (*UpdateEmail) ServeHTTP

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

type UpdateEmailBody

type UpdateEmailBody struct {

	// email
	// Required: true
	// Format: email
	Email models.Email `json:"email"`
}

UpdateEmailBody update email body

swagger:model UpdateEmailBody

func (*UpdateEmailBody) MarshalBinary

func (o *UpdateEmailBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateEmailBody) UnmarshalBinary

func (o *UpdateEmailBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateEmailBody) Validate

func (o *UpdateEmailBody) Validate(formats strfmt.Registry) error

Validate validates this update email body

type UpdateEmailDefault

type UpdateEmailDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

UpdateEmailDefault Generic error response.

swagger:response updateEmailDefault

func NewUpdateEmailDefault

func NewUpdateEmailDefault(code int) *UpdateEmailDefault

NewUpdateEmailDefault creates UpdateEmailDefault with default headers values

func (*UpdateEmailDefault) SetPayload

func (o *UpdateEmailDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the update email default response

func (*UpdateEmailDefault) SetStatusCode

func (o *UpdateEmailDefault) SetStatusCode(code int)

SetStatusCode sets the status to the update email default response

func (*UpdateEmailDefault) WithPayload

func (o *UpdateEmailDefault) WithPayload(payload *models.Error) *UpdateEmailDefault

WithPayload adds the payload to the update email default response

func (*UpdateEmailDefault) WithStatusCode

func (o *UpdateEmailDefault) WithStatusCode(code int) *UpdateEmailDefault

WithStatusCode adds the status to the update email default response

func (*UpdateEmailDefault) WriteResponse

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

WriteResponse to the client

type UpdateEmailHandler

type UpdateEmailHandler interface {
	Handle(UpdateEmailParams, *app.AuthUser) middleware.Responder
}

UpdateEmailHandler interface for that can handle valid update email params

type UpdateEmailHandlerFunc

type UpdateEmailHandlerFunc func(UpdateEmailParams, *app.AuthUser) middleware.Responder

UpdateEmailHandlerFunc turns a function with the right signature into a update email handler

func (UpdateEmailHandlerFunc) Handle

Handle executing the request and returning a response

type UpdateEmailNoContent

type UpdateEmailNoContent struct {
}

UpdateEmailNoContent The server successfully processed the request and is not returning any content.

swagger:response updateEmailNoContent

func NewUpdateEmailNoContent

func NewUpdateEmailNoContent() *UpdateEmailNoContent

NewUpdateEmailNoContent creates UpdateEmailNoContent with default headers values

func (*UpdateEmailNoContent) WriteResponse

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

WriteResponse to the client

type UpdateEmailParams

type UpdateEmailParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	Args UpdateEmailBody
}

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

swagger:parameters updateEmail

func NewUpdateEmailParams

func NewUpdateEmailParams() UpdateEmailParams

NewUpdateEmailParams creates a new UpdateEmailParams object no default values defined in spec.

func (*UpdateEmailParams) BindRequest

func (o *UpdateEmailParams) 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 NewUpdateEmailParams() beforehand.

type UpdateEmailURL

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

UpdateEmailURL generates an URL for the update email operation

func (*UpdateEmailURL) Build

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

Build a url path and query string

func (*UpdateEmailURL) BuildFull

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

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

func (*UpdateEmailURL) Must

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

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

func (*UpdateEmailURL) SetBasePath

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

func (o *UpdateEmailURL) String() string

String returns the string representation of the path with query string

func (*UpdateEmailURL) StringFull

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

StringFull returns the string representation of a complete url

func (*UpdateEmailURL) WithBasePath

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

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 UpdatePassword

type UpdatePassword struct {
	Context *middleware.Context
	Handler UpdatePasswordHandler
}

UpdatePassword swagger:route PATCH /user/password updatePassword

Change password.

func NewUpdatePassword

func NewUpdatePassword(ctx *middleware.Context, handler UpdatePasswordHandler) *UpdatePassword

NewUpdatePassword creates a new http.Handler for the update password operation

func (*UpdatePassword) ServeHTTP

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

type UpdatePasswordDefault

type UpdatePasswordDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

UpdatePasswordDefault Generic error response.

swagger:response updatePasswordDefault

func NewUpdatePasswordDefault

func NewUpdatePasswordDefault(code int) *UpdatePasswordDefault

NewUpdatePasswordDefault creates UpdatePasswordDefault with default headers values

func (*UpdatePasswordDefault) SetPayload

func (o *UpdatePasswordDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the update password default response

func (*UpdatePasswordDefault) SetStatusCode

func (o *UpdatePasswordDefault) SetStatusCode(code int)

SetStatusCode sets the status to the update password default response

func (*UpdatePasswordDefault) WithPayload

func (o *UpdatePasswordDefault) WithPayload(payload *models.Error) *UpdatePasswordDefault

WithPayload adds the payload to the update password default response

func (*UpdatePasswordDefault) WithStatusCode

func (o *UpdatePasswordDefault) WithStatusCode(code int) *UpdatePasswordDefault

WithStatusCode adds the status to the update password default response

func (*UpdatePasswordDefault) WriteResponse

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

WriteResponse to the client

type UpdatePasswordHandler

type UpdatePasswordHandler interface {
	Handle(UpdatePasswordParams, *app.AuthUser) middleware.Responder
}

UpdatePasswordHandler interface for that can handle valid update password params

type UpdatePasswordHandlerFunc

type UpdatePasswordHandlerFunc func(UpdatePasswordParams, *app.AuthUser) middleware.Responder

UpdatePasswordHandlerFunc turns a function with the right signature into a update password handler

func (UpdatePasswordHandlerFunc) Handle

Handle executing the request and returning a response

type UpdatePasswordNoContent

type UpdatePasswordNoContent struct {
}

UpdatePasswordNoContent The server successfully processed the request and is not returning any content.

swagger:response updatePasswordNoContent

func NewUpdatePasswordNoContent

func NewUpdatePasswordNoContent() *UpdatePasswordNoContent

NewUpdatePasswordNoContent creates UpdatePasswordNoContent with default headers values

func (*UpdatePasswordNoContent) WriteResponse

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

WriteResponse to the client

type UpdatePasswordParams

type UpdatePasswordParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	Args *models.UpdatePassword
}

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

swagger:parameters updatePassword

func NewUpdatePasswordParams

func NewUpdatePasswordParams() UpdatePasswordParams

NewUpdatePasswordParams creates a new UpdatePasswordParams object no default values defined in spec.

func (*UpdatePasswordParams) BindRequest

func (o *UpdatePasswordParams) 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 NewUpdatePasswordParams() beforehand.

type UpdatePasswordURL

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

UpdatePasswordURL generates an URL for the update password operation

func (*UpdatePasswordURL) Build

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

Build a url path and query string

func (*UpdatePasswordURL) BuildFull

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

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

func (*UpdatePasswordURL) Must

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

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

func (*UpdatePasswordURL) SetBasePath

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

func (o *UpdatePasswordURL) String() string

String returns the string representation of the path with query string

func (*UpdatePasswordURL) StringFull

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

StringFull returns the string representation of a complete url

func (*UpdatePasswordURL) WithBasePath

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

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 UpdateUsername

type UpdateUsername struct {
	Context *middleware.Context
	Handler UpdateUsernameHandler
}

UpdateUsername swagger:route PATCH /user/username updateUsername

Change username.

func NewUpdateUsername

func NewUpdateUsername(ctx *middleware.Context, handler UpdateUsernameHandler) *UpdateUsername

NewUpdateUsername creates a new http.Handler for the update username operation

func (*UpdateUsername) ServeHTTP

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

type UpdateUsernameBody

type UpdateUsernameBody struct {

	// username
	// Required: true
	Username models.Username `json:"username"`
}

UpdateUsernameBody update username body

swagger:model UpdateUsernameBody

func (*UpdateUsernameBody) MarshalBinary

func (o *UpdateUsernameBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateUsernameBody) UnmarshalBinary

func (o *UpdateUsernameBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateUsernameBody) Validate

func (o *UpdateUsernameBody) Validate(formats strfmt.Registry) error

Validate validates this update username body

type UpdateUsernameDefault

type UpdateUsernameDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

UpdateUsernameDefault Generic error response.

swagger:response updateUsernameDefault

func NewUpdateUsernameDefault

func NewUpdateUsernameDefault(code int) *UpdateUsernameDefault

NewUpdateUsernameDefault creates UpdateUsernameDefault with default headers values

func (*UpdateUsernameDefault) SetPayload

func (o *UpdateUsernameDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the update username default response

func (*UpdateUsernameDefault) SetStatusCode

func (o *UpdateUsernameDefault) SetStatusCode(code int)

SetStatusCode sets the status to the update username default response

func (*UpdateUsernameDefault) WithPayload

func (o *UpdateUsernameDefault) WithPayload(payload *models.Error) *UpdateUsernameDefault

WithPayload adds the payload to the update username default response

func (*UpdateUsernameDefault) WithStatusCode

func (o *UpdateUsernameDefault) WithStatusCode(code int) *UpdateUsernameDefault

WithStatusCode adds the status to the update username default response

func (*UpdateUsernameDefault) WriteResponse

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

WriteResponse to the client

type UpdateUsernameHandler

type UpdateUsernameHandler interface {
	Handle(UpdateUsernameParams, *app.AuthUser) middleware.Responder
}

UpdateUsernameHandler interface for that can handle valid update username params

type UpdateUsernameHandlerFunc

type UpdateUsernameHandlerFunc func(UpdateUsernameParams, *app.AuthUser) middleware.Responder

UpdateUsernameHandlerFunc turns a function with the right signature into a update username handler

func (UpdateUsernameHandlerFunc) Handle

Handle executing the request and returning a response

type UpdateUsernameNoContent

type UpdateUsernameNoContent struct {
}

UpdateUsernameNoContent The server successfully processed the request and is not returning any content.

swagger:response updateUsernameNoContent

func NewUpdateUsernameNoContent

func NewUpdateUsernameNoContent() *UpdateUsernameNoContent

NewUpdateUsernameNoContent creates UpdateUsernameNoContent with default headers values

func (*UpdateUsernameNoContent) WriteResponse

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

WriteResponse to the client

type UpdateUsernameParams

type UpdateUsernameParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	Args UpdateUsernameBody
}

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

swagger:parameters updateUsername

func NewUpdateUsernameParams

func NewUpdateUsernameParams() UpdateUsernameParams

NewUpdateUsernameParams creates a new UpdateUsernameParams object no default values defined in spec.

func (*UpdateUsernameParams) BindRequest

func (o *UpdateUsernameParams) 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 NewUpdateUsernameParams() beforehand.

type UpdateUsernameURL

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

UpdateUsernameURL generates an URL for the update username operation

func (*UpdateUsernameURL) Build

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

Build a url path and query string

func (*UpdateUsernameURL) BuildFull

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

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

func (*UpdateUsernameURL) Must

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

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

func (*UpdateUsernameURL) SetBasePath

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

func (o *UpdateUsernameURL) String() string

String returns the string representation of the path with query string

func (*UpdateUsernameURL) StringFull

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

StringFull returns the string representation of a complete url

func (*UpdateUsernameURL) WithBasePath

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

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 VerificationEmail

type VerificationEmail struct {
	Context *middleware.Context
	Handler VerificationEmailHandler
}

VerificationEmail swagger:route POST /email/verification verificationEmail

VerificationEmail verification email API

func NewVerificationEmail

func NewVerificationEmail(ctx *middleware.Context, handler VerificationEmailHandler) *VerificationEmail

NewVerificationEmail creates a new http.Handler for the verification email operation

func (*VerificationEmail) ServeHTTP

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

type VerificationEmailBody

type VerificationEmailBody struct {

	// email
	// Required: true
	// Format: email
	Email models.Email `json:"email"`
}

VerificationEmailBody verification email body

swagger:model VerificationEmailBody

func (*VerificationEmailBody) MarshalBinary

func (o *VerificationEmailBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*VerificationEmailBody) UnmarshalBinary

func (o *VerificationEmailBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*VerificationEmailBody) Validate

func (o *VerificationEmailBody) Validate(formats strfmt.Registry) error

Validate validates this verification email body

type VerificationEmailDefault

type VerificationEmailDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

VerificationEmailDefault Generic error response.

swagger:response verificationEmailDefault

func NewVerificationEmailDefault

func NewVerificationEmailDefault(code int) *VerificationEmailDefault

NewVerificationEmailDefault creates VerificationEmailDefault with default headers values

func (*VerificationEmailDefault) SetPayload

func (o *VerificationEmailDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the verification email default response

func (*VerificationEmailDefault) SetStatusCode

func (o *VerificationEmailDefault) SetStatusCode(code int)

SetStatusCode sets the status to the verification email default response

func (*VerificationEmailDefault) WithPayload

WithPayload adds the payload to the verification email default response

func (*VerificationEmailDefault) WithStatusCode

func (o *VerificationEmailDefault) WithStatusCode(code int) *VerificationEmailDefault

WithStatusCode adds the status to the verification email default response

func (*VerificationEmailDefault) WriteResponse

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

WriteResponse to the client

type VerificationEmailHandler

type VerificationEmailHandler interface {
	Handle(VerificationEmailParams) middleware.Responder
}

VerificationEmailHandler interface for that can handle valid verification email params

type VerificationEmailHandlerFunc

type VerificationEmailHandlerFunc func(VerificationEmailParams) middleware.Responder

VerificationEmailHandlerFunc turns a function with the right signature into a verification email handler

func (VerificationEmailHandlerFunc) Handle

Handle executing the request and returning a response

type VerificationEmailNoContent

type VerificationEmailNoContent struct {
}

VerificationEmailNoContent The server successfully processed the request and is not returning any content.

swagger:response verificationEmailNoContent

func NewVerificationEmailNoContent

func NewVerificationEmailNoContent() *VerificationEmailNoContent

NewVerificationEmailNoContent creates VerificationEmailNoContent with default headers values

func (*VerificationEmailNoContent) WriteResponse

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

WriteResponse to the client

type VerificationEmailParams

type VerificationEmailParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	Args VerificationEmailBody
}

VerificationEmailParams contains all the bound params for the verification email operation typically these are obtained from a http.Request

swagger:parameters verificationEmail

func NewVerificationEmailParams

func NewVerificationEmailParams() VerificationEmailParams

NewVerificationEmailParams creates a new VerificationEmailParams object no default values defined in spec.

func (*VerificationEmailParams) BindRequest

func (o *VerificationEmailParams) 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 NewVerificationEmailParams() beforehand.

type VerificationEmailURL

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

VerificationEmailURL generates an URL for the verification email operation

func (*VerificationEmailURL) Build

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

Build a url path and query string

func (*VerificationEmailURL) BuildFull

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

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

func (*VerificationEmailURL) Must

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

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

func (*VerificationEmailURL) SetBasePath

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

func (o *VerificationEmailURL) String() string

String returns the string representation of the path with query string

func (*VerificationEmailURL) StringFull

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

StringFull returns the string representation of a complete url

func (*VerificationEmailURL) WithBasePath

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

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 VerificationUsername

type VerificationUsername struct {
	Context *middleware.Context
	Handler VerificationUsernameHandler
}

VerificationUsername swagger:route POST /username/verification verificationUsername

VerificationUsername verification username API

func NewVerificationUsername

func NewVerificationUsername(ctx *middleware.Context, handler VerificationUsernameHandler) *VerificationUsername

NewVerificationUsername creates a new http.Handler for the verification username operation

func (*VerificationUsername) ServeHTTP

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

type VerificationUsernameBody

type VerificationUsernameBody struct {

	// username
	// Required: true
	Username models.Username `json:"username"`
}

VerificationUsernameBody verification username body

swagger:model VerificationUsernameBody

func (*VerificationUsernameBody) MarshalBinary

func (o *VerificationUsernameBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*VerificationUsernameBody) UnmarshalBinary

func (o *VerificationUsernameBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*VerificationUsernameBody) Validate

func (o *VerificationUsernameBody) Validate(formats strfmt.Registry) error

Validate validates this verification username body

type VerificationUsernameDefault

type VerificationUsernameDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

VerificationUsernameDefault Generic error response.

swagger:response verificationUsernameDefault

func NewVerificationUsernameDefault

func NewVerificationUsernameDefault(code int) *VerificationUsernameDefault

NewVerificationUsernameDefault creates VerificationUsernameDefault with default headers values

func (*VerificationUsernameDefault) SetPayload

func (o *VerificationUsernameDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the verification username default response

func (*VerificationUsernameDefault) SetStatusCode

func (o *VerificationUsernameDefault) SetStatusCode(code int)

SetStatusCode sets the status to the verification username default response

func (*VerificationUsernameDefault) WithPayload

WithPayload adds the payload to the verification username default response

func (*VerificationUsernameDefault) WithStatusCode

WithStatusCode adds the status to the verification username default response

func (*VerificationUsernameDefault) WriteResponse

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

WriteResponse to the client

type VerificationUsernameHandler

type VerificationUsernameHandler interface {
	Handle(VerificationUsernameParams) middleware.Responder
}

VerificationUsernameHandler interface for that can handle valid verification username params

type VerificationUsernameHandlerFunc

type VerificationUsernameHandlerFunc func(VerificationUsernameParams) middleware.Responder

VerificationUsernameHandlerFunc turns a function with the right signature into a verification username handler

func (VerificationUsernameHandlerFunc) Handle

Handle executing the request and returning a response

type VerificationUsernameNoContent

type VerificationUsernameNoContent struct {
}

VerificationUsernameNoContent The server successfully processed the request and is not returning any content.

swagger:response verificationUsernameNoContent

func NewVerificationUsernameNoContent

func NewVerificationUsernameNoContent() *VerificationUsernameNoContent

NewVerificationUsernameNoContent creates VerificationUsernameNoContent with default headers values

func (*VerificationUsernameNoContent) WriteResponse

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

WriteResponse to the client

type VerificationUsernameParams

type VerificationUsernameParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	Args VerificationUsernameBody
}

VerificationUsernameParams contains all the bound params for the verification username operation typically these are obtained from a http.Request

swagger:parameters verificationUsername

func NewVerificationUsernameParams

func NewVerificationUsernameParams() VerificationUsernameParams

NewVerificationUsernameParams creates a new VerificationUsernameParams object no default values defined in spec.

func (*VerificationUsernameParams) BindRequest

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 NewVerificationUsernameParams() beforehand.

type VerificationUsernameURL

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

VerificationUsernameURL generates an URL for the verification username operation

func (*VerificationUsernameURL) Build

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

Build a url path and query string

func (*VerificationUsernameURL) BuildFull

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

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

func (*VerificationUsernameURL) Must

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

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

func (*VerificationUsernameURL) SetBasePath

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

func (o *VerificationUsernameURL) String() string

String returns the string representation of the path with query string

func (*VerificationUsernameURL) StringFull

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

StringFull returns the string representation of a complete url

func (*VerificationUsernameURL) WithBasePath

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