operations

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const AccountListBadRequestCode int = 400

AccountListBadRequestCode is the HTTP code returned for type AccountListBadRequest

View Source
const AccountListInternalServerErrorCode int = 500

AccountListInternalServerErrorCode is the HTTP code returned for type AccountListInternalServerError

View Source
const AccountListOKCode int = 200

AccountListOKCode is the HTTP code returned for type AccountListOK

View Source
const AddAssetBadRequestCode int = 400

AddAssetBadRequestCode is the HTTP code returned for type AddAssetBadRequest

View Source
const AddAssetCreatedCode int = 201

AddAssetCreatedCode is the HTTP code returned for type AddAssetCreated

View Source
const AddAssetInternalServerErrorCode int = 500

AddAssetInternalServerErrorCode is the HTTP code returned for type AddAssetInternalServerError

View Source
const AddAssetNotFoundCode int = 404

AddAssetNotFoundCode is the HTTP code returned for type AddAssetNotFound

View Source
const AddAssetUnprocessableEntityCode int = 422

AddAssetUnprocessableEntityCode is the HTTP code returned for type AddAssetUnprocessableEntity

View Source
const BackupAccountBadRequestCode int = 400

BackupAccountBadRequestCode is the HTTP code returned for type BackupAccountBadRequest

View Source
const BackupAccountInternalServerErrorCode int = 500

BackupAccountInternalServerErrorCode is the HTTP code returned for type BackupAccountInternalServerError

View Source
const BackupAccountNoContentCode int = 204

BackupAccountNoContentCode is the HTTP code returned for type BackupAccountNoContent

View Source
const BackupAccountNotFoundCode int = 404

BackupAccountNotFoundCode is the HTTP code returned for type BackupAccountNotFound

View Source
const BackupAccountUnauthorizedCode int = 401

BackupAccountUnauthorizedCode is the HTTP code returned for type BackupAccountUnauthorized

View Source
const BackupAccountUnprocessableEntityCode int = 422

BackupAccountUnprocessableEntityCode is the HTTP code returned for type BackupAccountUnprocessableEntity

View Source
const CreateAccountBadRequestCode int = 400

CreateAccountBadRequestCode is the HTTP code returned for type CreateAccountBadRequest

View Source
const CreateAccountInternalServerErrorCode int = 500

CreateAccountInternalServerErrorCode is the HTTP code returned for type CreateAccountInternalServerError

View Source
const CreateAccountOKCode int = 200

CreateAccountOKCode is the HTTP code returned for type CreateAccountOK

View Source
const CreateAccountUnauthorizedCode int = 401

CreateAccountUnauthorizedCode is the HTTP code returned for type CreateAccountUnauthorized

View Source
const CreateAccountUnprocessableEntityCode int = 422

CreateAccountUnprocessableEntityCode is the HTTP code returned for type CreateAccountUnprocessableEntity

View Source
const DefaultPageMovedPermanentlyCode int = 301

DefaultPageMovedPermanentlyCode is the HTTP code returned for type DefaultPageMovedPermanently

View Source
const DeleteAccountBadRequestCode int = 400

DeleteAccountBadRequestCode is the HTTP code returned for type DeleteAccountBadRequest

View Source
const DeleteAccountInternalServerErrorCode int = 500

DeleteAccountInternalServerErrorCode is the HTTP code returned for type DeleteAccountInternalServerError

View Source
const DeleteAccountNoContentCode int = 204

DeleteAccountNoContentCode is the HTTP code returned for type DeleteAccountNoContent

View Source
const DeleteAccountNotFoundCode int = 404

DeleteAccountNotFoundCode is the HTTP code returned for type DeleteAccountNotFound

View Source
const DeleteAccountUnauthorizedCode int = 401

DeleteAccountUnauthorizedCode is the HTTP code returned for type DeleteAccountUnauthorized

View Source
const DeleteAssetBadRequestCode int = 400

