account

package
v0.3.5-rc1 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const InviteBadRequestCode int = 400

InviteBadRequestCode is the HTTP code returned for type InviteBadRequest

View Source
const InviteCreatedCode int = 201

InviteCreatedCode is the HTTP code returned for type InviteCreated

View Source
const InviteInternalServerErrorCode int = 500

InviteInternalServerErrorCode is the HTTP code returned for type InviteInternalServerError

View Source
const InviteUnauthorizedCode int = 401

InviteUnauthorizedCode is the HTTP code returned for type InviteUnauthorized

View Source
const LoginOKCode int = 200

LoginOKCode is the HTTP code returned for type LoginOK

View Source
const LoginUnauthorizedCode int = 401

LoginUnauthorizedCode is the HTTP code returned for type LoginUnauthorized

View Source
const RegisterInternalServerErrorCode int = 500

RegisterInternalServerErrorCode is the HTTP code returned for type RegisterInternalServerError

View Source
const RegisterNotFoundCode int = 404

RegisterNotFoundCode is the HTTP code returned for type RegisterNotFound

View Source
const RegisterOKCode int = 200

RegisterOKCode is the HTTP code returned for type RegisterOK

View Source
const ResetPasswordInternalServerErrorCode int = 500

ResetPasswordInternalServerErrorCode is the HTTP code returned for type ResetPasswordInternalServerError

View Source
const ResetPasswordNotFoundCode int = 404

ResetPasswordNotFoundCode is the HTTP code returned for type ResetPasswordNotFound

View Source
const ResetPasswordOKCode int = 200

ResetPasswordOKCode is the HTTP code returned for type ResetPasswordOK

View Source
const ResetPasswordRequestBadRequestCode int = 400

ResetPasswordRequestBadRequestCode is the HTTP code returned for type ResetPasswordRequestBadRequest

View Source
const ResetPasswordRequestCreatedCode int = 201

ResetPasswordRequestCreatedCode is the HTTP code returned for type ResetPasswordRequestCreated

View Source
const ResetPasswordRequestInternalServerErrorCode int = 500

ResetPasswordRequestInternalServerErrorCode is the HTTP code returned for type ResetPasswordRequestInternalServerError

View Source
const VerifyInternalServerErrorCode int = 500

VerifyInternalServerErrorCode is the HTTP code returned for type VerifyInternalServerError

View Source
const VerifyNotFoundCode int = 404

VerifyNotFoundCode is the HTTP code returned for type VerifyNotFound

View Source
const VerifyOKCode int = 200

VerifyOKCode is the HTTP code returned for type VerifyOK

Variables

This section is empty.

Functions

This section is empty.

Types

type Invite

type Invite struct {
	Context *middleware.Context
	Handler InviteHandler
}
Invite swagger:route POST /invite account invite

Invite invite API

func NewInvite

func NewInvite(ctx *middleware.Context, handler InviteHandler) *Invite

NewInvite creates a new http.Handler for the invite operation

func (*Invite) ServeHTTP

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

type InviteBadRequest

type InviteBadRequest struct {

	/*
	  In: Body
	*/
	Payload rest_model_zrok.ErrorMessage `json:"body,omitempty"`
}

InviteBadRequest invitation not created (already exists)

swagger:response inviteBadRequest

func NewInviteBadRequest

func NewInviteBadRequest() *InviteBadRequest

NewInviteBadRequest creates InviteBadRequest with default headers values

func (*InviteBadRequest) SetPayload added in v0.3.1

func (o *InviteBadRequest) SetPayload(payload rest_model_zrok.ErrorMessage)

SetPayload sets the payload to the invite bad request response

func (*InviteBadRequest) WithPayload added in v0.3.1

WithPayload adds the payload to the invite bad request response

func (*InviteBadRequest) WriteResponse

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

WriteResponse to the client

type InviteCreated

type InviteCreated struct {
}

InviteCreated invitation created

swagger:response inviteCreated

func NewInviteCreated

func NewInviteCreated() *InviteCreated

NewInviteCreated creates InviteCreated with default headers values

func (*InviteCreated) WriteResponse

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

WriteResponse to the client

type InviteHandler

type InviteHandler interface {
	Handle(InviteParams) middleware.Responder
}

InviteHandler interface for that can handle valid invite params

type InviteHandlerFunc

