Documentation ¶
Index ¶
- Constants
- type AccountList
- type AccountListBadRequest
- type AccountListHandler
- type AccountListHandlerFunc
- type AccountListInternalServerError
- type AccountListOK
- type AccountListParams
- type AccountListURL
- func (o *AccountListURL) Build() (*url.URL, error)
- func (o *AccountListURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *AccountListURL) Must(u *url.URL, err error) *url.URL
- func (o *AccountListURL) SetBasePath(bp string)
- func (o *AccountListURL) String() string
- func (o *AccountListURL) StringFull(scheme, host string) string
- func (o *AccountListURL) WithBasePath(bp string) *AccountListURL
- type AddAsset
- type AddAssetBadRequest
- type AddAssetCreated
- type AddAssetHandler
- type AddAssetHandlerFunc
- type AddAssetInternalServerError
- type AddAssetNotFound
- type AddAssetParams
- type AddAssetURL
- func (o *AddAssetURL) Build() (*url.URL, error)
- func (o *AddAssetURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *AddAssetURL) Must(u *url.URL, err error) *url.URL
- func (o *AddAssetURL) SetBasePath(bp string)
- func (o *AddAssetURL) String() string
- func (o *AddAssetURL) StringFull(scheme, host string) string
- func (o *AddAssetURL) WithBasePath(bp string) *AddAssetURL
- type AddAssetUnprocessableEntity
- type BackupAccount
- type BackupAccountBadRequest
- type BackupAccountHandler
- type BackupAccountHandlerFunc
- type BackupAccountInternalServerError
- type BackupAccountNoContent
- type BackupAccountNotFound
- type BackupAccountParams
- type BackupAccountURL
- func (o *BackupAccountURL) Build() (*url.URL, error)
- func (o *BackupAccountURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *BackupAccountURL) Must(u *url.URL, err error) *url.URL
- func (o *BackupAccountURL) SetBasePath(bp string)
- func (o *BackupAccountURL) String() string
- func (o *BackupAccountURL) StringFull(scheme, host string) string
- func (o *BackupAccountURL) WithBasePath(bp string) *BackupAccountURL
- type BackupAccountUnauthorized
- type BackupAccountUnprocessableEntity
- type CreateAccount
- type CreateAccountBadRequest
- type CreateAccountHandler
- type CreateAccountHandlerFunc
- type CreateAccountInternalServerError
- type CreateAccountOK
- type CreateAccountParams
- type CreateAccountURL
- func (o *CreateAccountURL) Build() (*url.URL, error)
- func (o *CreateAccountURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CreateAccountURL) Must(u *url.URL, err error) *url.URL
- func (o *CreateAccountURL) SetBasePath(bp string)
- func (o *CreateAccountURL) String() string
- func (o *CreateAccountURL) StringFull(scheme, host string) string
- func (o *CreateAccountURL) WithBasePath(bp string) *CreateAccountURL
- type CreateAccountUnauthorized
- type CreateAccountUnprocessableEntity
- type DefaultPage
- type DefaultPageHandler
- type DefaultPageHandlerFunc
- type DefaultPageMovedPermanently
- type DefaultPageParams
- type DefaultPageURL
- func (o *DefaultPageURL) Build() (*url.URL, error)
- func (o *DefaultPageURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DefaultPageURL) Must(u *url.URL, err error) *url.URL
- func (o *DefaultPageURL) SetBasePath(bp string)
- func (o *DefaultPageURL) String() string
- func (o *DefaultPageURL) StringFull(scheme, host string) string
- func (o *DefaultPageURL) WithBasePath(bp string) *DefaultPageURL
- type DeleteAccount
- type DeleteAccountBadRequest
- type DeleteAccountHandler
- type DeleteAccountHandlerFunc
- type DeleteAccountInternalServerError
- type DeleteAccountNoContent
- type DeleteAccountNotFound
- type DeleteAccountParams
- type DeleteAccountURL
- func (o *DeleteAccountURL) Build() (*url.URL, error)
- func (o *DeleteAccountURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteAccountURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteAccountURL) SetBasePath(bp string)
- func (o *DeleteAccountURL) String() string
- func (o *DeleteAccountURL) StringFull(scheme, host string) string
- func (o *DeleteAccountURL) WithBasePath(bp string) *DeleteAccountURL
- type DeleteAccountUnauthorized
- type DeleteAsset
- type DeleteAssetBadRequest
- type DeleteAssetHandler
- type DeleteAssetHandlerFunc
- type DeleteAssetInternalServerError
- type DeleteAssetNoContent
- type DeleteAssetNotFound
- type DeleteAssetParams
- type DeleteAssetURL
- func (o *DeleteAssetURL) Build() (*url.URL, error)
- func (o *DeleteAssetURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteAssetURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteAssetURL) SetBasePath(bp string)
- func (o *DeleteAssetURL) String() string
- func (o *DeleteAssetURL) StringFull(scheme, host string) string
- func (o *DeleteAssetURL) WithBasePath(bp string) *DeleteAssetURL
- type ExportAccountFile
- type ExportAccountFileBadRequest
- type ExportAccountFileHandler
- type ExportAccountFileHandlerFunc
- type ExportAccountFileInternalServerError
- func (o *ExportAccountFileInternalServerError) SetPayload(payload *models.Error)
- func (o *ExportAccountFileInternalServerError) WithPayload(payload *models.Error) *ExportAccountFileInternalServerError
- func (o *ExportAccountFileInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ExportAccountFileNotFound
- type ExportAccountFileOK
- type ExportAccountFileParams
- type ExportAccountFileURL
- func (o *ExportAccountFileURL) Build() (*url.URL, error)
- func (o *ExportAccountFileURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ExportAccountFileURL) Must(u *url.URL, err error) *url.URL
- func (o *ExportAccountFileURL) SetBasePath(bp string)
- func (o *ExportAccountFileURL) String() string
- func (o *ExportAccountFileURL) StringFull(scheme, host string) string
- func (o *ExportAccountFileURL) WithBasePath(bp string) *ExportAccountFileURL
- type GetAccount
- type GetAccountBadRequest
- type GetAccountHandler
- type GetAccountHandlerFunc
- type GetAccountInternalServerError
- type GetAccountNotFound
- type GetAccountOK
- type GetAccountParams
- type GetAccountURL
- func (o *GetAccountURL) Build() (*url.URL, error)
- func (o *GetAccountURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetAccountURL) Must(u *url.URL, err error) *url.URL
- func (o *GetAccountURL) SetBasePath(bp string)
- func (o *GetAccountURL) String() string
- func (o *GetAccountURL) StringFull(scheme, host string) string
- func (o *GetAccountURL) WithBasePath(bp string) *GetAccountURL
- type GetAccountUnauthorized
- type GetAllAssets
- type GetAllAssetsHandler
- type GetAllAssetsHandlerFunc
- type GetAllAssetsInternalServerError
- type GetAllAssetsOK
- type GetAllAssetsParams
- type GetAllAssetsURL
- func (o *GetAllAssetsURL) Build() (*url.URL, error)
- func (o *GetAllAssetsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetAllAssetsURL) Must(u *url.URL, err error) *url.URL
- func (o *GetAllAssetsURL) SetBasePath(bp string)
- func (o *GetAllAssetsURL) String() string
- func (o *GetAllAssetsURL) StringFull(scheme, host string) string
- func (o *GetAllAssetsURL) WithBasePath(bp string) *GetAllAssetsURL
- type ImportAccount
- type ImportAccountBadRequest
- type ImportAccountHandler
- type ImportAccountHandlerFunc
- type ImportAccountInternalServerError
- type ImportAccountOK
- type ImportAccountParams
- type ImportAccountURL
- func (o *ImportAccountURL) Build() (*url.URL, error)
- func (o *ImportAccountURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ImportAccountURL) Must(u *url.URL, err error) *url.URL
- func (o *ImportAccountURL) SetBasePath(bp string)
- func (o *ImportAccountURL) String() string
- func (o *ImportAccountURL) StringFull(scheme, host string) string
- func (o *ImportAccountURL) WithBasePath(bp string) *ImportAccountURL
- type ImportAccountUnauthorized
- type ImportAccountUnprocessableEntity
- type MassaWalletAPI
- func (o *MassaWalletAPI) AddMiddlewareFor(method, path string, builder middleware.Builder)
- func (o *MassaWalletAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator
- func (o *MassaWalletAPI) Authorizer() runtime.Authorizer
- func (o *MassaWalletAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer
- func (o *MassaWalletAPI) Context() *middleware.Context
- func (o *MassaWalletAPI) DefaultConsumes() string
- func (o *MassaWalletAPI) DefaultProduces() string
- func (o *MassaWalletAPI) Formats() strfmt.Registry
- func (o *MassaWalletAPI) HandlerFor(method, path string) (http.Handler, bool)
- func (o *MassaWalletAPI) Init()
- func (o *MassaWalletAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer
- func (o *MassaWalletAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer)
- func (o *MassaWalletAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)
- func (o *MassaWalletAPI) RegisterProducer(mediaType string, producer runtime.Producer)
- func (o *MassaWalletAPI) Serve(builder middleware.Builder) http.Handler
- func (o *MassaWalletAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)
- func (o *MassaWalletAPI) SetDefaultConsumes(mediaType string)
- func (o *MassaWalletAPI) SetDefaultProduces(mediaType string)
- func (o *MassaWalletAPI) SetSpec(spec *loads.Document)
- func (o *MassaWalletAPI) UseRedoc()
- func (o *MassaWalletAPI) UseSwaggerUI()
- func (o *MassaWalletAPI) Validate() error
- type Sign
- type SignBadRequest
- type SignHandler
- type SignHandlerFunc
- type SignInternalServerError
- type SignMessage
- type SignMessageBadRequest
- type SignMessageHandler
- type SignMessageHandlerFunc
- type SignMessageInternalServerError
- type SignMessageNotFound
- type SignMessageOK
- type SignMessageParams
- type SignMessageURL
- func (o *SignMessageURL) Build() (*url.URL, error)
- func (o *SignMessageURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *SignMessageURL) Must(u *url.URL, err error) *url.URL
- func (o *SignMessageURL) SetBasePath(bp string)
- func (o *SignMessageURL) String() string
- func (o *SignMessageURL) StringFull(scheme, host string) string
- func (o *SignMessageURL) WithBasePath(bp string) *SignMessageURL
- type SignMessageUnauthorized
- type SignMessageUnprocessableEntity
- type SignNotFound
- type SignOK
- type SignParams
- type SignURL
- func (o *SignURL) Build() (*url.URL, error)
- func (o *SignURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *SignURL) Must(u *url.URL, err error) *url.URL
- func (o *SignURL) SetBasePath(bp string)
- func (o *SignURL) String() string
- func (o *SignURL) StringFull(scheme, host string) string
- func (o *SignURL) WithBasePath(bp string) *SignURL
- type SignUnauthorized
- type SignUnprocessableEntity
- type TradeRolls
- type TradeRollsBadRequest
- type TradeRollsHandler
- type TradeRollsHandlerFunc
- type TradeRollsInternalServerError
- type TradeRollsNotFound
- type TradeRollsOK
- type TradeRollsParams
- type TradeRollsURL
- func (o *TradeRollsURL) Build() (*url.URL, error)
- func (o *TradeRollsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *TradeRollsURL) Must(u *url.URL, err error) *url.URL
- func (o *TradeRollsURL) SetBasePath(bp string)
- func (o *TradeRollsURL) String() string
- func (o *TradeRollsURL) StringFull(scheme, host string) string
- func (o *TradeRollsURL) WithBasePath(bp string) *TradeRollsURL
- type TradeRollsUnauthorized
- type TradeRollsUnprocessableEntity
- type TransferCoin
- type TransferCoinBadRequest
- type TransferCoinHandler
- type TransferCoinHandlerFunc
- type TransferCoinInternalServerError
- type TransferCoinNotFound
- type TransferCoinOK
- type TransferCoinParams
- type TransferCoinURL
- func (o *TransferCoinURL) Build() (*url.URL, error)
- func (o *TransferCoinURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *TransferCoinURL) Must(u *url.URL, err error) *url.URL
- func (o *TransferCoinURL) SetBasePath(bp string)
- func (o *TransferCoinURL) String() string
- func (o *TransferCoinURL) StringFull(scheme, host string) string
- func (o *TransferCoinURL) WithBasePath(bp string) *TransferCoinURL
- type TransferCoinUnauthorized
- type TransferCoinUnprocessableEntity
- type UpdateAccount
- type UpdateAccountBadRequest
- type UpdateAccountHandler
- type UpdateAccountHandlerFunc
- type UpdateAccountInternalServerError
- type UpdateAccountNotFound
- type UpdateAccountOK
- type UpdateAccountParams
- type UpdateAccountURL
- func (o *UpdateAccountURL) Build() (*url.URL, error)
- func (o *UpdateAccountURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *UpdateAccountURL) Must(u *url.URL, err error) *url.URL
- func (o *UpdateAccountURL) SetBasePath(bp string)
- func (o *UpdateAccountURL) String() string
- func (o *UpdateAccountURL) StringFull(scheme, host string) string
- func (o *UpdateAccountURL) WithBasePath(bp string) *UpdateAccountURL
- type UpdateAccountUnprocessableEntity
- type WebApp
- type WebAppHandler
- type WebAppHandlerFunc
- type WebAppNotFound
- type WebAppOK
- type WebAppParams
- type WebAppURL
- func (o *WebAppURL) Build() (*url.URL, error)
- func (o *WebAppURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *WebAppURL) Must(u *url.URL, err error) *url.URL
- func (o *WebAppURL) SetBasePath(bp string)
- func (o *WebAppURL) String() string
- func (o *WebAppURL) StringFull(scheme, host string) string
- func (o *WebAppURL) WithBasePath(bp string) *WebAppURL
Constants ¶
const AccountListBadRequestCode int = 400
AccountListBadRequestCode is the HTTP code returned for type AccountListBadRequest
const AccountListInternalServerErrorCode int = 500
AccountListInternalServerErrorCode is the HTTP code returned for type AccountListInternalServerError
const AccountListOKCode int = 200
AccountListOKCode is the HTTP code returned for type AccountListOK
const AddAssetBadRequestCode int = 400
AddAssetBadRequestCode is the HTTP code returned for type AddAssetBadRequest
const AddAssetCreatedCode int = 201
AddAssetCreatedCode is the HTTP code returned for type AddAssetCreated
const AddAssetInternalServerErrorCode int = 500
AddAssetInternalServerErrorCode is the HTTP code returned for type AddAssetInternalServerError
const AddAssetNotFoundCode int = 404
AddAssetNotFoundCode is the HTTP code returned for type AddAssetNotFound
const AddAssetUnprocessableEntityCode int = 422
AddAssetUnprocessableEntityCode is the HTTP code returned for type AddAssetUnprocessableEntity
const BackupAccountBadRequestCode int = 400
BackupAccountBadRequestCode is the HTTP code returned for type BackupAccountBadRequest
const BackupAccountInternalServerErrorCode int = 500
BackupAccountInternalServerErrorCode is the HTTP code returned for type BackupAccountInternalServerError
const BackupAccountNoContentCode int = 204
BackupAccountNoContentCode is the HTTP code returned for type BackupAccountNoContent
const BackupAccountNotFoundCode int = 404
BackupAccountNotFoundCode is the HTTP code returned for type BackupAccountNotFound
BackupAccountUnauthorizedCode is the HTTP code returned for type BackupAccountUnauthorized
const BackupAccountUnprocessableEntityCode int = 422
BackupAccountUnprocessableEntityCode is the HTTP code returned for type BackupAccountUnprocessableEntity
const CreateAccountBadRequestCode int = 400
CreateAccountBadRequestCode is the HTTP code returned for type CreateAccountBadRequest
const CreateAccountInternalServerErrorCode int = 500
CreateAccountInternalServerErrorCode is the HTTP code returned for type CreateAccountInternalServerError
const CreateAccountOKCode int = 200
CreateAccountOKCode is the HTTP code returned for type CreateAccountOK
CreateAccountUnauthorizedCode is the HTTP code returned for type CreateAccountUnauthorized
const CreateAccountUnprocessableEntityCode int = 422
CreateAccountUnprocessableEntityCode is the HTTP code returned for type CreateAccountUnprocessableEntity
const DefaultPageMovedPermanentlyCode int = 301
DefaultPageMovedPermanentlyCode is the HTTP code returned for type DefaultPageMovedPermanently
const DeleteAccountBadRequestCode int = 400
DeleteAccountBadRequestCode is the HTTP code returned for type DeleteAccountBadRequest
const DeleteAccountInternalServerErrorCode int = 500
DeleteAccountInternalServerErrorCode is the HTTP code returned for type DeleteAccountInternalServerError
const DeleteAccountNoContentCode int = 204
DeleteAccountNoContentCode is the HTTP code returned for type DeleteAccountNoContent
const DeleteAccountNotFoundCode int = 404
DeleteAccountNotFoundCode is the HTTP code returned for type DeleteAccountNotFound
DeleteAccountUnauthorizedCode is the HTTP code returned for type DeleteAccountUnauthorized
const DeleteAssetBadRequestCode int = 400
DeleteAssetBadRequestCode is the HTTP code returned for type DeleteAssetBadRequest
const DeleteAssetInternalServerErrorCode int = 500
DeleteAssetInternalServerErrorCode is the HTTP code returned for type DeleteAssetInternalServerError
const DeleteAssetNoContentCode int = 204
DeleteAssetNoContentCode is the HTTP code returned for type DeleteAssetNoContent
const DeleteAssetNotFoundCode int = 404
DeleteAssetNotFoundCode is the HTTP code returned for type DeleteAssetNotFound
const ExportAccountFileBadRequestCode int = 400
ExportAccountFileBadRequestCode is the HTTP code returned for type ExportAccountFileBadRequest
const ExportAccountFileInternalServerErrorCode int = 500
ExportAccountFileInternalServerErrorCode is the HTTP code returned for type ExportAccountFileInternalServerError
const ExportAccountFileNotFoundCode int = 404
ExportAccountFileNotFoundCode is the HTTP code returned for type ExportAccountFileNotFound
const ExportAccountFileOKCode int = 200
ExportAccountFileOKCode is the HTTP code returned for type ExportAccountFileOK
const GetAccountBadRequestCode int = 400
GetAccountBadRequestCode is the HTTP code returned for type GetAccountBadRequest
const GetAccountInternalServerErrorCode int = 500
GetAccountInternalServerErrorCode is the HTTP code returned for type GetAccountInternalServerError
const GetAccountNotFoundCode int = 404
GetAccountNotFoundCode is the HTTP code returned for type GetAccountNotFound
const GetAccountOKCode int = 200
GetAccountOKCode is the HTTP code returned for type GetAccountOK
GetAccountUnauthorizedCode is the HTTP code returned for type GetAccountUnauthorized
const GetAllAssetsInternalServerErrorCode int = 500
GetAllAssetsInternalServerErrorCode is the HTTP code returned for type GetAllAssetsInternalServerError
const GetAllAssetsOKCode int = 200
GetAllAssetsOKCode is the HTTP code returned for type GetAllAssetsOK
const ImportAccountBadRequestCode int = 400
ImportAccountBadRequestCode is the HTTP code returned for type ImportAccountBadRequest
const ImportAccountInternalServerErrorCode int = 500
ImportAccountInternalServerErrorCode is the HTTP code returned for type ImportAccountInternalServerError
const ImportAccountOKCode int = 200
ImportAccountOKCode is the HTTP code returned for type ImportAccountOK
ImportAccountUnauthorizedCode is the HTTP code returned for type ImportAccountUnauthorized
const ImportAccountUnprocessableEntityCode int = 422
ImportAccountUnprocessableEntityCode is the HTTP code returned for type ImportAccountUnprocessableEntity
const SignBadRequestCode int = 400
SignBadRequestCode is the HTTP code returned for type SignBadRequest
const SignInternalServerErrorCode int = 500
SignInternalServerErrorCode is the HTTP code returned for type SignInternalServerError
const SignMessageBadRequestCode int = 400
SignMessageBadRequestCode is the HTTP code returned for type SignMessageBadRequest
const SignMessageInternalServerErrorCode int = 500
SignMessageInternalServerErrorCode is the HTTP code returned for type SignMessageInternalServerError
const SignMessageNotFoundCode int = 404
SignMessageNotFoundCode is the HTTP code returned for type SignMessageNotFound
const SignMessageOKCode int = 200
SignMessageOKCode is the HTTP code returned for type SignMessageOK
SignMessageUnauthorizedCode is the HTTP code returned for type SignMessageUnauthorized
const SignMessageUnprocessableEntityCode int = 422
SignMessageUnprocessableEntityCode is the HTTP code returned for type SignMessageUnprocessableEntity
const SignNotFoundCode int = 404
SignNotFoundCode is the HTTP code returned for type SignNotFound
const SignOKCode int = 200
SignOKCode is the HTTP code returned for type SignOK
SignUnauthorizedCode is the HTTP code returned for type SignUnauthorized
const SignUnprocessableEntityCode int = 422
SignUnprocessableEntityCode is the HTTP code returned for type SignUnprocessableEntity
const TradeRollsBadRequestCode int = 400
TradeRollsBadRequestCode is the HTTP code returned for type TradeRollsBadRequest
const TradeRollsInternalServerErrorCode int = 500
TradeRollsInternalServerErrorCode is the HTTP code returned for type TradeRollsInternalServerError
const TradeRollsNotFoundCode int = 404
TradeRollsNotFoundCode is the HTTP code returned for type TradeRollsNotFound
const TradeRollsOKCode int = 200
TradeRollsOKCode is the HTTP code returned for type TradeRollsOK
TradeRollsUnauthorizedCode is the HTTP code returned for type TradeRollsUnauthorized
const TradeRollsUnprocessableEntityCode int = 422
TradeRollsUnprocessableEntityCode is the HTTP code returned for type TradeRollsUnprocessableEntity
const TransferCoinBadRequestCode int = 400
TransferCoinBadRequestCode is the HTTP code returned for type TransferCoinBadRequest
const TransferCoinInternalServerErrorCode int = 500
TransferCoinInternalServerErrorCode is the HTTP code returned for type TransferCoinInternalServerError
const TransferCoinNotFoundCode int = 404
TransferCoinNotFoundCode is the HTTP code returned for type TransferCoinNotFound
const TransferCoinOKCode int = 200
TransferCoinOKCode is the HTTP code returned for type TransferCoinOK
TransferCoinUnauthorizedCode is the HTTP code returned for type TransferCoinUnauthorized
const TransferCoinUnprocessableEntityCode int = 422
TransferCoinUnprocessableEntityCode is the HTTP code returned for type TransferCoinUnprocessableEntity
const UpdateAccountBadRequestCode int = 400
UpdateAccountBadRequestCode is the HTTP code returned for type UpdateAccountBadRequest
const UpdateAccountInternalServerErrorCode int = 500
UpdateAccountInternalServerErrorCode is the HTTP code returned for type UpdateAccountInternalServerError
const UpdateAccountNotFoundCode int = 404
UpdateAccountNotFoundCode is the HTTP code returned for type UpdateAccountNotFound
const UpdateAccountOKCode int = 200
UpdateAccountOKCode is the HTTP code returned for type UpdateAccountOK
const UpdateAccountUnprocessableEntityCode int = 422
UpdateAccountUnprocessableEntityCode is the HTTP code returned for type UpdateAccountUnprocessableEntity
const WebAppNotFoundCode int = 404
WebAppNotFoundCode is the HTTP code returned for type WebAppNotFound
const WebAppOKCode int = 200
WebAppOKCode is the HTTP code returned for type WebAppOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountList ¶
type AccountList struct { Context *middleware.Context Handler AccountListHandler }
AccountList swagger:route GET /api/accounts accountList
Get all the accounts.
func NewAccountList ¶
func NewAccountList(ctx *middleware.Context, handler AccountListHandler) *AccountList
NewAccountList creates a new http.Handler for the account list operation
func (*AccountList) ServeHTTP ¶
func (o *AccountList) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type AccountListBadRequest ¶
AccountListBadRequest Bad request.
swagger:response accountListBadRequest
func NewAccountListBadRequest ¶
func NewAccountListBadRequest() *AccountListBadRequest
NewAccountListBadRequest creates AccountListBadRequest with default headers values
func (*AccountListBadRequest) SetPayload ¶
func (o *AccountListBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the account list bad request response
func (*AccountListBadRequest) WithPayload ¶
func (o *AccountListBadRequest) WithPayload(payload *models.Error) *AccountListBadRequest
WithPayload adds the payload to the account list bad request response
func (*AccountListBadRequest) WriteResponse ¶
func (o *AccountListBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AccountListHandler ¶
type AccountListHandler interface {
Handle(AccountListParams) middleware.Responder
}
AccountListHandler interface for that can handle valid account list params
type AccountListHandlerFunc ¶
type AccountListHandlerFunc func(AccountListParams) middleware.Responder
AccountListHandlerFunc turns a function with the right signature into a account list handler
func (AccountListHandlerFunc) Handle ¶
func (fn AccountListHandlerFunc) Handle(params AccountListParams) middleware.Responder
Handle executing the request and returning a response
type AccountListInternalServerError ¶
type AccountListInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
AccountListInternalServerError Internal Server Error - The server has encountered a situation it does not know how to handle.
swagger:response accountListInternalServerError
func NewAccountListInternalServerError ¶
func NewAccountListInternalServerError() *AccountListInternalServerError
NewAccountListInternalServerError creates AccountListInternalServerError with default headers values
func (*AccountListInternalServerError) SetPayload ¶
func (o *AccountListInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the account list internal server error response
func (*AccountListInternalServerError) WithPayload ¶
func (o *AccountListInternalServerError) WithPayload(payload *models.Error) *AccountListInternalServerError
WithPayload adds the payload to the account list internal server error response
func (*AccountListInternalServerError) WriteResponse ¶
func (o *AccountListInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AccountListOK ¶
AccountListOK Accounts retrieved
swagger:response accountListOK
func NewAccountListOK ¶
func NewAccountListOK() *AccountListOK
NewAccountListOK creates AccountListOK with default headers values
func (*AccountListOK) SetPayload ¶
func (o *AccountListOK) SetPayload(payload []*models.Account)
SetPayload sets the payload to the account list o k response
func (*AccountListOK) WithPayload ¶
func (o *AccountListOK) WithPayload(payload []*models.Account) *AccountListOK
WithPayload adds the payload to the account list o k response
func (*AccountListOK) WriteResponse ¶
func (o *AccountListOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AccountListParams ¶
AccountListParams contains all the bound params for the account list operation typically these are obtained from a http.Request
swagger:parameters AccountList
func NewAccountListParams ¶
func NewAccountListParams() AccountListParams
NewAccountListParams creates a new AccountListParams object
There are no default values defined in the spec.
func (*AccountListParams) BindRequest ¶
func (o *AccountListParams) 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 NewAccountListParams() beforehand.
type AccountListURL ¶
type AccountListURL struct {
// contains filtered or unexported fields
}
AccountListURL generates an URL for the account list operation
func (*AccountListURL) Build ¶
func (o *AccountListURL) Build() (*url.URL, error)
Build a url path and query string
func (*AccountListURL) BuildFull ¶
func (o *AccountListURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*AccountListURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*AccountListURL) SetBasePath ¶
func (o *AccountListURL) 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 (*AccountListURL) String ¶
func (o *AccountListURL) String() string
String returns the string representation of the path with query string
func (*AccountListURL) StringFull ¶
func (o *AccountListURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*AccountListURL) WithBasePath ¶
func (o *AccountListURL) WithBasePath(bp string) *AccountListURL
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 AddAsset ¶ added in v0.2.1
type AddAsset struct { Context *middleware.Context Handler AddAssetHandler }
AddAsset swagger:route POST /api/accounts/{nickname}/assets addAsset
Add token information and persist it for future use.
func NewAddAsset ¶ added in v0.2.1
func NewAddAsset(ctx *middleware.Context, handler AddAssetHandler) *AddAsset
NewAddAsset creates a new http.Handler for the add asset operation
type AddAssetBadRequest ¶ added in v0.2.1
AddAssetBadRequest Bad request.
swagger:response addAssetBadRequest
func NewAddAssetBadRequest ¶ added in v0.2.1
func NewAddAssetBadRequest() *AddAssetBadRequest
NewAddAssetBadRequest creates AddAssetBadRequest with default headers values
func (*AddAssetBadRequest) SetPayload ¶ added in v0.2.1
func (o *AddAssetBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the add asset bad request response
func (*AddAssetBadRequest) WithPayload ¶ added in v0.2.1
func (o *AddAssetBadRequest) WithPayload(payload *models.Error) *AddAssetBadRequest
WithPayload adds the payload to the add asset bad request response
func (*AddAssetBadRequest) WriteResponse ¶ added in v0.2.1
func (o *AddAssetBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddAssetCreated ¶ added in v0.2.1
AddAssetCreated Asset information retrieved successfully.
swagger:response addAssetCreated
func NewAddAssetCreated ¶ added in v0.2.1
func NewAddAssetCreated() *AddAssetCreated
NewAddAssetCreated creates AddAssetCreated with default headers values
func (*AddAssetCreated) SetPayload ¶ added in v0.2.1
func (o *AddAssetCreated) SetPayload(payload *models.AssetInfo)
SetPayload sets the payload to the add asset created response
func (*AddAssetCreated) WithPayload ¶ added in v0.2.1
func (o *AddAssetCreated) WithPayload(payload *models.AssetInfo) *AddAssetCreated
WithPayload adds the payload to the add asset created response
func (*AddAssetCreated) WriteResponse ¶ added in v0.2.1
func (o *AddAssetCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddAssetHandler ¶ added in v0.2.1
type AddAssetHandler interface {
Handle(AddAssetParams) middleware.Responder
}
AddAssetHandler interface for that can handle valid add asset params
type AddAssetHandlerFunc ¶ added in v0.2.1
type AddAssetHandlerFunc func(AddAssetParams) middleware.Responder
AddAssetHandlerFunc turns a function with the right signature into a add asset handler
func (AddAssetHandlerFunc) Handle ¶ added in v0.2.1
func (fn AddAssetHandlerFunc) Handle(params AddAssetParams) middleware.Responder
Handle executing the request and returning a response
type AddAssetInternalServerError ¶ added in v0.2.1
type AddAssetInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
AddAssetInternalServerError Internal Server Error - The server has encountered a situation it does not know how to handle.
swagger:response addAssetInternalServerError
func NewAddAssetInternalServerError ¶ added in v0.2.1
func NewAddAssetInternalServerError() *AddAssetInternalServerError
NewAddAssetInternalServerError creates AddAssetInternalServerError with default headers values
func (*AddAssetInternalServerError) SetPayload ¶ added in v0.2.1
func (o *AddAssetInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the add asset internal server error response
func (*AddAssetInternalServerError) WithPayload ¶ added in v0.2.1
func (o *AddAssetInternalServerError) WithPayload(payload *models.Error) *AddAssetInternalServerError
WithPayload adds the payload to the add asset internal server error response
func (*AddAssetInternalServerError) WriteResponse ¶ added in v0.2.1
func (o *AddAssetInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddAssetNotFound ¶ added in v0.2.1
AddAssetNotFound Not Found - The asset with the provided address was not found in the network.
swagger:response addAssetNotFound
func NewAddAssetNotFound ¶ added in v0.2.1
func NewAddAssetNotFound() *AddAssetNotFound
NewAddAssetNotFound creates AddAssetNotFound with default headers values
func (*AddAssetNotFound) SetPayload ¶ added in v0.2.1
func (o *AddAssetNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the add asset not found response
func (*AddAssetNotFound) WithPayload ¶ added in v0.2.1
func (o *AddAssetNotFound) WithPayload(payload *models.Error) *AddAssetNotFound
WithPayload adds the payload to the add asset not found response
func (*AddAssetNotFound) WriteResponse ¶ added in v0.2.1
func (o *AddAssetNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddAssetParams ¶ added in v0.2.1
type AddAssetParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The asset address (token address) to add to the account. It must start with "AS" and contain only alphanumeric characters. Required: true Pattern: ^AS[0-9a-zA-Z]+$ In: query */ AssetAddress string /*The nickname of the account to add the asset to. Required: true In: path */ Nickname string }
AddAssetParams contains all the bound params for the add asset operation typically these are obtained from a http.Request
swagger:parameters AddAsset
func NewAddAssetParams ¶ added in v0.2.1
func NewAddAssetParams() AddAssetParams
NewAddAssetParams creates a new AddAssetParams object
There are no default values defined in the spec.
func (*AddAssetParams) BindRequest ¶ added in v0.2.1
func (o *AddAssetParams) 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 NewAddAssetParams() beforehand.
type AddAssetURL ¶ added in v0.2.1
type AddAssetURL struct { Nickname string AssetAddress string // contains filtered or unexported fields }
AddAssetURL generates an URL for the add asset operation
func (*AddAssetURL) Build ¶ added in v0.2.1
func (o *AddAssetURL) Build() (*url.URL, error)
Build a url path and query string
func (*AddAssetURL) BuildFull ¶ added in v0.2.1
func (o *AddAssetURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*AddAssetURL) Must ¶ added in v0.2.1
Must is a helper function to panic when the url builder returns an error
func (*AddAssetURL) SetBasePath ¶ added in v0.2.1
func (o *AddAssetURL) 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 (*AddAssetURL) String ¶ added in v0.2.1
func (o *AddAssetURL) String() string
String returns the string representation of the path with query string
func (*AddAssetURL) StringFull ¶ added in v0.2.1
func (o *AddAssetURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*AddAssetURL) WithBasePath ¶ added in v0.2.1
func (o *AddAssetURL) WithBasePath(bp string) *AddAssetURL
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 AddAssetUnprocessableEntity ¶ added in v0.2.1
type AddAssetUnprocessableEntity struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
AddAssetUnprocessableEntity Unprocessable Entity - the provided addresses is not valid.
swagger:response addAssetUnprocessableEntity
func NewAddAssetUnprocessableEntity ¶ added in v0.2.1
func NewAddAssetUnprocessableEntity() *AddAssetUnprocessableEntity
NewAddAssetUnprocessableEntity creates AddAssetUnprocessableEntity with default headers values
func (*AddAssetUnprocessableEntity) SetPayload ¶ added in v0.2.1
func (o *AddAssetUnprocessableEntity) SetPayload(payload *models.Error)
SetPayload sets the payload to the add asset unprocessable entity response
func (*AddAssetUnprocessableEntity) WithPayload ¶ added in v0.2.1
func (o *AddAssetUnprocessableEntity) WithPayload(payload *models.Error) *AddAssetUnprocessableEntity
WithPayload adds the payload to the add asset unprocessable entity response
func (*AddAssetUnprocessableEntity) WriteResponse ¶ added in v0.2.1
func (o *AddAssetUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type BackupAccount ¶
type BackupAccount struct { Context *middleware.Context Handler BackupAccountHandler }
BackupAccount swagger:route POST /api/accounts/{nickname}/backup backupAccount
Export the account associated with the provided nickname in the path. Will ask the user to enter its account password.
func NewBackupAccount ¶
func NewBackupAccount(ctx *middleware.Context, handler BackupAccountHandler) *BackupAccount
NewBackupAccount creates a new http.Handler for the backup account operation
func (*BackupAccount) ServeHTTP ¶
func (o *BackupAccount) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type BackupAccountBadRequest ¶
type BackupAccountBadRequest struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
BackupAccountBadRequest Bad request.
swagger:response backupAccountBadRequest
func NewBackupAccountBadRequest ¶
func NewBackupAccountBadRequest() *BackupAccountBadRequest
NewBackupAccountBadRequest creates BackupAccountBadRequest with default headers values
func (*BackupAccountBadRequest) SetPayload ¶
func (o *BackupAccountBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the backup account bad request response
func (*BackupAccountBadRequest) WithPayload ¶
func (o *BackupAccountBadRequest) WithPayload(payload *models.Error) *BackupAccountBadRequest
WithPayload adds the payload to the backup account bad request response
func (*BackupAccountBadRequest) WriteResponse ¶
func (o *BackupAccountBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type BackupAccountHandler ¶
type BackupAccountHandler interface {
Handle(BackupAccountParams) middleware.Responder
}
BackupAccountHandler interface for that can handle valid backup account params
type BackupAccountHandlerFunc ¶
type BackupAccountHandlerFunc func(BackupAccountParams) middleware.Responder
BackupAccountHandlerFunc turns a function with the right signature into a backup account handler
func (BackupAccountHandlerFunc) Handle ¶
func (fn BackupAccountHandlerFunc) Handle(params BackupAccountParams) middleware.Responder
Handle executing the request and returning a response
type BackupAccountInternalServerError ¶
type BackupAccountInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
BackupAccountInternalServerError Internal Server Error - The server has encountered a situation it does not know how to handle.
swagger:response backupAccountInternalServerError
func NewBackupAccountInternalServerError ¶
func NewBackupAccountInternalServerError() *BackupAccountInternalServerError
NewBackupAccountInternalServerError creates BackupAccountInternalServerError with default headers values
func (*BackupAccountInternalServerError) SetPayload ¶
func (o *BackupAccountInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the backup account internal server error response
func (*BackupAccountInternalServerError) WithPayload ¶
func (o *BackupAccountInternalServerError) WithPayload(payload *models.Error) *BackupAccountInternalServerError
WithPayload adds the payload to the backup account internal server error response
func (*BackupAccountInternalServerError) WriteResponse ¶
func (o *BackupAccountInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type BackupAccountNoContent ¶
type BackupAccountNoContent struct { }
BackupAccountNoContent Account backup
swagger:response backupAccountNoContent
func NewBackupAccountNoContent ¶
func NewBackupAccountNoContent() *BackupAccountNoContent
NewBackupAccountNoContent creates BackupAccountNoContent with default headers values
func (*BackupAccountNoContent) WriteResponse ¶
func (o *BackupAccountNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type BackupAccountNotFound ¶
BackupAccountNotFound Account Not found.
swagger:response backupAccountNotFound
func NewBackupAccountNotFound ¶
func NewBackupAccountNotFound() *BackupAccountNotFound
NewBackupAccountNotFound creates BackupAccountNotFound with default headers values
func (*BackupAccountNotFound) SetPayload ¶
func (o *BackupAccountNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the backup account not found response
func (*BackupAccountNotFound) WithPayload ¶
func (o *BackupAccountNotFound) WithPayload(payload *models.Error) *BackupAccountNotFound
WithPayload adds the payload to the backup account not found response
func (*BackupAccountNotFound) WriteResponse ¶
func (o *BackupAccountNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type BackupAccountParams ¶
type BackupAccountParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Account's short name. Required: true In: path */ Nickname string }
BackupAccountParams contains all the bound params for the backup account operation typically these are obtained from a http.Request
swagger:parameters BackupAccount
func NewBackupAccountParams ¶
func NewBackupAccountParams() BackupAccountParams
NewBackupAccountParams creates a new BackupAccountParams object
There are no default values defined in the spec.
func (*BackupAccountParams) BindRequest ¶
func (o *BackupAccountParams) 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 NewBackupAccountParams() beforehand.
type BackupAccountURL ¶
type BackupAccountURL struct { Nickname string // contains filtered or unexported fields }
BackupAccountURL generates an URL for the backup account operation
func (*BackupAccountURL) Build ¶
func (o *BackupAccountURL) Build() (*url.URL, error)
Build a url path and query string
func (*BackupAccountURL) BuildFull ¶
func (o *BackupAccountURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*BackupAccountURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*BackupAccountURL) SetBasePath ¶
func (o *BackupAccountURL) 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 (*BackupAccountURL) String ¶
func (o *BackupAccountURL) String() string
String returns the string representation of the path with query string
func (*BackupAccountURL) StringFull ¶
func (o *BackupAccountURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*BackupAccountURL) WithBasePath ¶
func (o *BackupAccountURL) WithBasePath(bp string) *BackupAccountURL
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 BackupAccountUnauthorized ¶
BackupAccountUnauthorized Unauthorized - The request requires user authentication.
swagger:response backupAccountUnauthorized
func NewBackupAccountUnauthorized ¶
func NewBackupAccountUnauthorized() *BackupAccountUnauthorized
NewBackupAccountUnauthorized creates BackupAccountUnauthorized with default headers values
func (*BackupAccountUnauthorized) SetPayload ¶
func (o *BackupAccountUnauthorized) SetPayload(payload *models.Error)
SetPayload sets the payload to the backup account unauthorized response
func (*BackupAccountUnauthorized) WithPayload ¶
func (o *BackupAccountUnauthorized) WithPayload(payload *models.Error) *BackupAccountUnauthorized
WithPayload adds the payload to the backup account unauthorized response
func (*BackupAccountUnauthorized) WriteResponse ¶
func (o *BackupAccountUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type BackupAccountUnprocessableEntity ¶
type BackupAccountUnprocessableEntity struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
BackupAccountUnprocessableEntity Unprocessable Entity - syntax is correct, but the server was unable to process the contained instructions.
swagger:response backupAccountUnprocessableEntity
func NewBackupAccountUnprocessableEntity ¶
func NewBackupAccountUnprocessableEntity() *BackupAccountUnprocessableEntity
NewBackupAccountUnprocessableEntity creates BackupAccountUnprocessableEntity with default headers values
func (*BackupAccountUnprocessableEntity) SetPayload ¶
func (o *BackupAccountUnprocessableEntity) SetPayload(payload *models.Error)
SetPayload sets the payload to the backup account unprocessable entity response
func (*BackupAccountUnprocessableEntity) WithPayload ¶
func (o *BackupAccountUnprocessableEntity) WithPayload(payload *models.Error) *BackupAccountUnprocessableEntity
WithPayload adds the payload to the backup account unprocessable entity response
func (*BackupAccountUnprocessableEntity) WriteResponse ¶
func (o *BackupAccountUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateAccount ¶
type CreateAccount struct { Context *middleware.Context Handler CreateAccountHandler }
CreateAccount swagger:route POST /api/accounts/{nickname} createAccount
Generate a new account with new random keys
func NewCreateAccount ¶
func NewCreateAccount(ctx *middleware.Context, handler CreateAccountHandler) *CreateAccount
NewCreateAccount creates a new http.Handler for the create account operation
func (*CreateAccount) ServeHTTP ¶
func (o *CreateAccount) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type CreateAccountBadRequest ¶
type CreateAccountBadRequest struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
CreateAccountBadRequest Bad request.
swagger:response createAccountBadRequest
func NewCreateAccountBadRequest ¶
func NewCreateAccountBadRequest() *CreateAccountBadRequest
NewCreateAccountBadRequest creates CreateAccountBadRequest with default headers values
func (*CreateAccountBadRequest) SetPayload ¶
func (o *CreateAccountBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the create account bad request response
func (*CreateAccountBadRequest) WithPayload ¶
func (o *CreateAccountBadRequest) WithPayload(payload *models.Error) *CreateAccountBadRequest
WithPayload adds the payload to the create account bad request response
func (*CreateAccountBadRequest) WriteResponse ¶
func (o *CreateAccountBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateAccountHandler ¶
type CreateAccountHandler interface {
Handle(CreateAccountParams) middleware.Responder
}
CreateAccountHandler interface for that can handle valid create account params
type CreateAccountHandlerFunc ¶
type CreateAccountHandlerFunc func(CreateAccountParams) middleware.Responder
CreateAccountHandlerFunc turns a function with the right signature into a create account handler
func (CreateAccountHandlerFunc) Handle ¶
func (fn CreateAccountHandlerFunc) Handle(params CreateAccountParams) middleware.Responder
Handle executing the request and returning a response
type CreateAccountInternalServerError ¶
type CreateAccountInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
CreateAccountInternalServerError Internal Server Error - The server has encountered a situation it does not know how to handle.
swagger:response createAccountInternalServerError
func NewCreateAccountInternalServerError ¶
func NewCreateAccountInternalServerError() *CreateAccountInternalServerError
NewCreateAccountInternalServerError creates CreateAccountInternalServerError with default headers values
func (*CreateAccountInternalServerError) SetPayload ¶
func (o *CreateAccountInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the create account internal server error response
func (*CreateAccountInternalServerError) WithPayload ¶
func (o *CreateAccountInternalServerError) WithPayload(payload *models.Error) *CreateAccountInternalServerError
WithPayload adds the payload to the create account internal server error response
func (*CreateAccountInternalServerError) WriteResponse ¶
func (o *CreateAccountInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateAccountOK ¶
CreateAccountOK New account created.
swagger:response createAccountOK
func NewCreateAccountOK ¶
func NewCreateAccountOK() *CreateAccountOK
NewCreateAccountOK creates CreateAccountOK with default headers values
func (*CreateAccountOK) SetPayload ¶
func (o *CreateAccountOK) SetPayload(payload *models.Account)
SetPayload sets the payload to the create account o k response
func (*CreateAccountOK) WithPayload ¶
func (o *CreateAccountOK) WithPayload(payload *models.Account) *CreateAccountOK
WithPayload adds the payload to the create account o k response
func (*CreateAccountOK) WriteResponse ¶
func (o *CreateAccountOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateAccountParams ¶
type CreateAccountParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Account's short name. Required: true In: path */ Nickname string }
CreateAccountParams contains all the bound params for the create account operation typically these are obtained from a http.Request
swagger:parameters CreateAccount
func NewCreateAccountParams ¶
func NewCreateAccountParams() CreateAccountParams
NewCreateAccountParams creates a new CreateAccountParams object
There are no default values defined in the spec.
func (*CreateAccountParams) BindRequest ¶
func (o *CreateAccountParams) 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 NewCreateAccountParams() beforehand.
type CreateAccountURL ¶
type CreateAccountURL struct { Nickname string // contains filtered or unexported fields }
CreateAccountURL generates an URL for the create account operation
func (*CreateAccountURL) Build ¶
func (o *CreateAccountURL) Build() (*url.URL, error)
Build a url path and query string
func (*CreateAccountURL) BuildFull ¶
func (o *CreateAccountURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*CreateAccountURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*CreateAccountURL) SetBasePath ¶
func (o *CreateAccountURL) 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 (*CreateAccountURL) String ¶
func (o *CreateAccountURL) String() string
String returns the string representation of the path with query string
func (*CreateAccountURL) StringFull ¶
func (o *CreateAccountURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*CreateAccountURL) WithBasePath ¶
func (o *CreateAccountURL) WithBasePath(bp string) *CreateAccountURL
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 CreateAccountUnauthorized ¶
CreateAccountUnauthorized Unauthorized - The request requires user authentication.
swagger:response createAccountUnauthorized
func NewCreateAccountUnauthorized ¶
func NewCreateAccountUnauthorized() *CreateAccountUnauthorized
NewCreateAccountUnauthorized creates CreateAccountUnauthorized with default headers values
func (*CreateAccountUnauthorized) SetPayload ¶
func (o *CreateAccountUnauthorized) SetPayload(payload *models.Error)
SetPayload sets the payload to the create account unauthorized response
func (*CreateAccountUnauthorized) WithPayload ¶
func (o *CreateAccountUnauthorized) WithPayload(payload *models.Error) *CreateAccountUnauthorized
WithPayload adds the payload to the create account unauthorized response
func (*CreateAccountUnauthorized) WriteResponse ¶
func (o *CreateAccountUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateAccountUnprocessableEntity ¶
type CreateAccountUnprocessableEntity struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
CreateAccountUnprocessableEntity Unprocessable Entity - syntax is correct, but the server was unable to process the contained instructions.
swagger:response createAccountUnprocessableEntity
func NewCreateAccountUnprocessableEntity ¶
func NewCreateAccountUnprocessableEntity() *CreateAccountUnprocessableEntity
NewCreateAccountUnprocessableEntity creates CreateAccountUnprocessableEntity with default headers values
func (*CreateAccountUnprocessableEntity) SetPayload ¶
func (o *CreateAccountUnprocessableEntity) SetPayload(payload *models.Error)
SetPayload sets the payload to the create account unprocessable entity response
func (*CreateAccountUnprocessableEntity) WithPayload ¶
func (o *CreateAccountUnprocessableEntity) WithPayload(payload *models.Error) *CreateAccountUnprocessableEntity
WithPayload adds the payload to the create account unprocessable entity response
func (*CreateAccountUnprocessableEntity) WriteResponse ¶
func (o *CreateAccountUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DefaultPage ¶
type DefaultPage struct { Context *middleware.Context Handler DefaultPageHandler }
DefaultPage swagger:route GET / defaultPage
DefaultPage default page API
func NewDefaultPage ¶
func NewDefaultPage(ctx *middleware.Context, handler DefaultPageHandler) *DefaultPage
NewDefaultPage creates a new http.Handler for the default page operation
func (*DefaultPage) ServeHTTP ¶
func (o *DefaultPage) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DefaultPageHandler ¶
type DefaultPageHandler interface {
Handle(DefaultPageParams) middleware.Responder
}
DefaultPageHandler interface for that can handle valid default page params
type DefaultPageHandlerFunc ¶
type DefaultPageHandlerFunc func(DefaultPageParams) middleware.Responder
DefaultPageHandlerFunc turns a function with the right signature into a default page handler
func (DefaultPageHandlerFunc) Handle ¶
func (fn DefaultPageHandlerFunc) Handle(params DefaultPageParams) middleware.Responder
Handle executing the request and returning a response
type DefaultPageMovedPermanently ¶
type DefaultPageMovedPermanently struct { }
DefaultPageMovedPermanently Move to the default endpoint
swagger:response defaultPageMovedPermanently
func NewDefaultPageMovedPermanently ¶
func NewDefaultPageMovedPermanently() *DefaultPageMovedPermanently
NewDefaultPageMovedPermanently creates DefaultPageMovedPermanently with default headers values
func (*DefaultPageMovedPermanently) WriteResponse ¶
func (o *DefaultPageMovedPermanently) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DefaultPageParams ¶
DefaultPageParams contains all the bound params for the default page operation typically these are obtained from a http.Request
swagger:parameters defaultPage
func NewDefaultPageParams ¶
func NewDefaultPageParams() DefaultPageParams
NewDefaultPageParams creates a new DefaultPageParams object
There are no default values defined in the spec.
func (*DefaultPageParams) BindRequest ¶
func (o *DefaultPageParams) 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 NewDefaultPageParams() beforehand.
type DefaultPageURL ¶
type DefaultPageURL struct {
// contains filtered or unexported fields
}
DefaultPageURL generates an URL for the default page operation
func (*DefaultPageURL) Build ¶
func (o *DefaultPageURL) Build() (*url.URL, error)
Build a url path and query string
func (*DefaultPageURL) BuildFull ¶
func (o *DefaultPageURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DefaultPageURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DefaultPageURL) SetBasePath ¶
func (o *DefaultPageURL) 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 (*DefaultPageURL) String ¶
func (o *DefaultPageURL) String() string
String returns the string representation of the path with query string
func (*DefaultPageURL) StringFull ¶
func (o *DefaultPageURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DefaultPageURL) WithBasePath ¶
func (o *DefaultPageURL) WithBasePath(bp string) *DefaultPageURL
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 DeleteAccount ¶
type DeleteAccount struct { Context *middleware.Context Handler DeleteAccountHandler }
DeleteAccount swagger:route DELETE /api/accounts/{nickname} deleteAccount
Delete the account associated with the provided nickname in the path, the user will be prompt to confirm the deletion.
func NewDeleteAccount ¶
func NewDeleteAccount(ctx *middleware.Context, handler DeleteAccountHandler) *DeleteAccount
NewDeleteAccount creates a new http.Handler for the delete account operation
func (*DeleteAccount) ServeHTTP ¶
func (o *DeleteAccount) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteAccountBadRequest ¶
type DeleteAccountBadRequest struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
DeleteAccountBadRequest Bad request.
swagger:response deleteAccountBadRequest
func NewDeleteAccountBadRequest ¶
func NewDeleteAccountBadRequest() *DeleteAccountBadRequest
NewDeleteAccountBadRequest creates DeleteAccountBadRequest with default headers values
func (*DeleteAccountBadRequest) SetPayload ¶
func (o *DeleteAccountBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete account bad request response
func (*DeleteAccountBadRequest) WithPayload ¶
func (o *DeleteAccountBadRequest) WithPayload(payload *models.Error) *DeleteAccountBadRequest
WithPayload adds the payload to the delete account bad request response
func (*DeleteAccountBadRequest) WriteResponse ¶
func (o *DeleteAccountBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteAccountHandler ¶
type DeleteAccountHandler interface {
Handle(DeleteAccountParams) middleware.Responder
}
DeleteAccountHandler interface for that can handle valid delete account params
type DeleteAccountHandlerFunc ¶
type DeleteAccountHandlerFunc func(DeleteAccountParams) middleware.Responder
DeleteAccountHandlerFunc turns a function with the right signature into a delete account handler
func (DeleteAccountHandlerFunc) Handle ¶
func (fn DeleteAccountHandlerFunc) Handle(params DeleteAccountParams) middleware.Responder
Handle executing the request and returning a response
type DeleteAccountInternalServerError ¶
type DeleteAccountInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
DeleteAccountInternalServerError Internal Server Error - The server has encountered a situation it does not know how to handle.
swagger:response deleteAccountInternalServerError
func NewDeleteAccountInternalServerError ¶
func NewDeleteAccountInternalServerError() *DeleteAccountInternalServerError
NewDeleteAccountInternalServerError creates DeleteAccountInternalServerError with default headers values
func (*DeleteAccountInternalServerError) SetPayload ¶
func (o *DeleteAccountInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete account internal server error response
func (*DeleteAccountInternalServerError) WithPayload ¶
func (o *DeleteAccountInternalServerError) WithPayload(payload *models.Error) *DeleteAccountInternalServerError
WithPayload adds the payload to the delete account internal server error response
func (*DeleteAccountInternalServerError) WriteResponse ¶
func (o *DeleteAccountInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteAccountNoContent ¶
type DeleteAccountNoContent struct { /* In: Body */ Payload *models.Account `json:"body,omitempty"` }
DeleteAccountNoContent Account deleted successfully.
swagger:response deleteAccountNoContent
func NewDeleteAccountNoContent ¶
func NewDeleteAccountNoContent() *DeleteAccountNoContent
NewDeleteAccountNoContent creates DeleteAccountNoContent with default headers values
func (*DeleteAccountNoContent) SetPayload ¶
func (o *DeleteAccountNoContent) SetPayload(payload *models.Account)
SetPayload sets the payload to the delete account no content response
func (*DeleteAccountNoContent) WithPayload ¶
func (o *DeleteAccountNoContent) WithPayload(payload *models.Account) *DeleteAccountNoContent
WithPayload adds the payload to the delete account no content response
func (*DeleteAccountNoContent) WriteResponse ¶
func (o *DeleteAccountNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteAccountNotFound ¶
DeleteAccountNotFound Not found.
swagger:response deleteAccountNotFound
func NewDeleteAccountNotFound ¶
func NewDeleteAccountNotFound() *DeleteAccountNotFound
NewDeleteAccountNotFound creates DeleteAccountNotFound with default headers values
func (*DeleteAccountNotFound) SetPayload ¶
func (o *DeleteAccountNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete account not found response
func (*DeleteAccountNotFound) WithPayload ¶
func (o *DeleteAccountNotFound) WithPayload(payload *models.Error) *DeleteAccountNotFound
WithPayload adds the payload to the delete account not found response
func (*DeleteAccountNotFound) WriteResponse ¶
func (o *DeleteAccountNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteAccountParams ¶
type DeleteAccountParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Account's short name. Required: true In: path */ Nickname string }
DeleteAccountParams contains all the bound params for the delete account operation typically these are obtained from a http.Request
swagger:parameters DeleteAccount
func NewDeleteAccountParams ¶
func NewDeleteAccountParams() DeleteAccountParams
NewDeleteAccountParams creates a new DeleteAccountParams object
There are no default values defined in the spec.
func (*DeleteAccountParams) BindRequest ¶
func (o *DeleteAccountParams) 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 NewDeleteAccountParams() beforehand.
type DeleteAccountURL ¶
type DeleteAccountURL struct { Nickname string // contains filtered or unexported fields }
DeleteAccountURL generates an URL for the delete account operation
func (*DeleteAccountURL) Build ¶
func (o *DeleteAccountURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteAccountURL) BuildFull ¶
func (o *DeleteAccountURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteAccountURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteAccountURL) SetBasePath ¶
func (o *DeleteAccountURL) 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 (*DeleteAccountURL) String ¶
func (o *DeleteAccountURL) String() string
String returns the string representation of the path with query string
func (*DeleteAccountURL) StringFull ¶
func (o *DeleteAccountURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteAccountURL) WithBasePath ¶
func (o *DeleteAccountURL) WithBasePath(bp string) *DeleteAccountURL
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 DeleteAccountUnauthorized ¶
DeleteAccountUnauthorized Unauthorized - The request requires user authentication.
swagger:response deleteAccountUnauthorized
func NewDeleteAccountUnauthorized ¶
func NewDeleteAccountUnauthorized() *DeleteAccountUnauthorized
NewDeleteAccountUnauthorized creates DeleteAccountUnauthorized with default headers values
func (*DeleteAccountUnauthorized) SetPayload ¶
func (o *DeleteAccountUnauthorized) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete account unauthorized response
func (*DeleteAccountUnauthorized) WithPayload ¶
func (o *DeleteAccountUnauthorized) WithPayload(payload *models.Error) *DeleteAccountUnauthorized
WithPayload adds the payload to the delete account unauthorized response
func (*DeleteAccountUnauthorized) WriteResponse ¶
func (o *DeleteAccountUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteAsset ¶ added in v0.2.1
type DeleteAsset struct { Context *middleware.Context Handler DeleteAssetHandler }
DeleteAsset swagger:route DELETE /api/accounts/{nickname}/assets deleteAsset
Delete token information from an account.
func NewDeleteAsset ¶ added in v0.2.1
func NewDeleteAsset(ctx *middleware.Context, handler DeleteAssetHandler) *DeleteAsset
NewDeleteAsset creates a new http.Handler for the delete asset operation
func (*DeleteAsset) ServeHTTP ¶ added in v0.2.1
func (o *DeleteAsset) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteAssetBadRequest ¶ added in v0.2.1
DeleteAssetBadRequest Bad request.
swagger:response deleteAssetBadRequest
func NewDeleteAssetBadRequest ¶ added in v0.2.1
func NewDeleteAssetBadRequest() *DeleteAssetBadRequest
NewDeleteAssetBadRequest creates DeleteAssetBadRequest with default headers values
func (*DeleteAssetBadRequest) SetPayload ¶ added in v0.2.1
func (o *DeleteAssetBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete asset bad request response
func (*DeleteAssetBadRequest) WithPayload ¶ added in v0.2.1
func (o *DeleteAssetBadRequest) WithPayload(payload *models.Error) *DeleteAssetBadRequest
WithPayload adds the payload to the delete asset bad request response
func (*DeleteAssetBadRequest) WriteResponse ¶ added in v0.2.1
func (o *DeleteAssetBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteAssetHandler ¶ added in v0.2.1
type DeleteAssetHandler interface {
Handle(DeleteAssetParams) middleware.Responder
}
DeleteAssetHandler interface for that can handle valid delete asset params
type DeleteAssetHandlerFunc ¶ added in v0.2.1
type DeleteAssetHandlerFunc func(DeleteAssetParams) middleware.Responder
DeleteAssetHandlerFunc turns a function with the right signature into a delete asset handler
func (DeleteAssetHandlerFunc) Handle ¶ added in v0.2.1
func (fn DeleteAssetHandlerFunc) Handle(params DeleteAssetParams) middleware.Responder
Handle executing the request and returning a response
type DeleteAssetInternalServerError ¶ added in v0.2.1
type DeleteAssetInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
DeleteAssetInternalServerError Internal Server Error - The server has encountered a situation it does not know how to handle.
swagger:response deleteAssetInternalServerError
func NewDeleteAssetInternalServerError ¶ added in v0.2.1
func NewDeleteAssetInternalServerError() *DeleteAssetInternalServerError
NewDeleteAssetInternalServerError creates DeleteAssetInternalServerError with default headers values
func (*DeleteAssetInternalServerError) SetPayload ¶ added in v0.2.1
func (o *DeleteAssetInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete asset internal server error response
func (*DeleteAssetInternalServerError) WithPayload ¶ added in v0.2.1
func (o *DeleteAssetInternalServerError) WithPayload(payload *models.Error) *DeleteAssetInternalServerError
WithPayload adds the payload to the delete asset internal server error response
func (*DeleteAssetInternalServerError) WriteResponse ¶ added in v0.2.1
func (o *DeleteAssetInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteAssetNoContent ¶ added in v0.2.1
type DeleteAssetNoContent struct { }
DeleteAssetNoContent Asset information deleted successfully.
swagger:response deleteAssetNoContent
func NewDeleteAssetNoContent ¶ added in v0.2.1
func NewDeleteAssetNoContent() *DeleteAssetNoContent
NewDeleteAssetNoContent creates DeleteAssetNoContent with default headers values
func (*DeleteAssetNoContent) WriteResponse ¶ added in v0.2.1
func (o *DeleteAssetNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteAssetNotFound ¶ added in v0.2.1
DeleteAssetNotFound Not found - At least one of the provided addresses is not valid.
swagger:response deleteAssetNotFound
func NewDeleteAssetNotFound ¶ added in v0.2.1
func NewDeleteAssetNotFound() *DeleteAssetNotFound
NewDeleteAssetNotFound creates DeleteAssetNotFound with default headers values
func (*DeleteAssetNotFound) SetPayload ¶ added in v0.2.1
func (o *DeleteAssetNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete asset not found response
func (*DeleteAssetNotFound) WithPayload ¶ added in v0.2.1
func (o *DeleteAssetNotFound) WithPayload(payload *models.Error) *DeleteAssetNotFound
WithPayload adds the payload to the delete asset not found response
func (*DeleteAssetNotFound) WriteResponse ¶ added in v0.2.1
func (o *DeleteAssetNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteAssetParams ¶ added in v0.2.1
type DeleteAssetParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The asset address (token address) to delete from the account. It must start with "AS" and contain only alphanumeric characters. Required: true Pattern: ^AS[0-9a-zA-Z]+$ In: query */ AssetAddress string /*The nickname of the account from which to delete the asset. Required: true In: path */ Nickname string }
DeleteAssetParams contains all the bound params for the delete asset operation typically these are obtained from a http.Request
swagger:parameters DeleteAsset
func NewDeleteAssetParams ¶ added in v0.2.1
func NewDeleteAssetParams() DeleteAssetParams
NewDeleteAssetParams creates a new DeleteAssetParams object
There are no default values defined in the spec.
func (*DeleteAssetParams) BindRequest ¶ added in v0.2.1
func (o *DeleteAssetParams) 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 NewDeleteAssetParams() beforehand.
type DeleteAssetURL ¶ added in v0.2.1
type DeleteAssetURL struct { Nickname string AssetAddress string // contains filtered or unexported fields }
DeleteAssetURL generates an URL for the delete asset operation
func (*DeleteAssetURL) Build ¶ added in v0.2.1
func (o *DeleteAssetURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteAssetURL) BuildFull ¶ added in v0.2.1
func (o *DeleteAssetURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteAssetURL) Must ¶ added in v0.2.1
Must is a helper function to panic when the url builder returns an error
func (*DeleteAssetURL) SetBasePath ¶ added in v0.2.1
func (o *DeleteAssetURL) 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 (*DeleteAssetURL) String ¶ added in v0.2.1
func (o *DeleteAssetURL) String() string
String returns the string representation of the path with query string
func (*DeleteAssetURL) StringFull ¶ added in v0.2.1
func (o *DeleteAssetURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteAssetURL) WithBasePath ¶ added in v0.2.1
func (o *DeleteAssetURL) WithBasePath(bp string) *DeleteAssetURL
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 ExportAccountFile ¶
type ExportAccountFile struct { Context *middleware.Context Handler ExportAccountFileHandler }
ExportAccountFile swagger:route GET /api/accounts/{nickname}/exportFile exportAccountFile
Download the account file corresponding to the nickname given in path.
func NewExportAccountFile ¶
func NewExportAccountFile(ctx *middleware.Context, handler ExportAccountFileHandler) *ExportAccountFile
NewExportAccountFile creates a new http.Handler for the export account file operation
func (*ExportAccountFile) ServeHTTP ¶
func (o *ExportAccountFile) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ExportAccountFileBadRequest ¶
type ExportAccountFileBadRequest struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
ExportAccountFileBadRequest Bad request
swagger:response exportAccountFileBadRequest
func NewExportAccountFileBadRequest ¶
func NewExportAccountFileBadRequest() *ExportAccountFileBadRequest
NewExportAccountFileBadRequest creates ExportAccountFileBadRequest with default headers values
func (*ExportAccountFileBadRequest) SetPayload ¶
func (o *ExportAccountFileBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the export account file bad request response
func (*ExportAccountFileBadRequest) WithPayload ¶
func (o *ExportAccountFileBadRequest) WithPayload(payload *models.Error) *ExportAccountFileBadRequest
WithPayload adds the payload to the export account file bad request response
func (*ExportAccountFileBadRequest) WriteResponse ¶
func (o *ExportAccountFileBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ExportAccountFileHandler ¶
type ExportAccountFileHandler interface {
Handle(ExportAccountFileParams) middleware.Responder
}
ExportAccountFileHandler interface for that can handle valid export account file params
type ExportAccountFileHandlerFunc ¶
type ExportAccountFileHandlerFunc func(ExportAccountFileParams) middleware.Responder
ExportAccountFileHandlerFunc turns a function with the right signature into a export account file handler
func (ExportAccountFileHandlerFunc) Handle ¶
func (fn ExportAccountFileHandlerFunc) Handle(params ExportAccountFileParams) middleware.Responder
Handle executing the request and returning a response
type ExportAccountFileInternalServerError ¶
type ExportAccountFileInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
ExportAccountFileInternalServerError Internal Server Error - The server has encountered a situation it does not know how to handle.
swagger:response exportAccountFileInternalServerError
func NewExportAccountFileInternalServerError ¶
func NewExportAccountFileInternalServerError() *ExportAccountFileInternalServerError
NewExportAccountFileInternalServerError creates ExportAccountFileInternalServerError with default headers values
func (*ExportAccountFileInternalServerError) SetPayload ¶
func (o *ExportAccountFileInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the export account file internal server error response
func (*ExportAccountFileInternalServerError) WithPayload ¶
func (o *ExportAccountFileInternalServerError) WithPayload(payload *models.Error) *ExportAccountFileInternalServerError
WithPayload adds the payload to the export account file internal server error response
func (*ExportAccountFileInternalServerError) WriteResponse ¶
func (o *ExportAccountFileInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ExportAccountFileNotFound ¶
type ExportAccountFileNotFound struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
ExportAccountFileNotFound Not found.
swagger:response exportAccountFileNotFound
func NewExportAccountFileNotFound ¶
func NewExportAccountFileNotFound() *ExportAccountFileNotFound
NewExportAccountFileNotFound creates ExportAccountFileNotFound with default headers values
func (*ExportAccountFileNotFound) SetPayload ¶
func (o *ExportAccountFileNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the export account file not found response
func (*ExportAccountFileNotFound) WithPayload ¶
func (o *ExportAccountFileNotFound) WithPayload(payload *models.Error) *ExportAccountFileNotFound
WithPayload adds the payload to the export account file not found response
func (*ExportAccountFileNotFound) WriteResponse ¶
func (o *ExportAccountFileNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ExportAccountFileOK ¶
type ExportAccountFileOK struct { /* In: Body */ Payload io.ReadCloser `json:"body,omitempty"` }
ExportAccountFileOK Download the account file
swagger:response exportAccountFileOK
func NewExportAccountFileOK ¶
func NewExportAccountFileOK() *ExportAccountFileOK
NewExportAccountFileOK creates ExportAccountFileOK with default headers values
func (*ExportAccountFileOK) SetPayload ¶
func (o *ExportAccountFileOK) SetPayload(payload io.ReadCloser)
SetPayload sets the payload to the export account file o k response
func (*ExportAccountFileOK) WithPayload ¶
func (o *ExportAccountFileOK) WithPayload(payload io.ReadCloser) *ExportAccountFileOK
WithPayload adds the payload to the export account file o k response
func (*ExportAccountFileOK) WriteResponse ¶
func (o *ExportAccountFileOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ExportAccountFileParams ¶
type ExportAccountFileParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Account's short name. Required: true In: path */ Nickname string }
ExportAccountFileParams contains all the bound params for the export account file operation typically these are obtained from a http.Request
swagger:parameters ExportAccountFile
func NewExportAccountFileParams ¶
func NewExportAccountFileParams() ExportAccountFileParams
NewExportAccountFileParams creates a new ExportAccountFileParams object
There are no default values defined in the spec.
func (*ExportAccountFileParams) BindRequest ¶
func (o *ExportAccountFileParams) 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 NewExportAccountFileParams() beforehand.
type ExportAccountFileURL ¶
type ExportAccountFileURL struct { Nickname string // contains filtered or unexported fields }
ExportAccountFileURL generates an URL for the export account file operation
func (*ExportAccountFileURL) Build ¶
func (o *ExportAccountFileURL) Build() (*url.URL, error)
Build a url path and query string
func (*ExportAccountFileURL) BuildFull ¶
func (o *ExportAccountFileURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ExportAccountFileURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ExportAccountFileURL) SetBasePath ¶
func (o *ExportAccountFileURL) 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 (*ExportAccountFileURL) String ¶
func (o *ExportAccountFileURL) String() string
String returns the string representation of the path with query string
func (*ExportAccountFileURL) StringFull ¶
func (o *ExportAccountFileURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ExportAccountFileURL) WithBasePath ¶
func (o *ExportAccountFileURL) WithBasePath(bp string) *ExportAccountFileURL
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 GetAccount ¶
type GetAccount struct { Context *middleware.Context Handler GetAccountHandler }
GetAccount swagger:route GET /api/accounts/{nickname} getAccount
Get the account associated with the provided nickname in the path, with the option to return the ciphered private key.
func NewGetAccount ¶
func NewGetAccount(ctx *middleware.Context, handler GetAccountHandler) *GetAccount
NewGetAccount creates a new http.Handler for the get account operation
func (*GetAccount) ServeHTTP ¶
func (o *GetAccount) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetAccountBadRequest ¶
GetAccountBadRequest Bad request.
swagger:response getAccountBadRequest
func NewGetAccountBadRequest ¶
func NewGetAccountBadRequest() *GetAccountBadRequest
NewGetAccountBadRequest creates GetAccountBadRequest with default headers values
func (*GetAccountBadRequest) SetPayload ¶
func (o *GetAccountBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the get account bad request response
func (*GetAccountBadRequest) WithPayload ¶
func (o *GetAccountBadRequest) WithPayload(payload *models.Error) *GetAccountBadRequest
WithPayload adds the payload to the get account bad request response
func (*GetAccountBadRequest) WriteResponse ¶
func (o *GetAccountBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAccountHandler ¶
type GetAccountHandler interface {
Handle(GetAccountParams) middleware.Responder
}
GetAccountHandler interface for that can handle valid get account params
type GetAccountHandlerFunc ¶
type GetAccountHandlerFunc func(GetAccountParams) middleware.Responder
GetAccountHandlerFunc turns a function with the right signature into a get account handler
func (GetAccountHandlerFunc) Handle ¶
func (fn GetAccountHandlerFunc) Handle(params GetAccountParams) middleware.Responder
Handle executing the request and returning a response
type GetAccountInternalServerError ¶
type GetAccountInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
GetAccountInternalServerError Internal Server Error - The server has encountered a situation it does not know how to handle.
swagger:response getAccountInternalServerError
func NewGetAccountInternalServerError ¶
func NewGetAccountInternalServerError() *GetAccountInternalServerError
NewGetAccountInternalServerError creates GetAccountInternalServerError with default headers values
func (*GetAccountInternalServerError) SetPayload ¶
func (o *GetAccountInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the get account internal server error response
func (*GetAccountInternalServerError) WithPayload ¶
func (o *GetAccountInternalServerError) WithPayload(payload *models.Error) *GetAccountInternalServerError
WithPayload adds the payload to the get account internal server error response
func (*GetAccountInternalServerError) WriteResponse ¶
func (o *GetAccountInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAccountNotFound ¶
GetAccountNotFound Not found.
swagger:response getAccountNotFound
func NewGetAccountNotFound ¶
func NewGetAccountNotFound() *GetAccountNotFound
NewGetAccountNotFound creates GetAccountNotFound with default headers values
func (*GetAccountNotFound) SetPayload ¶
func (o *GetAccountNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the get account not found response
func (*GetAccountNotFound) WithPayload ¶
func (o *GetAccountNotFound) WithPayload(payload *models.Error) *GetAccountNotFound
WithPayload adds the payload to the get account not found response
func (*GetAccountNotFound) WriteResponse ¶
func (o *GetAccountNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAccountOK ¶
GetAccountOK Account retrieved.
swagger:response getAccountOK
func NewGetAccountOK ¶
func NewGetAccountOK() *GetAccountOK
NewGetAccountOK creates GetAccountOK with default headers values
func (*GetAccountOK) SetPayload ¶
func (o *GetAccountOK) SetPayload(payload *models.Account)
SetPayload sets the payload to the get account o k response
func (*GetAccountOK) WithPayload ¶
func (o *GetAccountOK) WithPayload(payload *models.Account) *GetAccountOK
WithPayload adds the payload to the get account o k response
func (*GetAccountOK) WriteResponse ¶
func (o *GetAccountOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAccountParams ¶
type GetAccountParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*whether to return the data ciphered or not In: query Default: true */ Ciphered *bool /*Account's short name. Required: true In: path */ Nickname string }
GetAccountParams contains all the bound params for the get account operation typically these are obtained from a http.Request
swagger:parameters GetAccount
func NewGetAccountParams ¶
func NewGetAccountParams() GetAccountParams
NewGetAccountParams creates a new GetAccountParams object with the default values initialized.
func (*GetAccountParams) BindRequest ¶
func (o *GetAccountParams) 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 NewGetAccountParams() beforehand.
type GetAccountURL ¶
type GetAccountURL struct { Nickname string Ciphered *bool // contains filtered or unexported fields }
GetAccountURL generates an URL for the get account operation
func (*GetAccountURL) Build ¶
func (o *GetAccountURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetAccountURL) BuildFull ¶
func (o *GetAccountURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetAccountURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetAccountURL) SetBasePath ¶
func (o *GetAccountURL) 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 (*GetAccountURL) String ¶
func (o *GetAccountURL) String() string
String returns the string representation of the path with query string
func (*GetAccountURL) StringFull ¶
func (o *GetAccountURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetAccountURL) WithBasePath ¶
func (o *GetAccountURL) WithBasePath(bp string) *GetAccountURL
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 GetAccountUnauthorized ¶
GetAccountUnauthorized Unauthorized - The request requires user authentication. Only possible if ciphered is false.
swagger:response getAccountUnauthorized
func NewGetAccountUnauthorized ¶
func NewGetAccountUnauthorized() *GetAccountUnauthorized
NewGetAccountUnauthorized creates GetAccountUnauthorized with default headers values
func (*GetAccountUnauthorized) SetPayload ¶
func (o *GetAccountUnauthorized) SetPayload(payload *models.Error)
SetPayload sets the payload to the get account unauthorized response
func (*GetAccountUnauthorized) WithPayload ¶
func (o *GetAccountUnauthorized) WithPayload(payload *models.Error) *GetAccountUnauthorized
WithPayload adds the payload to the get account unauthorized response
func (*GetAccountUnauthorized) WriteResponse ¶
func (o *GetAccountUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAllAssets ¶ added in v0.2.1
type GetAllAssets struct { Context *middleware.Context Handler GetAllAssetsHandler }
GetAllAssets swagger:route GET /api/accounts/{nickname}/assets getAllAssets
Get all assets with their balance.
func NewGetAllAssets ¶ added in v0.2.1
func NewGetAllAssets(ctx *middleware.Context, handler GetAllAssetsHandler) *GetAllAssets
NewGetAllAssets creates a new http.Handler for the get all assets operation
func (*GetAllAssets) ServeHTTP ¶ added in v0.2.1
func (o *GetAllAssets) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetAllAssetsHandler ¶ added in v0.2.1
type GetAllAssetsHandler interface {
Handle(GetAllAssetsParams) middleware.Responder
}
GetAllAssetsHandler interface for that can handle valid get all assets params
type GetAllAssetsHandlerFunc ¶ added in v0.2.1
type GetAllAssetsHandlerFunc func(GetAllAssetsParams) middleware.Responder
GetAllAssetsHandlerFunc turns a function with the right signature into a get all assets handler
func (GetAllAssetsHandlerFunc) Handle ¶ added in v0.2.1
func (fn GetAllAssetsHandlerFunc) Handle(params GetAllAssetsParams) middleware.Responder
Handle executing the request and returning a response
type GetAllAssetsInternalServerError ¶ added in v0.2.1
type GetAllAssetsInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
GetAllAssetsInternalServerError Internal Server Error - The server has encountered a situation it does not know how to handle.
swagger:response getAllAssetsInternalServerError
func NewGetAllAssetsInternalServerError ¶ added in v0.2.1
func NewGetAllAssetsInternalServerError() *GetAllAssetsInternalServerError
NewGetAllAssetsInternalServerError creates GetAllAssetsInternalServerError with default headers values
func (*GetAllAssetsInternalServerError) SetPayload ¶ added in v0.2.1
func (o *GetAllAssetsInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the get all assets internal server error response
func (*GetAllAssetsInternalServerError) WithPayload ¶ added in v0.2.1
func (o *GetAllAssetsInternalServerError) WithPayload(payload *models.Error) *GetAllAssetsInternalServerError
WithPayload adds the payload to the get all assets internal server error response
func (*GetAllAssetsInternalServerError) WriteResponse ¶ added in v0.2.1
func (o *GetAllAssetsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAllAssetsOK ¶ added in v0.2.1
type GetAllAssetsOK struct { /* In: Body */ Payload []*models.AssetInfoWithBalance `json:"body,omitempty"` }
GetAllAssetsOK All assets retrieved successfully.
swagger:response getAllAssetsOK
func NewGetAllAssetsOK ¶ added in v0.2.1
func NewGetAllAssetsOK() *GetAllAssetsOK
NewGetAllAssetsOK creates GetAllAssetsOK with default headers values
func (*GetAllAssetsOK) SetPayload ¶ added in v0.2.1
func (o *GetAllAssetsOK) SetPayload(payload []*models.AssetInfoWithBalance)
SetPayload sets the payload to the get all assets o k response
func (*GetAllAssetsOK) WithPayload ¶ added in v0.2.1
func (o *GetAllAssetsOK) WithPayload(payload []*models.AssetInfoWithBalance) *GetAllAssetsOK
WithPayload adds the payload to the get all assets o k response
func (*GetAllAssetsOK) WriteResponse ¶ added in v0.2.1
func (o *GetAllAssetsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAllAssetsParams ¶ added in v0.2.1
type GetAllAssetsParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The nickname of the wallet to retrieve assets for. Required: true In: path */ Nickname string }
GetAllAssetsParams contains all the bound params for the get all assets operation typically these are obtained from a http.Request
swagger:parameters GetAllAssets
func NewGetAllAssetsParams ¶ added in v0.2.1
func NewGetAllAssetsParams() GetAllAssetsParams
NewGetAllAssetsParams creates a new GetAllAssetsParams object
There are no default values defined in the spec.
func (*GetAllAssetsParams) BindRequest ¶ added in v0.2.1
func (o *GetAllAssetsParams) 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 NewGetAllAssetsParams() beforehand.
type GetAllAssetsURL ¶ added in v0.2.1
type GetAllAssetsURL struct { Nickname string // contains filtered or unexported fields }
GetAllAssetsURL generates an URL for the get all assets operation
func (*GetAllAssetsURL) Build ¶ added in v0.2.1
func (o *GetAllAssetsURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetAllAssetsURL) BuildFull ¶ added in v0.2.1
func (o *GetAllAssetsURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetAllAssetsURL) Must ¶ added in v0.2.1
Must is a helper function to panic when the url builder returns an error
func (*GetAllAssetsURL) SetBasePath ¶ added in v0.2.1
func (o *GetAllAssetsURL) 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 (*GetAllAssetsURL) String ¶ added in v0.2.1
func (o *GetAllAssetsURL) String() string
String returns the string representation of the path with query string
func (*GetAllAssetsURL) StringFull ¶ added in v0.2.1
func (o *GetAllAssetsURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetAllAssetsURL) WithBasePath ¶ added in v0.2.1
func (o *GetAllAssetsURL) WithBasePath(bp string) *GetAllAssetsURL
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 ImportAccount ¶
type ImportAccount struct { Context *middleware.Context Handler ImportAccountHandler }
ImportAccount swagger:route PUT /api/accounts importAccount
Import a new account
func NewImportAccount ¶
func NewImportAccount(ctx *middleware.Context, handler ImportAccountHandler) *ImportAccount
NewImportAccount creates a new http.Handler for the import account operation
func (*ImportAccount) ServeHTTP ¶
func (o *ImportAccount) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ImportAccountBadRequest ¶
type ImportAccountBadRequest struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
ImportAccountBadRequest Bad request.
swagger:response importAccountBadRequest
func NewImportAccountBadRequest ¶
func NewImportAccountBadRequest() *ImportAccountBadRequest
NewImportAccountBadRequest creates ImportAccountBadRequest with default headers values
func (*ImportAccountBadRequest) SetPayload ¶
func (o *ImportAccountBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the import account bad request response
func (*ImportAccountBadRequest) WithPayload ¶
func (o *ImportAccountBadRequest) WithPayload(payload *models.Error) *ImportAccountBadRequest
WithPayload adds the payload to the import account bad request response
func (*ImportAccountBadRequest) WriteResponse ¶
func (o *ImportAccountBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ImportAccountHandler ¶
type ImportAccountHandler interface {
Handle(ImportAccountParams) middleware.Responder
}
ImportAccountHandler interface for that can handle valid import account params
type ImportAccountHandlerFunc ¶
type ImportAccountHandlerFunc func(ImportAccountParams) middleware.Responder
ImportAccountHandlerFunc turns a function with the right signature into a import account handler
func (ImportAccountHandlerFunc) Handle ¶
func (fn ImportAccountHandlerFunc) Handle(params ImportAccountParams) middleware.Responder
Handle executing the request and returning a response
type ImportAccountInternalServerError ¶
type ImportAccountInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
ImportAccountInternalServerError Internal Server Error - The server has encountered a situation it does not know how to handle.
swagger:response importAccountInternalServerError
func NewImportAccountInternalServerError ¶
func NewImportAccountInternalServerError() *ImportAccountInternalServerError
NewImportAccountInternalServerError creates ImportAccountInternalServerError with default headers values
func (*ImportAccountInternalServerError) SetPayload ¶
func (o *ImportAccountInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the import account internal server error response
func (*ImportAccountInternalServerError) WithPayload ¶
func (o *ImportAccountInternalServerError) WithPayload(payload *models.Error) *ImportAccountInternalServerError
WithPayload adds the payload to the import account internal server error response
func (*ImportAccountInternalServerError) WriteResponse ¶
func (o *ImportAccountInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ImportAccountOK ¶
ImportAccountOK Account imported.
swagger:response importAccountOK
func NewImportAccountOK ¶
func NewImportAccountOK() *ImportAccountOK
NewImportAccountOK creates ImportAccountOK with default headers values
func (*ImportAccountOK) SetPayload ¶
func (o *ImportAccountOK) SetPayload(payload *models.Account)
SetPayload sets the payload to the import account o k response
func (*ImportAccountOK) WithPayload ¶
func (o *ImportAccountOK) WithPayload(payload *models.Account) *ImportAccountOK
WithPayload adds the payload to the import account o k response
func (*ImportAccountOK) WriteResponse ¶
func (o *ImportAccountOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ImportAccountParams ¶
ImportAccountParams contains all the bound params for the import account operation typically these are obtained from a http.Request
swagger:parameters ImportAccount
func NewImportAccountParams ¶
func NewImportAccountParams() ImportAccountParams
NewImportAccountParams creates a new ImportAccountParams object
There are no default values defined in the spec.
func (*ImportAccountParams) BindRequest ¶
func (o *ImportAccountParams) 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 NewImportAccountParams() beforehand.
type ImportAccountURL ¶
type ImportAccountURL struct {
// contains filtered or unexported fields
}
ImportAccountURL generates an URL for the import account operation
func (*ImportAccountURL) Build ¶
func (o *ImportAccountURL) Build() (*url.URL, error)
Build a url path and query string
func (*ImportAccountURL) BuildFull ¶
func (o *ImportAccountURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ImportAccountURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ImportAccountURL) SetBasePath ¶
func (o *ImportAccountURL) 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 (*ImportAccountURL) String ¶
func (o *ImportAccountURL) String() string
String returns the string representation of the path with query string
func (*ImportAccountURL) StringFull ¶
func (o *ImportAccountURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ImportAccountURL) WithBasePath ¶
func (o *ImportAccountURL) WithBasePath(bp string) *ImportAccountURL
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 ImportAccountUnauthorized ¶
ImportAccountUnauthorized Unauthorized - The request requires user authentication.
swagger:response importAccountUnauthorized
func NewImportAccountUnauthorized ¶
func NewImportAccountUnauthorized() *ImportAccountUnauthorized
NewImportAccountUnauthorized creates ImportAccountUnauthorized with default headers values
func (*ImportAccountUnauthorized) SetPayload ¶
func (o *ImportAccountUnauthorized) SetPayload(payload *models.Error)
SetPayload sets the payload to the import account unauthorized response
func (*ImportAccountUnauthorized) WithPayload ¶
func (o *ImportAccountUnauthorized) WithPayload(payload *models.Error) *ImportAccountUnauthorized
WithPayload adds the payload to the import account unauthorized response
func (*ImportAccountUnauthorized) WriteResponse ¶
func (o *ImportAccountUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ImportAccountUnprocessableEntity ¶
type ImportAccountUnprocessableEntity struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
ImportAccountUnprocessableEntity Unprocessable Entity - syntax is correct, but the server was unable to process the contained instructions.
swagger:response importAccountUnprocessableEntity
func NewImportAccountUnprocessableEntity ¶
func NewImportAccountUnprocessableEntity() *ImportAccountUnprocessableEntity
NewImportAccountUnprocessableEntity creates ImportAccountUnprocessableEntity with default headers values
func (*ImportAccountUnprocessableEntity) SetPayload ¶
func (o *ImportAccountUnprocessableEntity) SetPayload(payload *models.Error)
SetPayload sets the payload to the import account unprocessable entity response
func (*ImportAccountUnprocessableEntity) WithPayload ¶
func (o *ImportAccountUnprocessableEntity) WithPayload(payload *models.Error) *ImportAccountUnprocessableEntity
WithPayload adds the payload to the import account unprocessable entity response
func (*ImportAccountUnprocessableEntity) WriteResponse ¶
func (o *ImportAccountUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type MassaWalletAPI ¶
type MassaWalletAPI 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 // BinProducer registers a producer for the following mime types: // - application/octet-stream // - image/png BinProducer runtime.Producer // CSSProducer registers a producer for the following mime types: // - text/css CSSProducer runtime.Producer // HTMLProducer registers a producer for the following mime types: // - text/html HTMLProducer runtime.Producer // JsProducer registers a producer for the following mime types: // - text/javascript JsProducer runtime.Producer // JSONProducer registers a producer for the following mime types: // - application/json JSONProducer runtime.Producer // TextWebpProducer registers a producer for the following mime types: // - text/webp TextWebpProducer runtime.Producer // AccountListHandler sets the operation handler for the account list operation AccountListHandler AccountListHandler // AddAssetHandler sets the operation handler for the add asset operation AddAssetHandler AddAssetHandler // BackupAccountHandler sets the operation handler for the backup account operation BackupAccountHandler BackupAccountHandler // CreateAccountHandler sets the operation handler for the create account operation CreateAccountHandler CreateAccountHandler // DeleteAccountHandler sets the operation handler for the delete account operation DeleteAccountHandler DeleteAccountHandler // DeleteAssetHandler sets the operation handler for the delete asset operation DeleteAssetHandler DeleteAssetHandler // ExportAccountFileHandler sets the operation handler for the export account file operation ExportAccountFileHandler ExportAccountFileHandler // GetAccountHandler sets the operation handler for the get account operation GetAccountHandler GetAccountHandler // GetAllAssetsHandler sets the operation handler for the get all assets operation GetAllAssetsHandler GetAllAssetsHandler // ImportAccountHandler sets the operation handler for the import account operation ImportAccountHandler ImportAccountHandler // SignHandler sets the operation handler for the sign operation SignHandler SignHandler // SignMessageHandler sets the operation handler for the sign message operation SignMessageHandler SignMessageHandler // TradeRollsHandler sets the operation handler for the trade rolls operation TradeRollsHandler TradeRollsHandler // TransferCoinHandler sets the operation handler for the transfer coin operation TransferCoinHandler TransferCoinHandler // UpdateAccountHandler sets the operation handler for the update account operation UpdateAccountHandler UpdateAccountHandler // DefaultPageHandler sets the operation handler for the default page operation DefaultPageHandler DefaultPageHandler // WebAppHandler sets the operation handler for the web app operation WebAppHandler WebAppHandler // 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 }
MassaWalletAPI MassaStation plugin - Wallet
func NewMassaWalletAPI ¶
func NewMassaWalletAPI(spec *loads.Document) *MassaWalletAPI
NewMassaWalletAPI creates a new MassaWallet instance
func (*MassaWalletAPI) AddMiddlewareFor ¶
func (o *MassaWalletAPI) AddMiddlewareFor(method, path string, builder middleware.Builder)
AddMiddlewareFor adds a http middleware to existing handler
func (*MassaWalletAPI) AuthenticatorsFor ¶
func (o *MassaWalletAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator
AuthenticatorsFor gets the authenticators for the specified security schemes
func (*MassaWalletAPI) Authorizer ¶
func (o *MassaWalletAPI) Authorizer() runtime.Authorizer
Authorizer returns the registered authorizer
func (*MassaWalletAPI) ConsumersFor ¶
func (o *MassaWalletAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer
ConsumersFor gets the consumers for the specified media types. MIME type parameters are ignored here.
func (*MassaWalletAPI) Context ¶
func (o *MassaWalletAPI) Context() *middleware.Context
Context returns the middleware context for the massa wallet API
func (*MassaWalletAPI) DefaultConsumes ¶
func (o *MassaWalletAPI) DefaultConsumes() string
DefaultConsumes returns the default consumes media type
func (*MassaWalletAPI) DefaultProduces ¶
func (o *MassaWalletAPI) DefaultProduces() string
DefaultProduces returns the default produces media type
func (*MassaWalletAPI) Formats ¶
func (o *MassaWalletAPI) Formats() strfmt.Registry
Formats returns the registered string formats
func (*MassaWalletAPI) HandlerFor ¶
func (o *MassaWalletAPI) HandlerFor(method, path string) (http.Handler, bool)
HandlerFor gets a http.Handler for the provided operation method and path
func (*MassaWalletAPI) Init ¶
func (o *MassaWalletAPI) Init()
Init allows you to just initialize the handler cache, you can then recompose the middleware as you see fit
func (*MassaWalletAPI) ProducersFor ¶
func (o *MassaWalletAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer
ProducersFor gets the producers for the specified media types. MIME type parameters are ignored here.
func (*MassaWalletAPI) RegisterConsumer ¶
func (o *MassaWalletAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer)
RegisterConsumer allows you to add (or override) a consumer for a media type.
func (*MassaWalletAPI) RegisterFormat ¶
func (o *MassaWalletAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)
RegisterFormat registers a custom format validator
func (*MassaWalletAPI) RegisterProducer ¶
func (o *MassaWalletAPI) RegisterProducer(mediaType string, producer runtime.Producer)
RegisterProducer allows you to add (or override) a producer for a media type.
func (*MassaWalletAPI) Serve ¶
func (o *MassaWalletAPI) Serve(builder middleware.Builder) http.Handler
Serve creates a http handler to serve the API over HTTP can be used directly in http.ListenAndServe(":8000", api.Serve(nil))
func (*MassaWalletAPI) ServeErrorFor ¶
func (o *MassaWalletAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)
ServeErrorFor gets a error handler for a given operation id
func (*MassaWalletAPI) SetDefaultConsumes ¶
func (o *MassaWalletAPI) SetDefaultConsumes(mediaType string)
SetDefaultConsumes returns the default consumes media type
func (*MassaWalletAPI) SetDefaultProduces ¶
func (o *MassaWalletAPI) SetDefaultProduces(mediaType string)
SetDefaultProduces sets the default produces media type
func (*MassaWalletAPI) SetSpec ¶
func (o *MassaWalletAPI) SetSpec(spec *loads.Document)
SetSpec sets a spec that will be served for the clients.
func (*MassaWalletAPI) UseRedoc ¶
func (o *MassaWalletAPI) UseRedoc()
UseRedoc for documentation at /docs
func (*MassaWalletAPI) UseSwaggerUI ¶
func (o *MassaWalletAPI) UseSwaggerUI()
UseSwaggerUI for documentation at /docs
func (*MassaWalletAPI) Validate ¶
func (o *MassaWalletAPI) Validate() error
Validate validates the registrations in the MassaWalletAPI
type Sign ¶
type Sign struct { Context *middleware.Context Handler SignHandler }
Sign swagger:route POST /api/accounts/{nickname}/sign sign
Sign an operation or a message using the account associated with the provided nickname in the path. If no correlationId is provided, the user will be prompted to enter their account password.
func NewSign ¶
func NewSign(ctx *middleware.Context, handler SignHandler) *Sign
NewSign creates a new http.Handler for the sign operation
type SignBadRequest ¶
SignBadRequest Bad request.
swagger:response signBadRequest
func NewSignBadRequest ¶
func NewSignBadRequest() *SignBadRequest
NewSignBadRequest creates SignBadRequest with default headers values
func (*SignBadRequest) SetPayload ¶
func (o *SignBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the sign bad request response
func (*SignBadRequest) WithPayload ¶
func (o *SignBadRequest) WithPayload(payload *models.Error) *SignBadRequest
WithPayload adds the payload to the sign bad request response
func (*SignBadRequest) WriteResponse ¶
func (o *SignBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type SignHandler ¶
type SignHandler interface {
Handle(SignParams) middleware.Responder
}
SignHandler interface for that can handle valid sign params
type SignHandlerFunc ¶
type SignHandlerFunc func(SignParams) middleware.Responder
SignHandlerFunc turns a function with the right signature into a sign handler
func (SignHandlerFunc) Handle ¶
func (fn SignHandlerFunc) Handle(params SignParams) middleware.Responder
Handle executing the request and returning a response
type SignInternalServerError ¶
type SignInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
SignInternalServerError Internal Server Error - The server has encountered a situation it does not know how to handle.
swagger:response signInternalServerError
func NewSignInternalServerError ¶
func NewSignInternalServerError() *SignInternalServerError
NewSignInternalServerError creates SignInternalServerError with default headers values
func (*SignInternalServerError) SetPayload ¶
func (o *SignInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the sign internal server error response
func (*SignInternalServerError) WithPayload ¶
func (o *SignInternalServerError) WithPayload(payload *models.Error) *SignInternalServerError
WithPayload adds the payload to the sign internal server error response
func (*SignInternalServerError) WriteResponse ¶
func (o *SignInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type SignMessage ¶ added in v0.2.5
type SignMessage struct { Context *middleware.Context Handler SignMessageHandler }
SignMessage swagger:route POST /api/accounts/{nickname}/signMessage signMessage
Sign a message using the account associated with the provided nickname in the path.
func NewSignMessage ¶ added in v0.2.5
func NewSignMessage(ctx *middleware.Context, handler SignMessageHandler) *SignMessage
NewSignMessage creates a new http.Handler for the sign message operation
func (*SignMessage) ServeHTTP ¶ added in v0.2.5
func (o *SignMessage) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type SignMessageBadRequest ¶ added in v0.2.5
SignMessageBadRequest Bad request.
swagger:response signMessageBadRequest
func NewSignMessageBadRequest ¶ added in v0.2.5
func NewSignMessageBadRequest() *SignMessageBadRequest
NewSignMessageBadRequest creates SignMessageBadRequest with default headers values
func (*SignMessageBadRequest) SetPayload ¶ added in v0.2.5
func (o *SignMessageBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the sign message bad request response
func (*SignMessageBadRequest) WithPayload ¶ added in v0.2.5
func (o *SignMessageBadRequest) WithPayload(payload *models.Error) *SignMessageBadRequest
WithPayload adds the payload to the sign message bad request response
func (*SignMessageBadRequest) WriteResponse ¶ added in v0.2.5
func (o *SignMessageBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type SignMessageHandler ¶ added in v0.2.5
type SignMessageHandler interface {
Handle(SignMessageParams) middleware.Responder
}
SignMessageHandler interface for that can handle valid sign message params
type SignMessageHandlerFunc ¶ added in v0.2.5
type SignMessageHandlerFunc func(SignMessageParams) middleware.Responder
SignMessageHandlerFunc turns a function with the right signature into a sign message handler
func (SignMessageHandlerFunc) Handle ¶ added in v0.2.5
func (fn SignMessageHandlerFunc) Handle(params SignMessageParams) middleware.Responder
Handle executing the request and returning a response
type SignMessageInternalServerError ¶ added in v0.2.5
type SignMessageInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
SignMessageInternalServerError Internal Server Error - The server has encountered a situation it does not know how to handle.
swagger:response signMessageInternalServerError
func NewSignMessageInternalServerError ¶ added in v0.2.5
func NewSignMessageInternalServerError() *SignMessageInternalServerError
NewSignMessageInternalServerError creates SignMessageInternalServerError with default headers values
func (*SignMessageInternalServerError) SetPayload ¶ added in v0.2.5
func (o *SignMessageInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the sign message internal server error response
func (*SignMessageInternalServerError) WithPayload ¶ added in v0.2.5
func (o *SignMessageInternalServerError) WithPayload(payload *models.Error) *SignMessageInternalServerError
WithPayload adds the payload to the sign message internal server error response
func (*SignMessageInternalServerError) WriteResponse ¶ added in v0.2.5
func (o *SignMessageInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type SignMessageNotFound ¶ added in v0.2.5
SignMessageNotFound Account Not found.
swagger:response signMessageNotFound
func NewSignMessageNotFound ¶ added in v0.2.5
func NewSignMessageNotFound() *SignMessageNotFound
NewSignMessageNotFound creates SignMessageNotFound with default headers values
func (*SignMessageNotFound) SetPayload ¶ added in v0.2.5
func (o *SignMessageNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the sign message not found response
func (*SignMessageNotFound) WithPayload ¶ added in v0.2.5
func (o *SignMessageNotFound) WithPayload(payload *models.Error) *SignMessageNotFound
WithPayload adds the payload to the sign message not found response
func (*SignMessageNotFound) WriteResponse ¶ added in v0.2.5
func (o *SignMessageNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type SignMessageOK ¶ added in v0.2.5
type SignMessageOK struct { /* In: Body */ Payload *models.SignResponse `json:"body,omitempty"` }
SignMessageOK Returns the signature, public key.
swagger:response signMessageOK
func NewSignMessageOK ¶ added in v0.2.5
func NewSignMessageOK() *SignMessageOK
NewSignMessageOK creates SignMessageOK with default headers values
func (*SignMessageOK) SetPayload ¶ added in v0.2.5
func (o *SignMessageOK) SetPayload(payload *models.SignResponse)
SetPayload sets the payload to the sign message o k response
func (*SignMessageOK) WithPayload ¶ added in v0.2.5
func (o *SignMessageOK) WithPayload(payload *models.SignResponse) *SignMessageOK
WithPayload adds the payload to the sign message o k response
func (*SignMessageOK) WriteResponse ¶ added in v0.2.5
func (o *SignMessageOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type SignMessageParams ¶ added in v0.2.5
type SignMessageParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: body */ Body *models.SignMessageRequest /*Account's short name. Required: true In: path */ Nickname string }
SignMessageParams contains all the bound params for the sign message operation typically these are obtained from a http.Request
swagger:parameters SignMessage
func NewSignMessageParams ¶ added in v0.2.5
func NewSignMessageParams() SignMessageParams
NewSignMessageParams creates a new SignMessageParams object
There are no default values defined in the spec.
func (*SignMessageParams) BindRequest ¶ added in v0.2.5
func (o *SignMessageParams) 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 NewSignMessageParams() beforehand.
type SignMessageURL ¶ added in v0.2.5
type SignMessageURL struct { Nickname string // contains filtered or unexported fields }
SignMessageURL generates an URL for the sign message operation
func (*SignMessageURL) Build ¶ added in v0.2.5
func (o *SignMessageURL) Build() (*url.URL, error)
Build a url path and query string
func (*SignMessageURL) BuildFull ¶ added in v0.2.5
func (o *SignMessageURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*SignMessageURL) Must ¶ added in v0.2.5
Must is a helper function to panic when the url builder returns an error
func (*SignMessageURL) SetBasePath ¶ added in v0.2.5
func (o *SignMessageURL) 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 (*SignMessageURL) String ¶ added in v0.2.5
func (o *SignMessageURL) String() string
String returns the string representation of the path with query string
func (*SignMessageURL) StringFull ¶ added in v0.2.5
func (o *SignMessageURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*SignMessageURL) WithBasePath ¶ added in v0.2.5
func (o *SignMessageURL) WithBasePath(bp string) *SignMessageURL
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 SignMessageUnauthorized ¶ added in v0.2.5
SignMessageUnauthorized Unauthorized - The request requires user authentication.
swagger:response signMessageUnauthorized
func NewSignMessageUnauthorized ¶ added in v0.2.5
func NewSignMessageUnauthorized() *SignMessageUnauthorized
NewSignMessageUnauthorized creates SignMessageUnauthorized with default headers values
func (*SignMessageUnauthorized) SetPayload ¶ added in v0.2.5
func (o *SignMessageUnauthorized) SetPayload(payload *models.Error)
SetPayload sets the payload to the sign message unauthorized response
func (*SignMessageUnauthorized) WithPayload ¶ added in v0.2.5
func (o *SignMessageUnauthorized) WithPayload(payload *models.Error) *SignMessageUnauthorized
WithPayload adds the payload to the sign message unauthorized response
func (*SignMessageUnauthorized) WriteResponse ¶ added in v0.2.5
func (o *SignMessageUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type SignMessageUnprocessableEntity ¶ added in v0.2.5
type SignMessageUnprocessableEntity struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
SignMessageUnprocessableEntity Unprocessable Entity - syntax is correct, but the server was unable to process the contained instructions.
swagger:response signMessageUnprocessableEntity
func NewSignMessageUnprocessableEntity ¶ added in v0.2.5
func NewSignMessageUnprocessableEntity() *SignMessageUnprocessableEntity
NewSignMessageUnprocessableEntity creates SignMessageUnprocessableEntity with default headers values
func (*SignMessageUnprocessableEntity) SetPayload ¶ added in v0.2.5
func (o *SignMessageUnprocessableEntity) SetPayload(payload *models.Error)
SetPayload sets the payload to the sign message unprocessable entity response
func (*SignMessageUnprocessableEntity) WithPayload ¶ added in v0.2.5
func (o *SignMessageUnprocessableEntity) WithPayload(payload *models.Error) *SignMessageUnprocessableEntity
WithPayload adds the payload to the sign message unprocessable entity response
func (*SignMessageUnprocessableEntity) WriteResponse ¶ added in v0.2.5
func (o *SignMessageUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type SignNotFound ¶
SignNotFound Account Not found.
swagger:response signNotFound
func NewSignNotFound ¶
func NewSignNotFound() *SignNotFound
NewSignNotFound creates SignNotFound with default headers values
func (*SignNotFound) SetPayload ¶
func (o *SignNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the sign not found response
func (*SignNotFound) WithPayload ¶
func (o *SignNotFound) WithPayload(payload *models.Error) *SignNotFound
WithPayload adds the payload to the sign not found response
func (*SignNotFound) WriteResponse ¶
func (o *SignNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type SignOK ¶
type SignOK struct { /* In: Body */ Payload *models.SignResponse `json:"body,omitempty"` }
SignOK Returns the signature, public key, and correlationId (if provided).
swagger:response signOK
func (*SignOK) SetPayload ¶
func (o *SignOK) SetPayload(payload *models.SignResponse)
SetPayload sets the payload to the sign o k response
func (*SignOK) WithPayload ¶
func (o *SignOK) WithPayload(payload *models.SignResponse) *SignOK
WithPayload adds the payload to the sign o k response
func (*SignOK) WriteResponse ¶
func (o *SignOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type SignParams ¶
type SignParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: body */ Body *models.SignRequest /*Account's short name. Required: true In: path */ Nickname string }
SignParams contains all the bound params for the sign operation typically these are obtained from a http.Request
swagger:parameters Sign
func NewSignParams ¶
func NewSignParams() SignParams
NewSignParams creates a new SignParams object
There are no default values defined in the spec.
func (*SignParams) BindRequest ¶
func (o *SignParams) 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 NewSignParams() beforehand.
type SignURL ¶
type SignURL struct { Nickname string // contains filtered or unexported fields }
SignURL generates an URL for the sign operation
func (*SignURL) SetBasePath ¶
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 (*SignURL) StringFull ¶
StringFull returns the string representation of a complete url
func (*SignURL) 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 SignUnauthorized ¶
SignUnauthorized Unauthorized - The request requires user authentication. Only if no correlationId is provided.
swagger:response signUnauthorized
func NewSignUnauthorized ¶
func NewSignUnauthorized() *SignUnauthorized
NewSignUnauthorized creates SignUnauthorized with default headers values
func (*SignUnauthorized) SetPayload ¶
func (o *SignUnauthorized) SetPayload(payload *models.Error)
SetPayload sets the payload to the sign unauthorized response
func (*SignUnauthorized) WithPayload ¶
func (o *SignUnauthorized) WithPayload(payload *models.Error) *SignUnauthorized
WithPayload adds the payload to the sign unauthorized response
func (*SignUnauthorized) WriteResponse ¶
func (o *SignUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type SignUnprocessableEntity ¶
type SignUnprocessableEntity struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
SignUnprocessableEntity Unprocessable Entity - syntax is correct, but the server was unable to process the contained instructions.
swagger:response signUnprocessableEntity
func NewSignUnprocessableEntity ¶
func NewSignUnprocessableEntity() *SignUnprocessableEntity
NewSignUnprocessableEntity creates SignUnprocessableEntity with default headers values
func (*SignUnprocessableEntity) SetPayload ¶
func (o *SignUnprocessableEntity) SetPayload(payload *models.Error)
SetPayload sets the payload to the sign unprocessable entity response
func (*SignUnprocessableEntity) WithPayload ¶
func (o *SignUnprocessableEntity) WithPayload(payload *models.Error) *SignUnprocessableEntity
WithPayload adds the payload to the sign unprocessable entity response
func (*SignUnprocessableEntity) WriteResponse ¶
func (o *SignUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type TradeRolls ¶
type TradeRolls struct { Context *middleware.Context Handler TradeRollsHandler }
TradeRolls swagger:route POST /api/accounts/{nickname}/rolls tradeRolls
Buy or sell rolls.
func NewTradeRolls ¶
func NewTradeRolls(ctx *middleware.Context, handler TradeRollsHandler) *TradeRolls
NewTradeRolls creates a new http.Handler for the trade rolls operation
func (*TradeRolls) ServeHTTP ¶
func (o *TradeRolls) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type TradeRollsBadRequest ¶
TradeRollsBadRequest Bad request.
swagger:response tradeRollsBadRequest
func NewTradeRollsBadRequest ¶
func NewTradeRollsBadRequest() *TradeRollsBadRequest
NewTradeRollsBadRequest creates TradeRollsBadRequest with default headers values
func (*TradeRollsBadRequest) SetPayload ¶
func (o *TradeRollsBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the trade rolls bad request response
func (*TradeRollsBadRequest) WithPayload ¶
func (o *TradeRollsBadRequest) WithPayload(payload *models.Error) *TradeRollsBadRequest
WithPayload adds the payload to the trade rolls bad request response
func (*TradeRollsBadRequest) WriteResponse ¶
func (o *TradeRollsBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type TradeRollsHandler ¶
type TradeRollsHandler interface {
Handle(TradeRollsParams) middleware.Responder
}
TradeRollsHandler interface for that can handle valid trade rolls params
type TradeRollsHandlerFunc ¶
type TradeRollsHandlerFunc func(TradeRollsParams) middleware.Responder
TradeRollsHandlerFunc turns a function with the right signature into a trade rolls handler
func (TradeRollsHandlerFunc) Handle ¶
func (fn TradeRollsHandlerFunc) Handle(params TradeRollsParams) middleware.Responder
Handle executing the request and returning a response
type TradeRollsInternalServerError ¶
type TradeRollsInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
TradeRollsInternalServerError Internal Server Error - The server has encountered a situation it does not know how to handle.
swagger:response tradeRollsInternalServerError
func NewTradeRollsInternalServerError ¶
func NewTradeRollsInternalServerError() *TradeRollsInternalServerError
NewTradeRollsInternalServerError creates TradeRollsInternalServerError with default headers values
func (*TradeRollsInternalServerError) SetPayload ¶
func (o *TradeRollsInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the trade rolls internal server error response
func (*TradeRollsInternalServerError) WithPayload ¶
func (o *TradeRollsInternalServerError) WithPayload(payload *models.Error) *TradeRollsInternalServerError
WithPayload adds the payload to the trade rolls internal server error response
func (*TradeRollsInternalServerError) WriteResponse ¶
func (o *TradeRollsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type TradeRollsNotFound ¶
TradeRollsNotFound Account Not found.
swagger:response tradeRollsNotFound
func NewTradeRollsNotFound ¶
func NewTradeRollsNotFound() *TradeRollsNotFound
NewTradeRollsNotFound creates TradeRollsNotFound with default headers values
func (*TradeRollsNotFound) SetPayload ¶
func (o *TradeRollsNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the trade rolls not found response
func (*TradeRollsNotFound) WithPayload ¶
func (o *TradeRollsNotFound) WithPayload(payload *models.Error) *TradeRollsNotFound
WithPayload adds the payload to the trade rolls not found response
func (*TradeRollsNotFound) WriteResponse ¶
func (o *TradeRollsNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type TradeRollsOK ¶
type TradeRollsOK struct { /* In: Body */ Payload *models.OperationResponse `json:"body,omitempty"` }
TradeRollsOK Operation id
swagger:response tradeRollsOK
func NewTradeRollsOK ¶
func NewTradeRollsOK() *TradeRollsOK
NewTradeRollsOK creates TradeRollsOK with default headers values
func (*TradeRollsOK) SetPayload ¶
func (o *TradeRollsOK) SetPayload(payload *models.OperationResponse)
SetPayload sets the payload to the trade rolls o k response
func (*TradeRollsOK) WithPayload ¶
func (o *TradeRollsOK) WithPayload(payload *models.OperationResponse) *TradeRollsOK
WithPayload adds the payload to the trade rolls o k response
func (*TradeRollsOK) WriteResponse ¶
func (o *TradeRollsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type TradeRollsParams ¶
type TradeRollsParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: body */ Body *models.RollsRequest /*Account's short name. Required: true In: path */ Nickname string }
TradeRollsParams contains all the bound params for the trade rolls operation typically these are obtained from a http.Request
swagger:parameters TradeRolls
func NewTradeRollsParams ¶
func NewTradeRollsParams() TradeRollsParams
NewTradeRollsParams creates a new TradeRollsParams object
There are no default values defined in the spec.
func (*TradeRollsParams) BindRequest ¶
func (o *TradeRollsParams) 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 NewTradeRollsParams() beforehand.
type TradeRollsURL ¶
type TradeRollsURL struct { Nickname string // contains filtered or unexported fields }
TradeRollsURL generates an URL for the trade rolls operation
func (*TradeRollsURL) Build ¶
func (o *TradeRollsURL) Build() (*url.URL, error)
Build a url path and query string
func (*TradeRollsURL) BuildFull ¶
func (o *TradeRollsURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*TradeRollsURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*TradeRollsURL) SetBasePath ¶
func (o *TradeRollsURL) 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 (*TradeRollsURL) String ¶
func (o *TradeRollsURL) String() string
String returns the string representation of the path with query string
func (*TradeRollsURL) StringFull ¶
func (o *TradeRollsURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*TradeRollsURL) WithBasePath ¶
func (o *TradeRollsURL) WithBasePath(bp string) *TradeRollsURL
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 TradeRollsUnauthorized ¶
TradeRollsUnauthorized Unauthorized - The request requires user authentication.
swagger:response tradeRollsUnauthorized
func NewTradeRollsUnauthorized ¶
func NewTradeRollsUnauthorized() *TradeRollsUnauthorized
NewTradeRollsUnauthorized creates TradeRollsUnauthorized with default headers values
func (*TradeRollsUnauthorized) SetPayload ¶
func (o *TradeRollsUnauthorized) SetPayload(payload *models.Error)
SetPayload sets the payload to the trade rolls unauthorized response
func (*TradeRollsUnauthorized) WithPayload ¶
func (o *TradeRollsUnauthorized) WithPayload(payload *models.Error) *TradeRollsUnauthorized
WithPayload adds the payload to the trade rolls unauthorized response
func (*TradeRollsUnauthorized) WriteResponse ¶
func (o *TradeRollsUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type TradeRollsUnprocessableEntity ¶
type TradeRollsUnprocessableEntity struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
TradeRollsUnprocessableEntity Unprocessable Entity - syntax is correct, but the server was unable to process the contained instructions.
swagger:response tradeRollsUnprocessableEntity
func NewTradeRollsUnprocessableEntity ¶
func NewTradeRollsUnprocessableEntity() *TradeRollsUnprocessableEntity
NewTradeRollsUnprocessableEntity creates TradeRollsUnprocessableEntity with default headers values
func (*TradeRollsUnprocessableEntity) SetPayload ¶
func (o *TradeRollsUnprocessableEntity) SetPayload(payload *models.Error)
SetPayload sets the payload to the trade rolls unprocessable entity response
func (*TradeRollsUnprocessableEntity) WithPayload ¶
func (o *TradeRollsUnprocessableEntity) WithPayload(payload *models.Error) *TradeRollsUnprocessableEntity
WithPayload adds the payload to the trade rolls unprocessable entity response
func (*TradeRollsUnprocessableEntity) WriteResponse ¶
func (o *TradeRollsUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type TransferCoin ¶
type TransferCoin struct { Context *middleware.Context Handler TransferCoinHandler }
TransferCoin swagger:route POST /api/accounts/{nickname}/transfer transferCoin
Transfer coins from the account associated with the provided nickname in the path. Will ask the user to enter its account password.
func NewTransferCoin ¶
func NewTransferCoin(ctx *middleware.Context, handler TransferCoinHandler) *TransferCoin
NewTransferCoin creates a new http.Handler for the transfer coin operation
func (*TransferCoin) ServeHTTP ¶
func (o *TransferCoin) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type TransferCoinBadRequest ¶
TransferCoinBadRequest Bad request.
swagger:response transferCoinBadRequest
func NewTransferCoinBadRequest ¶
func NewTransferCoinBadRequest() *TransferCoinBadRequest
NewTransferCoinBadRequest creates TransferCoinBadRequest with default headers values
func (*TransferCoinBadRequest) SetPayload ¶
func (o *TransferCoinBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the transfer coin bad request response
func (*TransferCoinBadRequest) WithPayload ¶
func (o *TransferCoinBadRequest) WithPayload(payload *models.Error) *TransferCoinBadRequest
WithPayload adds the payload to the transfer coin bad request response
func (*TransferCoinBadRequest) WriteResponse ¶
func (o *TransferCoinBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type TransferCoinHandler ¶
type TransferCoinHandler interface {
Handle(TransferCoinParams) middleware.Responder
}
TransferCoinHandler interface for that can handle valid transfer coin params
type TransferCoinHandlerFunc ¶
type TransferCoinHandlerFunc func(TransferCoinParams) middleware.Responder
TransferCoinHandlerFunc turns a function with the right signature into a transfer coin handler
func (TransferCoinHandlerFunc) Handle ¶
func (fn TransferCoinHandlerFunc) Handle(params TransferCoinParams) middleware.Responder
Handle executing the request and returning a response
type TransferCoinInternalServerError ¶
type TransferCoinInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
TransferCoinInternalServerError Internal Server Error - The server has encountered a situation it does not know how to handle.
swagger:response transferCoinInternalServerError
func NewTransferCoinInternalServerError ¶
func NewTransferCoinInternalServerError() *TransferCoinInternalServerError
NewTransferCoinInternalServerError creates TransferCoinInternalServerError with default headers values
func (*TransferCoinInternalServerError) SetPayload ¶
func (o *TransferCoinInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the transfer coin internal server error response
func (*TransferCoinInternalServerError) WithPayload ¶
func (o *TransferCoinInternalServerError) WithPayload(payload *models.Error) *TransferCoinInternalServerError
WithPayload adds the payload to the transfer coin internal server error response
func (*TransferCoinInternalServerError) WriteResponse ¶
func (o *TransferCoinInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type TransferCoinNotFound ¶
TransferCoinNotFound Account Not found.
swagger:response transferCoinNotFound
func NewTransferCoinNotFound ¶
func NewTransferCoinNotFound() *TransferCoinNotFound
NewTransferCoinNotFound creates TransferCoinNotFound with default headers values
func (*TransferCoinNotFound) SetPayload ¶
func (o *TransferCoinNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the transfer coin not found response
func (*TransferCoinNotFound) WithPayload ¶
func (o *TransferCoinNotFound) WithPayload(payload *models.Error) *TransferCoinNotFound
WithPayload adds the payload to the transfer coin not found response
func (*TransferCoinNotFound) WriteResponse ¶
func (o *TransferCoinNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type TransferCoinOK ¶
type TransferCoinOK struct { /* In: Body */ Payload *models.OperationResponse `json:"body,omitempty"` }
TransferCoinOK Operation id
swagger:response transferCoinOK
func NewTransferCoinOK ¶
func NewTransferCoinOK() *TransferCoinOK
NewTransferCoinOK creates TransferCoinOK with default headers values
func (*TransferCoinOK) SetPayload ¶
func (o *TransferCoinOK) SetPayload(payload *models.OperationResponse)
SetPayload sets the payload to the transfer coin o k response
func (*TransferCoinOK) WithPayload ¶
func (o *TransferCoinOK) WithPayload(payload *models.OperationResponse) *TransferCoinOK
WithPayload adds the payload to the transfer coin o k response
func (*TransferCoinOK) WriteResponse ¶
func (o *TransferCoinOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type TransferCoinParams ¶
type TransferCoinParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: body */ Body *models.TransferRequest /*Account's short name. Required: true In: path */ Nickname string }
TransferCoinParams contains all the bound params for the transfer coin operation typically these are obtained from a http.Request
swagger:parameters TransferCoin
func NewTransferCoinParams ¶
func NewTransferCoinParams() TransferCoinParams
NewTransferCoinParams creates a new TransferCoinParams object
There are no default values defined in the spec.
func (*TransferCoinParams) BindRequest ¶
func (o *TransferCoinParams) 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 NewTransferCoinParams() beforehand.
type TransferCoinURL ¶
type TransferCoinURL struct { Nickname string // contains filtered or unexported fields }
TransferCoinURL generates an URL for the transfer coin operation
func (*TransferCoinURL) Build ¶
func (o *TransferCoinURL) Build() (*url.URL, error)
Build a url path and query string
func (*TransferCoinURL) BuildFull ¶
func (o *TransferCoinURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*TransferCoinURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*TransferCoinURL) SetBasePath ¶
func (o *TransferCoinURL) 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 (*TransferCoinURL) String ¶
func (o *TransferCoinURL) String() string
String returns the string representation of the path with query string
func (*TransferCoinURL) StringFull ¶
func (o *TransferCoinURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*TransferCoinURL) WithBasePath ¶
func (o *TransferCoinURL) WithBasePath(bp string) *TransferCoinURL
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 TransferCoinUnauthorized ¶
TransferCoinUnauthorized Unauthorized - The request requires user authentication.
swagger:response transferCoinUnauthorized
func NewTransferCoinUnauthorized ¶
func NewTransferCoinUnauthorized() *TransferCoinUnauthorized
NewTransferCoinUnauthorized creates TransferCoinUnauthorized with default headers values
func (*TransferCoinUnauthorized) SetPayload ¶
func (o *TransferCoinUnauthorized) SetPayload(payload *models.Error)
SetPayload sets the payload to the transfer coin unauthorized response
func (*TransferCoinUnauthorized) WithPayload ¶
func (o *TransferCoinUnauthorized) WithPayload(payload *models.Error) *TransferCoinUnauthorized
WithPayload adds the payload to the transfer coin unauthorized response
func (*TransferCoinUnauthorized) WriteResponse ¶
func (o *TransferCoinUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type TransferCoinUnprocessableEntity ¶
type TransferCoinUnprocessableEntity struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
TransferCoinUnprocessableEntity Unprocessable Entity - syntax is correct, but the server was unable to process the contained instructions.
swagger:response transferCoinUnprocessableEntity
func NewTransferCoinUnprocessableEntity ¶
func NewTransferCoinUnprocessableEntity() *TransferCoinUnprocessableEntity
NewTransferCoinUnprocessableEntity creates TransferCoinUnprocessableEntity with default headers values
func (*TransferCoinUnprocessableEntity) SetPayload ¶
func (o *TransferCoinUnprocessableEntity) SetPayload(payload *models.Error)
SetPayload sets the payload to the transfer coin unprocessable entity response
func (*TransferCoinUnprocessableEntity) WithPayload ¶
func (o *TransferCoinUnprocessableEntity) WithPayload(payload *models.Error) *TransferCoinUnprocessableEntity
WithPayload adds the payload to the transfer coin unprocessable entity response
func (*TransferCoinUnprocessableEntity) WriteResponse ¶
func (o *TransferCoinUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateAccount ¶
type UpdateAccount struct { Context *middleware.Context Handler UpdateAccountHandler }
UpdateAccount swagger:route PUT /api/accounts/{nickname} updateAccount
Update the account associated with the provided nickname in the path.
func NewUpdateAccount ¶
func NewUpdateAccount(ctx *middleware.Context, handler UpdateAccountHandler) *UpdateAccount
NewUpdateAccount creates a new http.Handler for the update account operation
func (*UpdateAccount) ServeHTTP ¶
func (o *UpdateAccount) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type UpdateAccountBadRequest ¶
type UpdateAccountBadRequest struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
UpdateAccountBadRequest Bad request.
swagger:response updateAccountBadRequest
func NewUpdateAccountBadRequest ¶
func NewUpdateAccountBadRequest() *UpdateAccountBadRequest
NewUpdateAccountBadRequest creates UpdateAccountBadRequest with default headers values
func (*UpdateAccountBadRequest) SetPayload ¶
func (o *UpdateAccountBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the update account bad request response
func (*UpdateAccountBadRequest) WithPayload ¶
func (o *UpdateAccountBadRequest) WithPayload(payload *models.Error) *UpdateAccountBadRequest
WithPayload adds the payload to the update account bad request response
func (*UpdateAccountBadRequest) WriteResponse ¶
func (o *UpdateAccountBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateAccountHandler ¶
type UpdateAccountHandler interface {
Handle(UpdateAccountParams) middleware.Responder
}
UpdateAccountHandler interface for that can handle valid update account params
type UpdateAccountHandlerFunc ¶
type UpdateAccountHandlerFunc func(UpdateAccountParams) middleware.Responder
UpdateAccountHandlerFunc turns a function with the right signature into a update account handler
func (UpdateAccountHandlerFunc) Handle ¶
func (fn UpdateAccountHandlerFunc) Handle(params UpdateAccountParams) middleware.Responder
Handle executing the request and returning a response
type UpdateAccountInternalServerError ¶
type UpdateAccountInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
UpdateAccountInternalServerError Internal Server Error - The server has encountered a situation it does not know how to handle.
swagger:response updateAccountInternalServerError
func NewUpdateAccountInternalServerError ¶
func NewUpdateAccountInternalServerError() *UpdateAccountInternalServerError
NewUpdateAccountInternalServerError creates UpdateAccountInternalServerError with default headers values
func (*UpdateAccountInternalServerError) SetPayload ¶
func (o *UpdateAccountInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the update account internal server error response
func (*UpdateAccountInternalServerError) WithPayload ¶
func (o *UpdateAccountInternalServerError) WithPayload(payload *models.Error) *UpdateAccountInternalServerError
WithPayload adds the payload to the update account internal server error response
func (*UpdateAccountInternalServerError) WriteResponse ¶
func (o *UpdateAccountInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateAccountNotFound ¶
UpdateAccountNotFound Not found.
swagger:response updateAccountNotFound
func NewUpdateAccountNotFound ¶
func NewUpdateAccountNotFound() *UpdateAccountNotFound
NewUpdateAccountNotFound creates UpdateAccountNotFound with default headers values
func (*UpdateAccountNotFound) SetPayload ¶
func (o *UpdateAccountNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the update account not found response
func (*UpdateAccountNotFound) WithPayload ¶
func (o *UpdateAccountNotFound) WithPayload(payload *models.Error) *UpdateAccountNotFound
WithPayload adds the payload to the update account not found response
func (*UpdateAccountNotFound) WriteResponse ¶
func (o *UpdateAccountNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateAccountOK ¶
UpdateAccountOK Account edited successfully.
swagger:response updateAccountOK
func NewUpdateAccountOK ¶
func NewUpdateAccountOK() *UpdateAccountOK
NewUpdateAccountOK creates UpdateAccountOK with default headers values
func (*UpdateAccountOK) SetPayload ¶
func (o *UpdateAccountOK) SetPayload(payload *models.Account)
SetPayload sets the payload to the update account o k response
func (*UpdateAccountOK) WithPayload ¶
func (o *UpdateAccountOK) WithPayload(payload *models.Account) *UpdateAccountOK
WithPayload adds the payload to the update account o k response
func (*UpdateAccountOK) WriteResponse ¶
func (o *UpdateAccountOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateAccountParams ¶
type UpdateAccountParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: body */ Body *models.UpdateAccountRequest /*Account's short name. Required: true In: path */ Nickname string }
UpdateAccountParams contains all the bound params for the update account operation typically these are obtained from a http.Request
swagger:parameters UpdateAccount
func NewUpdateAccountParams ¶
func NewUpdateAccountParams() UpdateAccountParams
NewUpdateAccountParams creates a new UpdateAccountParams object
There are no default values defined in the spec.
func (*UpdateAccountParams) BindRequest ¶
func (o *UpdateAccountParams) 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 NewUpdateAccountParams() beforehand.
type UpdateAccountURL ¶
type UpdateAccountURL struct { Nickname string // contains filtered or unexported fields }
UpdateAccountURL generates an URL for the update account operation
func (*UpdateAccountURL) Build ¶
func (o *UpdateAccountURL) Build() (*url.URL, error)
Build a url path and query string
func (*UpdateAccountURL) BuildFull ¶
func (o *UpdateAccountURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*UpdateAccountURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*UpdateAccountURL) SetBasePath ¶
func (o *UpdateAccountURL) 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 (*UpdateAccountURL) String ¶
func (o *UpdateAccountURL) String() string
String returns the string representation of the path with query string
func (*UpdateAccountURL) StringFull ¶
func (o *UpdateAccountURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*UpdateAccountURL) WithBasePath ¶
func (o *UpdateAccountURL) WithBasePath(bp string) *UpdateAccountURL
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 UpdateAccountUnprocessableEntity ¶
type UpdateAccountUnprocessableEntity struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
UpdateAccountUnprocessableEntity Unprocessable Entity - syntax is correct, but the server was unable to process the contained instructions.
swagger:response updateAccountUnprocessableEntity
func NewUpdateAccountUnprocessableEntity ¶
func NewUpdateAccountUnprocessableEntity() *UpdateAccountUnprocessableEntity
NewUpdateAccountUnprocessableEntity creates UpdateAccountUnprocessableEntity with default headers values
func (*UpdateAccountUnprocessableEntity) SetPayload ¶
func (o *UpdateAccountUnprocessableEntity) SetPayload(payload *models.Error)
SetPayload sets the payload to the update account unprocessable entity response
func (*UpdateAccountUnprocessableEntity) WithPayload ¶
func (o *UpdateAccountUnprocessableEntity) WithPayload(payload *models.Error) *UpdateAccountUnprocessableEntity
WithPayload adds the payload to the update account unprocessable entity response
func (*UpdateAccountUnprocessableEntity) WriteResponse ¶
func (o *UpdateAccountUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type WebApp ¶
type WebApp struct { Context *middleware.Context Handler WebAppHandler }
WebApp swagger:route GET /web-app/{resource} webApp
Route for the ReactJS front-end web application (in /web-frontend)
func NewWebApp ¶
func NewWebApp(ctx *middleware.Context, handler WebAppHandler) *WebApp
NewWebApp creates a new http.Handler for the web app operation
type WebAppHandler ¶
type WebAppHandler interface {
Handle(WebAppParams) middleware.Responder
}
WebAppHandler interface for that can handle valid web app params
type WebAppHandlerFunc ¶
type WebAppHandlerFunc func(WebAppParams) middleware.Responder
WebAppHandlerFunc turns a function with the right signature into a web app handler
func (WebAppHandlerFunc) Handle ¶
func (fn WebAppHandlerFunc) Handle(params WebAppParams) middleware.Responder
Handle executing the request and returning a response
type WebAppNotFound ¶
WebAppNotFound Resource not found.
swagger:response webAppNotFound
func NewWebAppNotFound ¶
func NewWebAppNotFound() *WebAppNotFound
NewWebAppNotFound creates WebAppNotFound with default headers values
func (*WebAppNotFound) SetPayload ¶
func (o *WebAppNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the web app not found response
func (*WebAppNotFound) WithPayload ¶
func (o *WebAppNotFound) WithPayload(payload *models.Error) *WebAppNotFound
WithPayload adds the payload to the web app not found response
func (*WebAppNotFound) WriteResponse ¶
func (o *WebAppNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type WebAppOK ¶
type WebAppOK struct { }
WebAppOK Page found
swagger:response webAppOK
func NewWebAppOK ¶
func NewWebAppOK() *WebAppOK
NewWebAppOK creates WebAppOK with default headers values
func (*WebAppOK) WriteResponse ¶
func (o *WebAppOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type WebAppParams ¶
type WebAppParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Website resource. Required: true In: path Default: "index.html" */ Resource string }
WebAppParams contains all the bound params for the web app operation typically these are obtained from a http.Request
swagger:parameters webApp
func NewWebAppParams ¶
func NewWebAppParams() WebAppParams
NewWebAppParams creates a new WebAppParams object with the default values initialized.
func (*WebAppParams) BindRequest ¶
func (o *WebAppParams) 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 NewWebAppParams() beforehand.
type WebAppURL ¶
type WebAppURL struct { Resource string // contains filtered or unexported fields }
WebAppURL generates an URL for the web app operation
func (*WebAppURL) SetBasePath ¶
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 (*WebAppURL) StringFull ¶
StringFull returns the string representation of a complete url
func (*WebAppURL) 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
Source Files ¶
- account_list.go
- account_list_parameters.go
- account_list_responses.go
- account_list_urlbuilder.go
- add_asset.go
- add_asset_parameters.go
- add_asset_responses.go
- add_asset_urlbuilder.go
- backup_account.go
- backup_account_parameters.go
- backup_account_responses.go
- backup_account_urlbuilder.go
- create_account.go
- create_account_parameters.go
- create_account_responses.go
- create_account_urlbuilder.go
- default_page.go
- default_page_parameters.go
- default_page_responses.go
- default_page_urlbuilder.go
- delete_account.go
- delete_account_parameters.go
- delete_account_responses.go
- delete_account_urlbuilder.go
- delete_asset.go
- delete_asset_parameters.go
- delete_asset_responses.go
- delete_asset_urlbuilder.go
- export_account_file.go
- export_account_file_parameters.go
- export_account_file_responses.go
- export_account_file_urlbuilder.go
- get_account.go
- get_account_parameters.go
- get_account_responses.go
- get_account_urlbuilder.go
- get_all_assets.go
- get_all_assets_parameters.go
- get_all_assets_responses.go
- get_all_assets_urlbuilder.go
- import_account.go
- import_account_parameters.go
- import_account_responses.go
- import_account_urlbuilder.go
- massa_wallet_api.go
- sign.go
- sign_message.go
- sign_message_parameters.go
- sign_message_responses.go
- sign_message_urlbuilder.go
- sign_parameters.go
- sign_responses.go
- sign_urlbuilder.go
- trade_rolls.go
- trade_rolls_parameters.go
- trade_rolls_responses.go
- trade_rolls_urlbuilder.go
- transfer_coin.go
- transfer_coin_parameters.go
- transfer_coin_responses.go
- transfer_coin_urlbuilder.go
- update_account.go
- update_account_parameters.go
- update_account_responses.go
- update_account_urlbuilder.go
- web_app.go
- web_app_parameters.go
- web_app_responses.go
- web_app_urlbuilder.go