DeleteAssetBadRequestCode is the HTTP code returned for type DeleteAssetBadRequest

View Source
const DeleteAssetInternalServerErrorCode int = 500

DeleteAssetInternalServerErrorCode is the HTTP code returned for type DeleteAssetInternalServerError

View Source
const DeleteAssetNoContentCode int = 204

DeleteAssetNoContentCode is the HTTP code returned for type DeleteAssetNoContent

View Source
const DeleteAssetNotFoundCode int = 404

DeleteAssetNotFoundCode is the HTTP code returned for type DeleteAssetNotFound

View Source
const ExportAccountFileBadRequestCode int = 400

ExportAccountFileBadRequestCode is the HTTP code returned for type ExportAccountFileBadRequest

View Source
const ExportAccountFileInternalServerErrorCode int = 500

ExportAccountFileInternalServerErrorCode is the HTTP code returned for type ExportAccountFileInternalServerError

View Source
const ExportAccountFileNotFoundCode int = 404

ExportAccountFileNotFoundCode is the HTTP code returned for type ExportAccountFileNotFound

View Source
const ExportAccountFileOKCode int = 200

ExportAccountFileOKCode is the HTTP code returned for type ExportAccountFileOK

View Source
const GetAccountBadRequestCode int = 400

GetAccountBadRequestCode is the HTTP code returned for type GetAccountBadRequest

View Source
const GetAccountInternalServerErrorCode int = 500

GetAccountInternalServerErrorCode is the HTTP code returned for type GetAccountInternalServerError

View Source
const GetAccountNotFoundCode int = 404

GetAccountNotFoundCode is the HTTP code returned for type GetAccountNotFound

View Source
const GetAccountOKCode int = 200

GetAccountOKCode is the HTTP code returned for type GetAccountOK

View Source
const GetAccountUnauthorizedCode int = 401

GetAccountUnauthorizedCode is the HTTP code returned for type GetAccountUnauthorized

View Source
const GetAllAssetsInternalServerErrorCode int = 500

GetAllAssetsInternalServerErrorCode is the HTTP code returned for type GetAllAssetsInternalServerError

View Source
const GetAllAssetsOKCode int = 200

GetAllAssetsOKCode is the HTTP code returned for type GetAllAssetsOK

View Source
const ImportAccountBadRequestCode int = 400

ImportAccountBadRequestCode is the HTTP code returned for type ImportAccountBadRequest

View Source
const ImportAccountInternalServerErrorCode int = 500

ImportAccountInternalServerErrorCode is the HTTP code returned for type ImportAccountInternalServerError

View Source
const ImportAccountOKCode int = 200

ImportAccountOKCode is the HTTP code returned for type ImportAccountOK

View Source
const ImportAccountUnauthorizedCode int = 401

ImportAccountUnauthorizedCode is the HTTP code returned for type ImportAccountUnauthorized

View Source
const ImportAccountUnprocessableEntityCode int = 422

ImportAccountUnprocessableEntityCode is the HTTP code returned for type ImportAccountUnprocessableEntity

View Source
const SignBadRequestCode int = 400

SignBadRequestCode is the HTTP code returned for type SignBadRequest

View Source
const SignInternalServerErrorCode int = 500

SignInternalServerErrorCode is the HTTP code returned for type SignInternalServerError

View Source
const SignMessageBadRequestCode int = 400

SignMessageBadRequestCode is the HTTP code returned for type SignMessageBadRequest

View Source
const SignMessageInternalServerErrorCode int = 500

SignMessageInternalServerErrorCode is the HTTP code returned for type SignMessageInternalServerError

View Source
const SignMessageNotFoundCode int = 404

SignMessageNotFoundCode is the HTTP code returned for type SignMessageNotFound

View Source
const SignMessageOKCode int = 200

SignMessageOKCode is the HTTP code returned for type SignMessageOK

View Source
const SignMessageUnauthorizedCode int = 401