type InviteHandlerFunc func(InviteParams) middleware.Responder

InviteHandlerFunc turns a function with the right signature into a invite handler

func (InviteHandlerFunc) Handle

Handle executing the request and returning a response

type InviteInternalServerError

type InviteInternalServerError struct {
}

InviteInternalServerError internal server error

swagger:response inviteInternalServerError

func NewInviteInternalServerError

func NewInviteInternalServerError() *InviteInternalServerError

NewInviteInternalServerError creates InviteInternalServerError with default headers values

func (*InviteInternalServerError) WriteResponse

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

WriteResponse to the client

type InviteParams

type InviteParams struct {

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

	/*
	  In: body
	*/
	Body *rest_model_zrok.InviteRequest
}

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

swagger:parameters invite

func NewInviteParams

func NewInviteParams() InviteParams

NewInviteParams creates a new InviteParams object

There are no default values defined in the spec.

func (*InviteParams) BindRequest

func (o *InviteParams) 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 NewInviteParams() beforehand.

type InviteURL

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

InviteURL generates an URL for the invite operation

func (*InviteURL) Build

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

Build a url path and query string

func (*InviteURL) BuildFull

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

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

func (*InviteURL) Must

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

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

func (*InviteURL) SetBasePath

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

func (o *InviteURL) String() string

String returns the string representation of the path with query string

func (*InviteURL) StringFull

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

StringFull returns the string representation of a complete url

func (*InviteURL) WithBasePath

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

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 InviteUnauthorized

type InviteUnauthorized struct {
}

InviteUnauthorized unauthorized

swagger:response inviteUnauthorized

func NewInviteUnauthorized

func NewInviteUnauthorized() *InviteUnauthorized

NewInviteUnauthorized creates InviteUnauthorized with default headers values

func (*InviteUnauthorized) WriteResponse

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

WriteResponse to the client

type Login

type Login struct {
	Context *middleware.Context
	Handler LoginHandler
}
Login swagger:route POST /login account login

Login login API

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 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 {

	/*
	  In: Body
	*/
	Payload rest_model_zrok.LoginResponse `json:"body,omitempty"`
}

LoginOK login successful

swagger:response loginOK

func NewLoginOK

func NewLoginOK() *LoginOK

NewLoginOK creates LoginOK with default headers values

func (*LoginOK) SetPayload

func (o *LoginOK) SetPayload(payload rest_model_zrok.LoginResponse)

SetPayload sets the payload to the login o k response

func (*LoginOK) WithPayload

func (o *LoginOK) WithPayload(payload rest_model_zrok.LoginResponse) *LoginOK

