Documentation ¶
Overview ¶
Package e2e provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen version v1.13.4 DO NOT EDIT.
Index ¶
- func NewAuditorAccountRequest(server string, id Id, params *AuditorAccountParams) (*http.Request, error)
- func NewAuditorTransactionsRequest(server string, id Id) (*http.Request, error)
- func NewHealthzRequest(server string) (*http.Request, error)
- func NewIssueRequest(server string, body IssueJSONRequestBody) (*http.Request, error)
- func NewIssueRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewOwnerAccountRequest(server string, id Id, params *OwnerAccountParams) (*http.Request, error)
- func NewOwnerAccountsRequest(server string) (*http.Request, error)
- func NewOwnerTransactionsRequest(server string, id Id) (*http.Request, error)
- func NewReadyzRequest(server string) (*http.Request, error)
- func NewRedeemRequest(server string, id Id, body RedeemJSONRequestBody) (*http.Request, error)
- func NewRedeemRequestWithBody(server string, id Id, contentType string, body io.Reader) (*http.Request, error)
- func NewTransferRequest(server string, id Id, body TransferJSONRequestBody) (*http.Request, error)
- func NewTransferRequestWithBody(server string, id Id, contentType string, body io.Reader) (*http.Request, error)
- type Account
- type AccountSuccess
- type AccountsSuccess
- type Amount
- type AuditorAccountParams
- type AuditorAccountResponse
- type AuditorTransactionsResponse
- type Client
- func (c *Client) AuditorAccount(ctx context.Context, id Id, params *AuditorAccountParams, ...) (*http.Response, error)
- func (c *Client) AuditorTransactions(ctx context.Context, id Id, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) Healthz(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) Issue(ctx context.Context, body IssueJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) IssueWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) OwnerAccount(ctx context.Context, id Id, params *OwnerAccountParams, ...) (*http.Response, error)
- func (c *Client) OwnerAccounts(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) OwnerTransactions(ctx context.Context, id Id, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) Readyz(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) Redeem(ctx context.Context, id Id, body RedeemJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) RedeemWithBody(ctx context.Context, id Id, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) Transfer(ctx context.Context, id Id, body TransferJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) TransferWithBody(ctx context.Context, id Id, contentType string, body io.Reader, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) AuditorAccountWithResponse(ctx context.Context, id Id, params *AuditorAccountParams, ...) (*AuditorAccountResponse, error)
- func (c *ClientWithResponses) AuditorTransactionsWithResponse(ctx context.Context, id Id, reqEditors ...RequestEditorFn) (*AuditorTransactionsResponse, error)
- func (c *ClientWithResponses) HealthzWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthzResponse, error)
- func (c *ClientWithResponses) IssueWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*IssueResponse, error)
- func (c *ClientWithResponses) IssueWithResponse(ctx context.Context, body IssueJSONRequestBody, reqEditors ...RequestEditorFn) (*IssueResponse, error)
- func (c *ClientWithResponses) OwnerAccountWithResponse(ctx context.Context, id Id, params *OwnerAccountParams, ...) (*OwnerAccountResponse, error)
- func (c *ClientWithResponses) OwnerAccountsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*OwnerAccountsResponse, error)
- func (c *ClientWithResponses) OwnerTransactionsWithResponse(ctx context.Context, id Id, reqEditors ...RequestEditorFn) (*OwnerTransactionsResponse, error)
- func (c *ClientWithResponses) ReadyzWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ReadyzResponse, error)
- func (c *ClientWithResponses) RedeemWithBodyWithResponse(ctx context.Context, id Id, contentType string, body io.Reader, ...) (*RedeemResponse, error)
- func (c *ClientWithResponses) RedeemWithResponse(ctx context.Context, id Id, body RedeemJSONRequestBody, ...) (*RedeemResponse, error)
- func (c *ClientWithResponses) TransferWithBodyWithResponse(ctx context.Context, id Id, contentType string, body io.Reader, ...) (*TransferResponse, error)
- func (c *ClientWithResponses) TransferWithResponse(ctx context.Context, id Id, body TransferJSONRequestBody, ...) (*TransferResponse, error)
- type ClientWithResponsesInterface
- type Code
- type Counterparty
- type Error
- type ErrorResponse
- type HealthSuccess
- type HealthzResponse
- type HttpRequestDoer
- type Id
- type IssueJSONRequestBody
- type IssueResponse
- type IssueSuccess
- type OwnerAccountParams
- type OwnerAccountResponse
- type OwnerAccountsResponse
- type OwnerTransactionsResponse
- type ReadyzResponse
- type RedeemJSONRequestBody
- type RedeemRequest
- type RedeemResponse
- type RedeemSuccess
- type RequestEditorFn
- type TransactionRecord
- type TransactionsSuccess
- type TransferJSONRequestBody
- type TransferRequest
- type TransferResponse
- type TransferSuccess
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAuditorAccountRequest ¶
func NewAuditorAccountRequest(server string, id Id, params *AuditorAccountParams) (*http.Request, error)
NewAuditorAccountRequest generates requests for AuditorAccount
func NewAuditorTransactionsRequest ¶
NewAuditorTransactionsRequest generates requests for AuditorTransactions
func NewHealthzRequest ¶
NewHealthzRequest generates requests for Healthz
func NewIssueRequest ¶
func NewIssueRequest(server string, body IssueJSONRequestBody) (*http.Request, error)
NewIssueRequest calls the generic Issue builder with application/json body
func NewIssueRequestWithBody ¶
func NewIssueRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewIssueRequestWithBody generates requests for Issue with any type of body
func NewOwnerAccountRequest ¶
func NewOwnerAccountRequest(server string, id Id, params *OwnerAccountParams) (*http.Request, error)
NewOwnerAccountRequest generates requests for OwnerAccount
func NewOwnerAccountsRequest ¶
NewOwnerAccountsRequest generates requests for OwnerAccounts
func NewOwnerTransactionsRequest ¶
NewOwnerTransactionsRequest generates requests for OwnerTransactions
func NewReadyzRequest ¶
NewReadyzRequest generates requests for Readyz
func NewRedeemRequest ¶
NewRedeemRequest calls the generic Redeem builder with application/json body
func NewRedeemRequestWithBody ¶
func NewRedeemRequestWithBody(server string, id Id, contentType string, body io.Reader) (*http.Request, error)
NewRedeemRequestWithBody generates requests for Redeem with any type of body
func NewTransferRequest ¶
NewTransferRequest calls the generic Transfer builder with application/json body
Types ¶
type Account ¶
type Account struct { // Balance balance in base units for each currency Balance []Amount `json:"balance"` // Id account id as registered at the Certificate Authority Id string `json:"id"` }
Account Information about an account and its balance
type AccountSuccess ¶
type AccountSuccess struct { Message string `json:"message"` // Payload Information about an account and its balance Payload Account `json:"payload"` }
AccountSuccess defines model for AccountSuccess.
type AccountsSuccess ¶
AccountsSuccess defines model for AccountsSuccess.
type Amount ¶
type Amount struct { // Code the code of the token Code string `json:"code"` // Value value in base units (usually cents) Value int64 `json:"value"` }
Amount The amount to issue, transfer or redeem.
type AuditorAccountParams ¶
type AuditorAccountParams struct {
Code *Code `form:"code,omitempty" json:"code,omitempty"`
}
AuditorAccountParams defines parameters for AuditorAccount.
type AuditorAccountResponse ¶
type AuditorAccountResponse struct { Body []byte HTTPResponse *http.Response JSON200 *AccountSuccess JSONDefault *ErrorResponse }
func ParseAuditorAccountResponse ¶
func ParseAuditorAccountResponse(rsp *http.Response) (*AuditorAccountResponse, error)
ParseAuditorAccountResponse parses an HTTP response from a AuditorAccountWithResponse call
func (AuditorAccountResponse) Status ¶
func (r AuditorAccountResponse) Status() string
Status returns HTTPResponse.Status
func (AuditorAccountResponse) StatusCode ¶
func (r AuditorAccountResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AuditorTransactionsResponse ¶
type AuditorTransactionsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *TransactionsSuccess JSONDefault *ErrorResponse }
func ParseAuditorTransactionsResponse ¶
func ParseAuditorTransactionsResponse(rsp *http.Response) (*AuditorTransactionsResponse, error)
ParseAuditorTransactionsResponse parses an HTTP response from a AuditorTransactionsWithResponse call
func (AuditorTransactionsResponse) Status ¶
func (r AuditorTransactionsResponse) Status() string
Status returns HTTPResponse.Status
func (AuditorTransactionsResponse) StatusCode ¶
func (r AuditorTransactionsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Client ¶
type Client struct { // The endpoint of the server conforming to this interface, with scheme, // https://api.deepmap.com for example. This can contain a path relative // to the server, such as https://api.deepmap.com/dev-test, and all the // paths in the swagger spec will be appended to the server. Server string // Doer for performing requests, typically a *http.Client with any // customized settings, such as certificate chains. Client HttpRequestDoer // A list of callbacks for modifying requests which are generated before sending over // the network. RequestEditors []RequestEditorFn }
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) AuditorAccount ¶
func (c *Client) AuditorAccount(ctx context.Context, id Id, params *AuditorAccountParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AuditorTransactions ¶
func (*Client) Issue ¶
func (c *Client) Issue(ctx context.Context, body IssueJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) IssueWithBody ¶
func (*Client) OwnerAccount ¶
func (c *Client) OwnerAccount(ctx context.Context, id Id, params *OwnerAccountParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) OwnerAccounts ¶
func (*Client) OwnerTransactions ¶
func (*Client) Redeem ¶
func (c *Client) Redeem(ctx context.Context, id Id, body RedeemJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) RedeemWithBody ¶
type ClientInterface ¶
type ClientInterface interface { // AuditorAccount request AuditorAccount(ctx context.Context, id Id, params *AuditorAccountParams, reqEditors ...RequestEditorFn) (*http.Response, error) // AuditorTransactions request AuditorTransactions(ctx context.Context, id Id, reqEditors ...RequestEditorFn) (*http.Response, error) // Healthz request Healthz(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // IssueWithBody request with any body IssueWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) Issue(ctx context.Context, body IssueJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // OwnerAccounts request OwnerAccounts(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // OwnerAccount request OwnerAccount(ctx context.Context, id Id, params *OwnerAccountParams, reqEditors ...RequestEditorFn) (*http.Response, error) // RedeemWithBody request with any body RedeemWithBody(ctx context.Context, id Id, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) Redeem(ctx context.Context, id Id, body RedeemJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // OwnerTransactions request OwnerTransactions(ctx context.Context, id Id, reqEditors ...RequestEditorFn) (*http.Response, error) // TransferWithBody request with any body TransferWithBody(ctx context.Context, id Id, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) Transfer(ctx context.Context, id Id, body TransferJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // Readyz request Readyz(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) }
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) AuditorAccountWithResponse ¶
func (c *ClientWithResponses) AuditorAccountWithResponse(ctx context.Context, id Id, params *AuditorAccountParams, reqEditors ...RequestEditorFn) (*AuditorAccountResponse, error)
AuditorAccountWithResponse request returning *AuditorAccountResponse
func (*ClientWithResponses) AuditorTransactionsWithResponse ¶
func (c *ClientWithResponses) AuditorTransactionsWithResponse(ctx context.Context, id Id, reqEditors ...RequestEditorFn) (*AuditorTransactionsResponse, error)
AuditorTransactionsWithResponse request returning *AuditorTransactionsResponse
func (*ClientWithResponses) HealthzWithResponse ¶
func (c *ClientWithResponses) HealthzWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthzResponse, error)
HealthzWithResponse request returning *HealthzResponse
func (*ClientWithResponses) IssueWithBodyWithResponse ¶
func (c *ClientWithResponses) IssueWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IssueResponse, error)
IssueWithBodyWithResponse request with arbitrary body returning *IssueResponse
func (*ClientWithResponses) IssueWithResponse ¶
func (c *ClientWithResponses) IssueWithResponse(ctx context.Context, body IssueJSONRequestBody, reqEditors ...RequestEditorFn) (*IssueResponse, error)
func (*ClientWithResponses) OwnerAccountWithResponse ¶
func (c *ClientWithResponses) OwnerAccountWithResponse(ctx context.Context, id Id, params *OwnerAccountParams, reqEditors ...RequestEditorFn) (*OwnerAccountResponse, error)
OwnerAccountWithResponse request returning *OwnerAccountResponse
func (*ClientWithResponses) OwnerAccountsWithResponse ¶
func (c *ClientWithResponses) OwnerAccountsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*OwnerAccountsResponse, error)
OwnerAccountsWithResponse request returning *OwnerAccountsResponse
func (*ClientWithResponses) OwnerTransactionsWithResponse ¶
func (c *ClientWithResponses) OwnerTransactionsWithResponse(ctx context.Context, id Id, reqEditors ...RequestEditorFn) (*OwnerTransactionsResponse, error)
OwnerTransactionsWithResponse request returning *OwnerTransactionsResponse
func (*ClientWithResponses) ReadyzWithResponse ¶
func (c *ClientWithResponses) ReadyzWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ReadyzResponse, error)
ReadyzWithResponse request returning *ReadyzResponse
func (*ClientWithResponses) RedeemWithBodyWithResponse ¶
func (c *ClientWithResponses) RedeemWithBodyWithResponse(ctx context.Context, id Id, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RedeemResponse, error)
RedeemWithBodyWithResponse request with arbitrary body returning *RedeemResponse
func (*ClientWithResponses) RedeemWithResponse ¶
func (c *ClientWithResponses) RedeemWithResponse(ctx context.Context, id Id, body RedeemJSONRequestBody, reqEditors ...RequestEditorFn) (*RedeemResponse, error)
func (*ClientWithResponses) TransferWithBodyWithResponse ¶
func (c *ClientWithResponses) TransferWithBodyWithResponse(ctx context.Context, id Id, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TransferResponse, error)
TransferWithBodyWithResponse request with arbitrary body returning *TransferResponse
func (*ClientWithResponses) TransferWithResponse ¶
func (c *ClientWithResponses) TransferWithResponse(ctx context.Context, id Id, body TransferJSONRequestBody, reqEditors ...RequestEditorFn) (*TransferResponse, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface { // AuditorAccountWithResponse request AuditorAccountWithResponse(ctx context.Context, id Id, params *AuditorAccountParams, reqEditors ...RequestEditorFn) (*AuditorAccountResponse, error) // AuditorTransactionsWithResponse request AuditorTransactionsWithResponse(ctx context.Context, id Id, reqEditors ...RequestEditorFn) (*AuditorTransactionsResponse, error) // HealthzWithResponse request HealthzWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthzResponse, error) // IssueWithBodyWithResponse request with any body IssueWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IssueResponse, error) IssueWithResponse(ctx context.Context, body IssueJSONRequestBody, reqEditors ...RequestEditorFn) (*IssueResponse, error) // OwnerAccountsWithResponse request OwnerAccountsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*OwnerAccountsResponse, error) // OwnerAccountWithResponse request OwnerAccountWithResponse(ctx context.Context, id Id, params *OwnerAccountParams, reqEditors ...RequestEditorFn) (*OwnerAccountResponse, error) // RedeemWithBodyWithResponse request with any body RedeemWithBodyWithResponse(ctx context.Context, id Id, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RedeemResponse, error) RedeemWithResponse(ctx context.Context, id Id, body RedeemJSONRequestBody, reqEditors ...RequestEditorFn) (*RedeemResponse, error) // OwnerTransactionsWithResponse request OwnerTransactionsWithResponse(ctx context.Context, id Id, reqEditors ...RequestEditorFn) (*OwnerTransactionsResponse, error) // TransferWithBodyWithResponse request with any body TransferWithBodyWithResponse(ctx context.Context, id Id, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TransferResponse, error) TransferWithResponse(ctx context.Context, id Id, body TransferJSONRequestBody, reqEditors ...RequestEditorFn) (*TransferResponse, error) // ReadyzWithResponse request ReadyzWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ReadyzResponse, error) }
ClientWithResponsesInterface is the interface specification for the client with responses above.
type Counterparty ¶
type Counterparty struct { Account string `json:"account"` // Node The node that holds the recipient account Node string `json:"node"` }
Counterparty The counterparty in a Transfer or Issuance transaction.
type Error ¶
type Error struct { // Message High level error message Message string `json:"message"` // Payload Details about the error Payload string `json:"payload"` }
Error defines model for Error.
type HealthSuccess ¶
type HealthSuccess struct { // Message ok Message string `json:"message"` }
HealthSuccess defines model for HealthSuccess.
type HealthzResponse ¶
type HealthzResponse struct { Body []byte HTTPResponse *http.Response JSON200 *HealthSuccess JSON503 *ErrorResponse }
func ParseHealthzResponse ¶
func ParseHealthzResponse(rsp *http.Response) (*HealthzResponse, error)
ParseHealthzResponse parses an HTTP response from a HealthzWithResponse call
func (HealthzResponse) Status ¶
func (r HealthzResponse) Status() string
Status returns HTTPResponse.Status
func (HealthzResponse) StatusCode ¶
func (r HealthzResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type IssueJSONRequestBody ¶
type IssueJSONRequestBody = TransferRequest
IssueJSONRequestBody defines body for Issue for application/json ContentType.
type IssueResponse ¶
type IssueResponse struct { Body []byte HTTPResponse *http.Response JSON200 *IssueSuccess JSONDefault *ErrorResponse }
func ParseIssueResponse ¶
func ParseIssueResponse(rsp *http.Response) (*IssueResponse, error)
ParseIssueResponse parses an HTTP response from a IssueWithResponse call
func (IssueResponse) Status ¶
func (r IssueResponse) Status() string
Status returns HTTPResponse.Status
func (IssueResponse) StatusCode ¶
func (r IssueResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type IssueSuccess ¶
type IssueSuccess struct { Message string `json:"message"` // Payload Transaction id Payload string `json:"payload"` }
IssueSuccess defines model for IssueSuccess.
type OwnerAccountParams ¶
type OwnerAccountParams struct {
Code *Code `form:"code,omitempty" json:"code,omitempty"`
}
OwnerAccountParams defines parameters for OwnerAccount.
type OwnerAccountResponse ¶
type OwnerAccountResponse struct { Body []byte HTTPResponse *http.Response JSON200 *AccountSuccess JSONDefault *ErrorResponse }
func ParseOwnerAccountResponse ¶
func ParseOwnerAccountResponse(rsp *http.Response) (*OwnerAccountResponse, error)
ParseOwnerAccountResponse parses an HTTP response from a OwnerAccountWithResponse call
func (OwnerAccountResponse) Status ¶
func (r OwnerAccountResponse) Status() string
Status returns HTTPResponse.Status
func (OwnerAccountResponse) StatusCode ¶
func (r OwnerAccountResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type OwnerAccountsResponse ¶
type OwnerAccountsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *AccountsSuccess JSONDefault *ErrorResponse }
func ParseOwnerAccountsResponse ¶
func ParseOwnerAccountsResponse(rsp *http.Response) (*OwnerAccountsResponse, error)
ParseOwnerAccountsResponse parses an HTTP response from a OwnerAccountsWithResponse call
func (OwnerAccountsResponse) Status ¶
func (r OwnerAccountsResponse) Status() string
Status returns HTTPResponse.Status
func (OwnerAccountsResponse) StatusCode ¶
func (r OwnerAccountsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type OwnerTransactionsResponse ¶
type OwnerTransactionsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *TransactionsSuccess JSONDefault *ErrorResponse }
func ParseOwnerTransactionsResponse ¶
func ParseOwnerTransactionsResponse(rsp *http.Response) (*OwnerTransactionsResponse, error)
ParseOwnerTransactionsResponse parses an HTTP response from a OwnerTransactionsWithResponse call
func (OwnerTransactionsResponse) Status ¶
func (r OwnerTransactionsResponse) Status() string
Status returns HTTPResponse.Status
func (OwnerTransactionsResponse) StatusCode ¶
func (r OwnerTransactionsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ReadyzResponse ¶
type ReadyzResponse struct { Body []byte HTTPResponse *http.Response JSON200 *HealthSuccess JSON503 *ErrorResponse }
func ParseReadyzResponse ¶
func ParseReadyzResponse(rsp *http.Response) (*ReadyzResponse, error)
ParseReadyzResponse parses an HTTP response from a ReadyzWithResponse call
func (ReadyzResponse) Status ¶
func (r ReadyzResponse) Status() string
Status returns HTTPResponse.Status
func (ReadyzResponse) StatusCode ¶
func (r ReadyzResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RedeemJSONRequestBody ¶
type RedeemJSONRequestBody = RedeemRequest
RedeemJSONRequestBody defines body for Redeem for application/json ContentType.
type RedeemRequest ¶
type RedeemRequest struct { // Amount The amount to issue, transfer or redeem. Amount Amount `json:"amount"` // Message optional message that will be visible to the auditor Message *string `json:"message,omitempty"` }
RedeemRequest Instructions to redeem tokens from an account
type RedeemResponse ¶
type RedeemResponse struct { Body []byte HTTPResponse *http.Response JSON200 *RedeemSuccess JSONDefault *ErrorResponse }
func ParseRedeemResponse ¶
func ParseRedeemResponse(rsp *http.Response) (*RedeemResponse, error)
ParseRedeemResponse parses an HTTP response from a RedeemWithResponse call
func (RedeemResponse) Status ¶
func (r RedeemResponse) Status() string
Status returns HTTPResponse.Status
func (RedeemResponse) StatusCode ¶
func (r RedeemResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RedeemSuccess ¶
type RedeemSuccess struct { Message string `json:"message"` // Payload Transaction id Payload string `json:"payload"` }
RedeemSuccess defines model for RedeemSuccess.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type TransactionRecord ¶
type TransactionRecord struct { // Amount The amount to issue, transfer or redeem. Amount Amount `json:"amount"` // Id transaction id Id string `json:"id"` // Message user provided message Message string `json:"message"` // Recipient the recipient of the transaction Recipient string `json:"recipient"` // Sender the sender of the transaction Sender string `json:"sender"` // Status Unknown | Pending | Confirmed | Deleted Status string `json:"status"` // Timestamp timestamp in the format: "2018-03-20T09:12:28Z" Timestamp time.Time `json:"timestamp"` }
TransactionRecord A transaction
type TransactionsSuccess ¶
type TransactionsSuccess struct { Message string `json:"message"` Payload []TransactionRecord `json:"payload"` }
TransactionsSuccess defines model for TransactionsSuccess.
type TransferJSONRequestBody ¶
type TransferJSONRequestBody = TransferRequest
TransferJSONRequestBody defines body for Transfer for application/json ContentType.
type TransferRequest ¶
type TransferRequest struct { // Amount The amount to issue, transfer or redeem. Amount Amount `json:"amount"` // Counterparty The counterparty in a Transfer or Issuance transaction. Counterparty Counterparty `json:"counterparty"` // Message optional message that will be sent and stored with the transfer transaction Message *string `json:"message,omitempty"` }
TransferRequest Instructions to issue or transfer tokens to an account
type TransferResponse ¶
type TransferResponse struct { Body []byte HTTPResponse *http.Response JSON200 *TransferSuccess JSONDefault *ErrorResponse }
func ParseTransferResponse ¶
func ParseTransferResponse(rsp *http.Response) (*TransferResponse, error)
ParseTransferResponse parses an HTTP response from a TransferWithResponse call
func (TransferResponse) Status ¶
func (r TransferResponse) Status() string
Status returns HTTPResponse.Status
func (TransferResponse) StatusCode ¶
func (r TransferResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type TransferSuccess ¶
type TransferSuccess struct { Message string `json:"message"` // Payload Transaction id Payload string `json:"payload"` }
TransferSuccess defines model for TransferSuccess.