SignMessageUnauthorizedCode is the HTTP code returned for type SignMessageUnauthorized

View Source
const SignMessageUnprocessableEntityCode int = 422

SignMessageUnprocessableEntityCode is the HTTP code returned for type SignMessageUnprocessableEntity

View Source
const SignNotFoundCode int = 404

SignNotFoundCode is the HTTP code returned for type SignNotFound

View Source
const SignOKCode int = 200

SignOKCode is the HTTP code returned for type SignOK

View Source
const SignUnauthorizedCode int = 401

SignUnauthorizedCode is the HTTP code returned for type SignUnauthorized

View Source
const SignUnprocessableEntityCode int = 422

SignUnprocessableEntityCode is the HTTP code returned for type SignUnprocessableEntity

View Source
const TradeRollsBadRequestCode int = 400

TradeRollsBadRequestCode is the HTTP code returned for type TradeRollsBadRequest

View Source
const TradeRollsInternalServerErrorCode int = 500

TradeRollsInternalServerErrorCode is the HTTP code returned for type TradeRollsInternalServerError

View Source
const TradeRollsNotFoundCode int = 404

TradeRollsNotFoundCode is the HTTP code returned for type TradeRollsNotFound

View Source
const TradeRollsOKCode int = 200

TradeRollsOKCode is the HTTP code returned for type TradeRollsOK

View Source
const TradeRollsUnauthorizedCode int = 401

TradeRollsUnauthorizedCode is the HTTP code returned for type TradeRollsUnauthorized

View Source
const TradeRollsUnprocessableEntityCode int = 422

TradeRollsUnprocessableEntityCode is the HTTP code returned for type TradeRollsUnprocessableEntity

View Source
const TransferCoinBadRequestCode int = 400

TransferCoinBadRequestCode is the HTTP code returned for type TransferCoinBadRequest

View Source
const TransferCoinInternalServerErrorCode int = 500

TransferCoinInternalServerErrorCode is the HTTP code returned for type TransferCoinInternalServerError

View Source
const TransferCoinNotFoundCode int = 404

TransferCoinNotFoundCode is the HTTP code returned for type TransferCoinNotFound

View Source
const TransferCoinOKCode int = 200

TransferCoinOKCode is the HTTP code returned for type TransferCoinOK

View Source
const TransferCoinUnauthorizedCode int = 401

TransferCoinUnauthorizedCode is the HTTP code returned for type TransferCoinUnauthorized

View Source
const TransferCoinUnprocessableEntityCode int = 422

TransferCoinUnprocessableEntityCode is the HTTP code returned for type TransferCoinUnprocessableEntity

View Source
const UpdateAccountBadRequestCode int = 400

UpdateAccountBadRequestCode is the HTTP code returned for type UpdateAccountBadRequest

View Source
const UpdateAccountInternalServerErrorCode int = 500

UpdateAccountInternalServerErrorCode is the HTTP code returned for type UpdateAccountInternalServerError

View Source
const UpdateAccountNotFoundCode int = 404

UpdateAccountNotFoundCode is the HTTP code returned for type UpdateAccountNotFound

View Source
const UpdateAccountOKCode int = 200

UpdateAccountOKCode is the HTTP code returned for type UpdateAccountOK

View Source
const UpdateAccountUnprocessableEntityCode int = 422

UpdateAccountUnprocessableEntityCode is the HTTP code returned for type UpdateAccountUnprocessableEntity

View Source
const WebAppNotFoundCode int = 404

WebAppNotFoundCode is the HTTP code returned for type WebAppNotFound

View Source
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