WithPayload adds the payload 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:"-"`

	/*
	  In: body
	*/
	Body *rest_model_zrok.LoginRequest
}

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

There are no default values defined in the 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 LoginUnauthorized

type LoginUnauthorized struct {
}

LoginUnauthorized invalid login

swagger:response loginUnauthorized

func NewLoginUnauthorized

func NewLoginUnauthorized() *LoginUnauthorized

NewLoginUnauthorized creates LoginUnauthorized with default headers values

func (*LoginUnauthorized) WriteResponse

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

WriteResponse to the client

type Register

type Register struct {
	Context *middleware.Context
	Handler RegisterHandler
}
Register swagger:route POST /register account register

Register register API

func NewRegister

func NewRegister(ctx *middleware.Context, handler RegisterHandler) *Register

NewRegister creates a new http.Handler for the register operation

func (*Register) ServeHTTP

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

type RegisterHandler

type RegisterHandler interface {
	Handle(RegisterParams) middleware.Responder
}

RegisterHandler interface for that can handle valid register params

type RegisterHandlerFunc

type RegisterHandlerFunc func(RegisterParams) middleware.Responder

RegisterHandlerFunc turns a function with the right signature into a register handler

func (RegisterHandlerFunc) Handle

Handle executing the request and returning a response

type RegisterInternalServerError

type RegisterInternalServerError struct {
}

RegisterInternalServerError internal server error

swagger:response registerInternalServerError

func NewRegisterInternalServerError

func NewRegisterInternalServerError() *RegisterInternalServerError

NewRegisterInternalServerError creates RegisterInternalServerError with default headers values

func (*RegisterInternalServerError) WriteResponse

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

WriteResponse to the client

type RegisterNotFound

type RegisterNotFound struct {
}

RegisterNotFound request not found

swagger:response registerNotFound

func NewRegisterNotFound

func NewRegisterNotFound() *RegisterNotFound

NewRegisterNotFound creates RegisterNotFound with default headers values

func (*RegisterNotFound) WriteResponse

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

WriteResponse to the client

type RegisterOK

type RegisterOK struct {

	/*
	  In: Body
	*/
	Payload *rest_model_zrok.RegisterResponse `json:"body,omitempty"`
}

RegisterOK account created

swagger:response registerOK

func NewRegisterOK

func NewRegisterOK() *RegisterOK

NewRegisterOK creates RegisterOK with default headers values

func (*RegisterOK) SetPayload

func (o *RegisterOK) SetPayload(payload *rest_model_zrok.RegisterResponse)

SetPayload sets the payload to the register o k response

func (*RegisterOK) WithPayload

func (o *RegisterOK) WithPayload(payload *rest_model_zrok.RegisterResponse) *RegisterOK

WithPayload adds the payload to the register o k response

func (*RegisterOK) WriteResponse

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

WriteResponse to the client

type RegisterParams

type RegisterParams struct {

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

	/*
	  In: body
	*/
	Body *rest_model_zrok.RegisterRequest
}

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

swagger:parameters register

func NewRegisterParams

func NewRegisterParams() RegisterParams

NewRegisterParams creates a new RegisterParams object

There are no default values defined in the spec.

func (*RegisterParams) BindRequest

func (o *RegisterParams) 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 NewRegisterParams() beforehand.

type RegisterURL

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

RegisterURL generates an URL for the register operation

func (*RegisterURL) Build

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

Build a url path and query string

func (*RegisterURL) BuildFull

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

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

func (*RegisterURL) Must

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

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

func (*RegisterURL) SetBasePath

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

func (o *RegisterURL) String() string

String returns the string representation of the path with query string

func (*RegisterURL) StringFull

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

StringFull returns the string representation of a complete url

func (*RegisterURL) WithBasePath

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

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 ResetPassword

type ResetPassword struct {
	Context *middleware.Context
	Handler ResetPasswordHandler
}
ResetPassword swagger:route POST /resetPassword account resetPassword

ResetPassword reset password API

func NewResetPassword

func NewResetPassword(ctx *middleware.Context, handler ResetPasswordHandler) *ResetPassword

NewResetPassword creates a new http.Handler for the reset password operation

func (*ResetPassword) ServeHTTP

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

type ResetPasswordHandler

type ResetPasswordHandler interface {
	Handle(ResetPasswordParams) middleware.Responder
}

ResetPasswordHandler interface for that can handle valid reset password params

type ResetPasswordHandlerFunc

type ResetPasswordHandlerFunc func(ResetPasswordParams) middleware.Responder

ResetPasswordHandlerFunc turns a function with the right signature into a reset password handler

func (ResetPasswordHandlerFunc) Handle

Handle executing the request and returning a response

type ResetPasswordInternalServerError

type ResetPasswordInternalServerError struct {
}

ResetPasswordInternalServerError internal server error

swagger:response resetPasswordInternalServerError

func NewResetPasswordInternalServerError

func NewResetPasswordInternalServerError() *ResetPasswordInternalServerError

NewResetPasswordInternalServerError creates ResetPasswordInternalServerError with default headers values

func (*ResetPasswordInternalServerError) WriteResponse

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

WriteResponse to the client

type ResetPasswordNotFound

type ResetPasswordNotFound struct {
}

ResetPasswordNotFound request not found

swagger:response resetPasswordNotFound

func NewResetPasswordNotFound

func NewResetPasswordNotFound() *ResetPasswordNotFound

NewResetPasswordNotFound creates ResetPasswordNotFound with default headers values

func (*ResetPasswordNotFound) WriteResponse

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

WriteResponse to the client

type ResetPasswordOK

type ResetPasswordOK struct {
}

ResetPasswordOK password reset

swagger:response resetPasswordOK

func NewResetPasswordOK

func NewResetPasswordOK() *ResetPasswordOK

NewResetPasswordOK creates ResetPasswordOK with default headers values

func (*ResetPasswordOK) WriteResponse

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

WriteResponse to the client

type ResetPasswordParams

type ResetPasswordParams struct {

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

	/*
	  In: body
	*/
	Body *rest_model_zrok.ResetPasswordRequest
}

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

swagger:parameters resetPassword

func NewResetPasswordParams

func NewResetPasswordParams() ResetPasswordParams

NewResetPasswordParams creates a new ResetPasswordParams object

There are no default values defined in the spec.

func (*ResetPasswordParams) BindRequest

func (o *ResetPasswordParams) 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 NewResetPasswordParams() beforehand.

type ResetPasswordRequest

type ResetPasswordRequest struct {
	Context *middleware.Context
	Handler ResetPasswordRequestHandler
}
ResetPasswordRequest swagger:route POST /resetPasswordRequest account resetPasswordRequest

ResetPasswordRequest reset password request API

func NewResetPasswordRequest

func NewResetPasswordRequest(ctx *middleware.Context, handler ResetPasswordRequestHandler) *ResetPasswordRequest

NewResetPasswordRequest creates a new http.Handler for the reset password request operation

func (*ResetPasswordRequest) ServeHTTP

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

type ResetPasswordRequestBadRequest

type ResetPasswordRequestBadRequest struct {
}

ResetPasswordRequestBadRequest forgot password request not created

swagger:response resetPasswordRequestBadRequest

func NewResetPasswordRequestBadRequest

func NewResetPasswordRequestBadRequest() *ResetPasswordRequestBadRequest

NewResetPasswordRequestBadRequest creates ResetPasswordRequestBadRequest with default headers values

func (*ResetPasswordRequestBadRequest) WriteResponse

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

WriteResponse to the client

type ResetPasswordRequestBody

type ResetPasswordRequestBody struct {

	// email address
	EmailAddress string `json:"emailAddress,omitempty"`
}

ResetPasswordRequestBody reset password request body

swagger:model ResetPasswordRequestBody

func (*ResetPasswordRequestBody) ContextValidate

func (o *ResetPasswordRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this reset password request body based on context it is used

func (*ResetPasswordRequestBody) MarshalBinary

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

MarshalBinary interface implementation

func (*ResetPasswordRequestBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ResetPasswordRequestBody) Validate

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

Validate validates this reset password request body

type ResetPasswordRequestCreated

type ResetPasswordRequestCreated struct {
}

ResetPasswordRequestCreated forgot password request created

swagger:response resetPasswordRequestCreated

func NewResetPasswordRequestCreated

func NewResetPasswordRequestCreated() *ResetPasswordRequestCreated

NewResetPasswordRequestCreated creates ResetPasswordRequestCreated with default headers values

func (*ResetPasswordRequestCreated) WriteResponse

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

WriteResponse to the client

type ResetPasswordRequestHandler

type ResetPasswordRequestHandler interface {
	Handle(ResetPasswordRequestParams) middleware.Responder
}

ResetPasswordRequestHandler interface for that can handle valid reset password request params

type ResetPasswordRequestHandlerFunc

type ResetPasswordRequestHandlerFunc func(ResetPasswordRequestParams) middleware.Responder

ResetPasswordRequestHandlerFunc turns a function with the right signature into a reset password request handler

func (ResetPasswordRequestHandlerFunc) Handle

Handle executing the request and returning a response

type ResetPasswordRequestInternalServerError

type ResetPasswordRequestInternalServerError struct {
}

ResetPasswordRequestInternalServerError internal server error

swagger:response resetPasswordRequestInternalServerError

func NewResetPasswordRequestInternalServerError

func NewResetPasswordRequestInternalServerError() *ResetPasswordRequestInternalServerError

NewResetPasswordRequestInternalServerError creates ResetPasswordRequestInternalServerError with default headers values

func (*ResetPasswordRequestInternalServerError) WriteResponse

WriteResponse to the client

type ResetPasswordRequestParams

type ResetPasswordRequestParams struct {

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

	/*
	  In: body
	*/
	Body ResetPasswordRequestBody
}

ResetPasswordRequestParams contains all the bound params for the reset password request operation typically these are obtained from a http.Request

swagger:parameters resetPasswordRequest

func NewResetPasswordRequestParams

func NewResetPasswordRequestParams() ResetPasswordRequestParams

NewResetPasswordRequestParams creates a new ResetPasswordRequestParams object

There are no default values defined in the spec.

func (*ResetPasswordRequestParams) 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 NewResetPasswordRequestParams() beforehand.

type ResetPasswordRequestURL

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

ResetPasswordRequestURL generates an URL for the reset password request operation

func (*ResetPasswordRequestURL) Build

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

Build a url path and query string

func (*ResetPasswordRequestURL) BuildFull

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

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

func (*ResetPasswordRequestURL) Must

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

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

func (*ResetPasswordRequestURL) SetBasePath

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

func (o *ResetPasswordRequestURL) String() string

String returns the string representation of the path with query string

func (*ResetPasswordRequestURL) StringFull

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

StringFull returns the string representation of a complete url

func (*ResetPasswordRequestURL) 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

type ResetPasswordURL

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

ResetPasswordURL generates an URL for the reset password operation

func (*ResetPasswordURL) Build

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

Build a url path and query string

func (*ResetPasswordURL) BuildFull

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

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

func (*ResetPasswordURL) Must

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

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

func (*ResetPasswordURL) SetBasePath

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

func (o *ResetPasswordURL) String() string

String returns the string representation of the path with query string

func (*ResetPasswordURL) StringFull

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

StringFull returns the string representation of a complete url

func (*ResetPasswordURL) WithBasePath

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

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 Verify

type Verify struct {
	Context *middleware.Context
	Handler VerifyHandler
}
Verify swagger:route POST /verify account verify

Verify verify API

func NewVerify

func NewVerify(ctx *middleware.Context, handler VerifyHandler) *Verify

NewVerify creates a new http.Handler for the verify operation

func (*Verify) ServeHTTP

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

type VerifyHandler

type VerifyHandler interface {
	Handle(VerifyParams) middleware.Responder
}

VerifyHandler interface for that can handle valid verify params

type VerifyHandlerFunc

type VerifyHandlerFunc func(VerifyParams) middleware.Responder

VerifyHandlerFunc turns a function with the right signature into a verify handler

func (VerifyHandlerFunc) Handle

Handle executing the request and returning a response

type VerifyInternalServerError

type VerifyInternalServerError struct {
}

VerifyInternalServerError internal server error

swagger:response verifyInternalServerError

func NewVerifyInternalServerError

func NewVerifyInternalServerError() *VerifyInternalServerError

NewVerifyInternalServerError creates VerifyInternalServerError with default headers values

func (*VerifyInternalServerError) WriteResponse

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

WriteResponse to the client

type VerifyNotFound

type VerifyNotFound struct {
}

VerifyNotFound token not found

swagger:response verifyNotFound

func NewVerifyNotFound

func NewVerifyNotFound() *VerifyNotFound

NewVerifyNotFound creates VerifyNotFound with default headers values

func (*VerifyNotFound) WriteResponse

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

WriteResponse to the client

type VerifyOK

type VerifyOK struct {

	/*
	  In: Body
	*/
	Payload *rest_model_zrok.VerifyResponse `json:"body,omitempty"`
}

VerifyOK token ready

swagger:response verifyOK

func NewVerifyOK

func NewVerifyOK() *VerifyOK

NewVerifyOK creates VerifyOK with default headers values

func (*VerifyOK) SetPayload

func (o *VerifyOK) SetPayload(payload *rest_model_zrok.VerifyResponse)

SetPayload sets the payload to the verify o k response

func (*VerifyOK) WithPayload

func (o *VerifyOK) WithPayload(payload *rest_model_zrok.VerifyResponse) *VerifyOK

WithPayload adds the payload to the verify o k response

func (*VerifyOK) WriteResponse

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

WriteResponse to the client

type VerifyParams

type VerifyParams struct {

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

	/*
	  In: body
	*/
	Body *rest_model_zrok.VerifyRequest
}

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

swagger:parameters verify

func NewVerifyParams

func NewVerifyParams() VerifyParams

NewVerifyParams creates a new VerifyParams object

There are no default values defined in the spec.

func (*VerifyParams) BindRequest

func (o *VerifyParams) 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 NewVerifyParams() beforehand.

type VerifyURL

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

VerifyURL generates an URL for the verify operation

func (*VerifyURL) Build

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

Build a url path and query string

func (*VerifyURL) BuildFull

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

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

func (*VerifyURL) Must

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

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

func (*VerifyURL) SetBasePath

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

func (o *VerifyURL) String() string

String returns the string representation of the path with query string

func (*VerifyURL) StringFull

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

StringFull returns the string representation of a complete url

func (*VerifyURL) WithBasePath

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

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