type AccountListBadRequest struct {

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

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

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

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

type AccountListOK struct {

	/*
	  In: Body
	*/
	Payload []*models.Account `json:"body,omitempty"`
}

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

type AccountListParams struct {

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

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

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

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

func (*AddAsset) ServeHTTP added in v0.2.1

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

type AddAssetBadRequest added in v0.2.1

type AddAssetBadRequest struct {

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

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

type AddAssetCreated struct {

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

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

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

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

type AddAssetNotFound struct {

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

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

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

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

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

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

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

type BackupAccountNotFound struct {

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

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

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

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

type BackupAccountUnauthorized struct {

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

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

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

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

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

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

type CreateAccountOK struct {

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

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

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

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

type CreateAccountUnauthorized struct {

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

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

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

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

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

type DefaultPageParams struct {

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

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

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

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

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

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

DeleteAccountNoContent Account deleted successfully.

swagger:response deleteAccountNoContent

func NewDeleteAccountNoContent

func NewDeleteAccountNoContent() *DeleteAccountNoContent

NewDeleteAccountNoContent creates DeleteAccountNoContent with default headers values

func (*DeleteAccountNoContent) WriteResponse

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

WriteResponse to the client

type DeleteAccountNotFound

type DeleteAccountNotFound struct {

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

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

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

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

type DeleteAccountUnauthorized struct {

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

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

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

type DeleteAssetBadRequest struct {

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

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

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

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

type DeleteAssetNotFound struct {

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

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

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

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

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

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

WithPayload adds the payload to the export account file internal server error response

func (*ExportAccountFileInternalServerError) WriteResponse

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

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

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

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

type GetAccountBadRequest struct {

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

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

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

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

type GetAccountNotFound struct {

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

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

type GetAccountOK struct {

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

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

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

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

type GetAccountUnauthorized struct {

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

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

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

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

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

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

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

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

type ImportAccountOK struct {

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

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

type ImportAccountParams struct {

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

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

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

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

type ImportAccountUnauthorized struct {

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

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

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

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

func (*Sign) ServeHTTP

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

type SignBadRequest

type SignBadRequest struct {

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

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

type SignMessageBadRequest struct {

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

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

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

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

type SignMessageNotFound struct {

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

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

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

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

type SignMessageUnauthorized struct {

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

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

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

type SignNotFound struct {

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

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 NewSignOK

func NewSignOK() *SignOK

NewSignOK creates SignOK with default headers values

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:"-"`

	/*Whether to allow user to edit the fee value in the sign prompt.
	  In: query
	  Default: false
	*/
	AllowFeeEdition *bool
	/*
	  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 with the default values initialized.

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

	AllowFeeEdition *bool
	// contains filtered or unexported fields
}

SignURL generates an URL for the sign operation

func (*SignURL) Build

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

Build a url path and query string

func (*SignURL) BuildFull

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

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

func (*SignURL) Must

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

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

func (*SignURL) SetBasePath

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

func (o *SignURL) String() string

String returns the string representation of the path with query string

func (*SignURL) StringFull

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

StringFull returns the string representation of a complete url

func (*SignURL) WithBasePath

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

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

type SignUnauthorized struct {

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

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

type TradeRollsBadRequest struct {

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

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

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

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

type TradeRollsNotFound struct {

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

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

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

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

type TradeRollsUnauthorized struct {

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

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

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

type TransferCoinBadRequest struct {

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

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

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

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

type TransferCoinNotFound struct {

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

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

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

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

type TransferCoinUnauthorized struct {

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

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

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

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

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

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

type UpdateAccountNotFound struct {

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

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

type UpdateAccountOK struct {

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

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

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

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

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

func (*WebApp) ServeHTTP

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

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

Handle executing the request and returning a response

type WebAppNotFound

type WebAppNotFound struct {

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

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) Build

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

Build a url path and query string

func (*WebAppURL) BuildFull

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

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

func (*WebAppURL) Must

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

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

func (*WebAppURL) SetBasePath

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

func (o *WebAppURL) String() string

String returns the string representation of the path with query string

func (*WebAppURL) StringFull

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

StringFull returns the string representation of a complete url

func (*WebAppURL) WithBasePath

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL