Documentation
¶
Overview ¶
Package scanProxy provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.5.1 DO NOT EDIT.
Index ¶
- func NewGetAmuletRulesRequest(server string) (*http.Request, error)
- func NewGetAnsRulesRequest(server string, body GetAnsRulesJSONRequestBody) (*http.Request, error)
- func NewGetAnsRulesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewGetDsoInfoRequest(server string) (*http.Request, error)
- func NewGetDsoPartyIdRequest(server string) (*http.Request, error)
- func NewGetOpenAndIssuingMiningRoundsRequest(server string) (*http.Request, error)
- func NewListAnsEntriesRequest(server string, params *ListAnsEntriesParams) (*http.Request, error)
- func NewLookupAnsEntryByNameRequest(server string, name string) (*http.Request, error)
- func NewLookupAnsEntryByPartyRequest(server string, party string) (*http.Request, error)
- func NewLookupFeaturedAppRightRequest(server string, providerPartyId string) (*http.Request, error)
- func NewLookupTransferCommandCounterByPartyRequest(server string, party string) (*http.Request, error)
- func NewLookupTransferCommandStatusRequest(server string, params *LookupTransferCommandStatusParams) (*http.Request, error)
- func NewLookupTransferPreapprovalByPartyRequest(server string, party string) (*http.Request, error)
- func RegisterHandlers(router gin.IRouter, si ServerInterface)
- func RegisterHandlersWithOptions(router gin.IRouter, si ServerInterface, options GinServerOptions)
- type AnsEntry
- type BaseLookupTransferCommandStatusResponse
- type Client
- func (c *Client) GetAmuletRules(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetAnsRules(ctx context.Context, body GetAnsRulesJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) GetAnsRulesWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) GetDsoInfo(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetDsoPartyId(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetOpenAndIssuingMiningRounds(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListAnsEntries(ctx context.Context, params *ListAnsEntriesParams, ...) (*http.Response, error)
- func (c *Client) LookupAnsEntryByName(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) LookupAnsEntryByParty(ctx context.Context, party string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) LookupFeaturedAppRight(ctx context.Context, providerPartyId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) LookupTransferCommandCounterByParty(ctx context.Context, party string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) LookupTransferCommandStatus(ctx context.Context, params *LookupTransferCommandStatusParams, ...) (*http.Response, error)
- func (c *Client) LookupTransferPreapprovalByParty(ctx context.Context, party string, reqEditors ...RequestEditorFn) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) GetAmuletRulesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAmuletRulesResp, error)
- func (c *ClientWithResponses) GetAnsRulesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*GetAnsRulesResp, error)
- func (c *ClientWithResponses) GetAnsRulesWithResponse(ctx context.Context, body GetAnsRulesJSONRequestBody, ...) (*GetAnsRulesResp, error)
- func (c *ClientWithResponses) GetDsoInfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetDsoInfoResp, error)
- func (c *ClientWithResponses) GetDsoPartyIdWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetDsoPartyIdResp, error)
- func (c *ClientWithResponses) GetOpenAndIssuingMiningRoundsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOpenAndIssuingMiningRoundsResp, error)
- func (c *ClientWithResponses) ListAnsEntriesWithResponse(ctx context.Context, params *ListAnsEntriesParams, ...) (*ListAnsEntriesResp, error)
- func (c *ClientWithResponses) LookupAnsEntryByNameWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*LookupAnsEntryByNameResp, error)
- func (c *ClientWithResponses) LookupAnsEntryByPartyWithResponse(ctx context.Context, party string, reqEditors ...RequestEditorFn) (*LookupAnsEntryByPartyResp, error)
- func (c *ClientWithResponses) LookupFeaturedAppRightWithResponse(ctx context.Context, providerPartyId string, reqEditors ...RequestEditorFn) (*LookupFeaturedAppRightResp, error)
- func (c *ClientWithResponses) LookupTransferCommandCounterByPartyWithResponse(ctx context.Context, party string, reqEditors ...RequestEditorFn) (*LookupTransferCommandCounterByPartyResp, error)
- func (c *ClientWithResponses) LookupTransferCommandStatusWithResponse(ctx context.Context, params *LookupTransferCommandStatusParams, ...) (*LookupTransferCommandStatusResp, error)
- func (c *ClientWithResponses) LookupTransferPreapprovalByPartyWithResponse(ctx context.Context, party string, reqEditors ...RequestEditorFn) (*LookupTransferPreapprovalByPartyResp, error)
- type ClientWithResponsesInterface
- type Contract
- type ContractId
- type ContractWithState
- type ErrorResponse
- type GetAmuletRulesProxyResponse
- type GetAmuletRulesResp
- type GetAnsRulesJSONRequestBody
- type GetAnsRulesRequest
- type GetAnsRulesResp
- type GetAnsRulesResponse
- type GetDsoInfoResp
- type GetDsoInfoResponse
- type GetDsoPartyIdResp
- type GetDsoPartyIdResponse
- type GetOpenAndIssuingMiningRoundsProxyResponse
- type GetOpenAndIssuingMiningRoundsResp
- type GinServerOptions
- type HttpRequestDoer
- type ListAnsEntriesParams
- type ListAnsEntriesResp
- type ListEntriesResponse
- type LookupAnsEntryByNameResp
- type LookupAnsEntryByPartyResp
- type LookupEntryByNameResponse
- type LookupEntryByPartyResponse
- type LookupFeaturedAppRightResp
- type LookupFeaturedAppRightResponse
- type LookupTransferCommandCounterByPartyResp
- type LookupTransferCommandCounterByPartyResponse
- type LookupTransferCommandStatusParams
- type LookupTransferCommandStatusResp
- type LookupTransferCommandStatusResponse
- type LookupTransferPreapprovalByPartyResp
- type LookupTransferPreapprovalByPartyResponse
- type MaybeCachedContractWithState
- type MiddlewareFunc
- type N404
- type RequestEditorFn
- type ServerInterface
- type ServerInterfaceWrapper
- func (siw *ServerInterfaceWrapper) GetAmuletRules(c *gin.Context)
- func (siw *ServerInterfaceWrapper) GetAnsRules(c *gin.Context)
- func (siw *ServerInterfaceWrapper) GetDsoInfo(c *gin.Context)
- func (siw *ServerInterfaceWrapper) GetDsoPartyId(c *gin.Context)
- func (siw *ServerInterfaceWrapper) GetOpenAndIssuingMiningRounds(c *gin.Context)
- func (siw *ServerInterfaceWrapper) ListAnsEntries(c *gin.Context)
- func (siw *ServerInterfaceWrapper) LookupAnsEntryByName(c *gin.Context)
- func (siw *ServerInterfaceWrapper) LookupAnsEntryByParty(c *gin.Context)
- func (siw *ServerInterfaceWrapper) LookupFeaturedAppRight(c *gin.Context)
- func (siw *ServerInterfaceWrapper) LookupTransferCommandCounterByParty(c *gin.Context)
- func (siw *ServerInterfaceWrapper) LookupTransferCommandStatus(c *gin.Context)
- func (siw *ServerInterfaceWrapper) LookupTransferPreapprovalByParty(c *gin.Context)
- type TransferCommandContractStatus
- func (t TransferCommandContractStatus) AsTransferCommandCreatedResponse() (TransferCommandCreatedResponse, error)
- func (t TransferCommandContractStatus) AsTransferCommandFailedResponse() (TransferCommandFailedResponse, error)
- func (t TransferCommandContractStatus) AsTransferCommandSentResponse() (TransferCommandSentResponse, error)
- func (t TransferCommandContractStatus) Discriminator() (string, error)
- func (t *TransferCommandContractStatus) FromTransferCommandCreatedResponse(v TransferCommandCreatedResponse) error
- func (t *TransferCommandContractStatus) FromTransferCommandFailedResponse(v TransferCommandFailedResponse) error
- func (t *TransferCommandContractStatus) FromTransferCommandSentResponse(v TransferCommandSentResponse) error
- func (t TransferCommandContractStatus) MarshalJSON() ([]byte, error)
- func (t *TransferCommandContractStatus) MergeTransferCommandCreatedResponse(v TransferCommandCreatedResponse) error
- func (t *TransferCommandContractStatus) MergeTransferCommandFailedResponse(v TransferCommandFailedResponse) error
- func (t *TransferCommandContractStatus) MergeTransferCommandSentResponse(v TransferCommandSentResponse) error
- func (t *TransferCommandContractStatus) UnmarshalJSON(b []byte) error
- func (t TransferCommandContractStatus) ValueByDiscriminator() (interface{}, error)
- type TransferCommandContractWithStatus
- type TransferCommandCreatedResponse
- type TransferCommandFailedResponse
- type TransferCommandFailedResponseFailureKind
- type TransferCommandMap
- type TransferCommandSentResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGetAmuletRulesRequest ¶
NewGetAmuletRulesRequest generates requests for GetAmuletRules
func NewGetAnsRulesRequest ¶
func NewGetAnsRulesRequest(server string, body GetAnsRulesJSONRequestBody) (*http.Request, error)
NewGetAnsRulesRequest calls the generic GetAnsRules builder with application/json body
func NewGetAnsRulesRequestWithBody ¶
func NewGetAnsRulesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewGetAnsRulesRequestWithBody generates requests for GetAnsRules with any type of body
func NewGetDsoInfoRequest ¶
NewGetDsoInfoRequest generates requests for GetDsoInfo
func NewGetDsoPartyIdRequest ¶
NewGetDsoPartyIdRequest generates requests for GetDsoPartyId
func NewGetOpenAndIssuingMiningRoundsRequest ¶
NewGetOpenAndIssuingMiningRoundsRequest generates requests for GetOpenAndIssuingMiningRounds
func NewListAnsEntriesRequest ¶
func NewListAnsEntriesRequest(server string, params *ListAnsEntriesParams) (*http.Request, error)
NewListAnsEntriesRequest generates requests for ListAnsEntries
func NewLookupAnsEntryByNameRequest ¶
NewLookupAnsEntryByNameRequest generates requests for LookupAnsEntryByName
func NewLookupAnsEntryByPartyRequest ¶
NewLookupAnsEntryByPartyRequest generates requests for LookupAnsEntryByParty
func NewLookupFeaturedAppRightRequest ¶
NewLookupFeaturedAppRightRequest generates requests for LookupFeaturedAppRight
func NewLookupTransferCommandCounterByPartyRequest ¶
func NewLookupTransferCommandCounterByPartyRequest(server string, party string) (*http.Request, error)
NewLookupTransferCommandCounterByPartyRequest generates requests for LookupTransferCommandCounterByParty
func NewLookupTransferCommandStatusRequest ¶
func NewLookupTransferCommandStatusRequest(server string, params *LookupTransferCommandStatusParams) (*http.Request, error)
NewLookupTransferCommandStatusRequest generates requests for LookupTransferCommandStatus
func NewLookupTransferPreapprovalByPartyRequest ¶
NewLookupTransferPreapprovalByPartyRequest generates requests for LookupTransferPreapprovalByParty
func RegisterHandlers ¶
func RegisterHandlers(router gin.IRouter, si ServerInterface)
RegisterHandlers creates http.Handler with routing matching OpenAPI spec.
func RegisterHandlersWithOptions ¶
func RegisterHandlersWithOptions(router gin.IRouter, si ServerInterface, options GinServerOptions)
RegisterHandlersWithOptions creates http.Handler with additional options
Types ¶
type AnsEntry ¶
type AnsEntry struct {
// ContractId If present, Daml contract ID of template `Splice.Ans:AnsEntry`.
// If absent, this is a DSO-provided entry for either the DSO or an SV.
ContractId *string `json:"contract_id,omitempty"`
// Description Arbitrary description text supplied by `user`; may be empty.
Description string `json:"description"`
// ExpiresAt Time after which this ANS entry expires; if renewed, it will have a
// new `contract_id` and `expires_at`.
// If `null` or absent, does not expire; this is the case only for
// special entries provided by the DSO.
ExpiresAt *time.Time `json:"expires_at,omitempty"`
// Name The ANS entry name.
Name string `json:"name"`
// Url Either empty, or an http/https URL supplied by the `user`.
Url string `json:"url"`
// User Owner party ID of this ANS entry.
User string `json:"user"`
}
AnsEntry defines model for AnsEntry.
type BaseLookupTransferCommandStatusResponse ¶
type BaseLookupTransferCommandStatusResponse struct {
// Status The status of the transfer command.
// created:
// The transfer command has been created and is waiting for automation to complete it.
// sent:
// The transfer command has been completed and the transfer to the receiver has finished.
// failed:
// The transfer command has failed permanently and nothing has been transferred. Refer to
// failure_reason for details. A new transfer command can be created.
Status string `json:"status"`
}
BaseLookupTransferCommandStatusResponse defines model for BaseLookupTransferCommandStatusResponse.
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) GetAmuletRules ¶
func (*Client) GetAnsRules ¶
func (c *Client) GetAnsRules(ctx context.Context, body GetAnsRulesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetAnsRulesWithBody ¶
func (*Client) GetDsoInfo ¶
func (*Client) GetDsoPartyId ¶
func (*Client) GetOpenAndIssuingMiningRounds ¶
func (*Client) ListAnsEntries ¶
func (c *Client) ListAnsEntries(ctx context.Context, params *ListAnsEntriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) LookupAnsEntryByName ¶
func (*Client) LookupAnsEntryByParty ¶
func (*Client) LookupFeaturedAppRight ¶
func (*Client) LookupTransferCommandCounterByParty ¶
func (*Client) LookupTransferCommandStatus ¶
func (c *Client) LookupTransferCommandStatus(ctx context.Context, params *LookupTransferCommandStatusParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) LookupTransferPreapprovalByParty ¶
type ClientInterface ¶
type ClientInterface interface {
// GetAmuletRules request
GetAmuletRules(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListAnsEntries request
ListAnsEntries(ctx context.Context, params *ListAnsEntriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// LookupAnsEntryByName request
LookupAnsEntryByName(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)
// LookupAnsEntryByParty request
LookupAnsEntryByParty(ctx context.Context, party string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetAnsRulesWithBody request with any body
GetAnsRulesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
GetAnsRules(ctx context.Context, body GetAnsRulesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetDsoInfo request
GetDsoInfo(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetDsoPartyId request
GetDsoPartyId(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// LookupFeaturedAppRight request
LookupFeaturedAppRight(ctx context.Context, providerPartyId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetOpenAndIssuingMiningRounds request
GetOpenAndIssuingMiningRounds(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// LookupTransferCommandCounterByParty request
LookupTransferCommandCounterByParty(ctx context.Context, party string, reqEditors ...RequestEditorFn) (*http.Response, error)
// LookupTransferCommandStatus request
LookupTransferCommandStatus(ctx context.Context, params *LookupTransferCommandStatusParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// LookupTransferPreapprovalByParty request
LookupTransferPreapprovalByParty(ctx context.Context, party string, 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) GetAmuletRulesWithResponse ¶
func (c *ClientWithResponses) GetAmuletRulesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAmuletRulesResp, error)
GetAmuletRulesWithResponse request returning *GetAmuletRulesResp
func (*ClientWithResponses) GetAnsRulesWithBodyWithResponse ¶
func (c *ClientWithResponses) GetAnsRulesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetAnsRulesResp, error)
GetAnsRulesWithBodyWithResponse request with arbitrary body returning *GetAnsRulesResp
func (*ClientWithResponses) GetAnsRulesWithResponse ¶
func (c *ClientWithResponses) GetAnsRulesWithResponse(ctx context.Context, body GetAnsRulesJSONRequestBody, reqEditors ...RequestEditorFn) (*GetAnsRulesResp, error)
func (*ClientWithResponses) GetDsoInfoWithResponse ¶
func (c *ClientWithResponses) GetDsoInfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetDsoInfoResp, error)
GetDsoInfoWithResponse request returning *GetDsoInfoResp
func (*ClientWithResponses) GetDsoPartyIdWithResponse ¶
func (c *ClientWithResponses) GetDsoPartyIdWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetDsoPartyIdResp, error)
GetDsoPartyIdWithResponse request returning *GetDsoPartyIdResp
func (*ClientWithResponses) GetOpenAndIssuingMiningRoundsWithResponse ¶
func (c *ClientWithResponses) GetOpenAndIssuingMiningRoundsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOpenAndIssuingMiningRoundsResp, error)
GetOpenAndIssuingMiningRoundsWithResponse request returning *GetOpenAndIssuingMiningRoundsResp
func (*ClientWithResponses) ListAnsEntriesWithResponse ¶
func (c *ClientWithResponses) ListAnsEntriesWithResponse(ctx context.Context, params *ListAnsEntriesParams, reqEditors ...RequestEditorFn) (*ListAnsEntriesResp, error)
ListAnsEntriesWithResponse request returning *ListAnsEntriesResp
func (*ClientWithResponses) LookupAnsEntryByNameWithResponse ¶
func (c *ClientWithResponses) LookupAnsEntryByNameWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*LookupAnsEntryByNameResp, error)
LookupAnsEntryByNameWithResponse request returning *LookupAnsEntryByNameResp
func (*ClientWithResponses) LookupAnsEntryByPartyWithResponse ¶
func (c *ClientWithResponses) LookupAnsEntryByPartyWithResponse(ctx context.Context, party string, reqEditors ...RequestEditorFn) (*LookupAnsEntryByPartyResp, error)
LookupAnsEntryByPartyWithResponse request returning *LookupAnsEntryByPartyResp
func (*ClientWithResponses) LookupFeaturedAppRightWithResponse ¶
func (c *ClientWithResponses) LookupFeaturedAppRightWithResponse(ctx context.Context, providerPartyId string, reqEditors ...RequestEditorFn) (*LookupFeaturedAppRightResp, error)
LookupFeaturedAppRightWithResponse request returning *LookupFeaturedAppRightResp
func (*ClientWithResponses) LookupTransferCommandCounterByPartyWithResponse ¶
func (c *ClientWithResponses) LookupTransferCommandCounterByPartyWithResponse(ctx context.Context, party string, reqEditors ...RequestEditorFn) (*LookupTransferCommandCounterByPartyResp, error)
LookupTransferCommandCounterByPartyWithResponse request returning *LookupTransferCommandCounterByPartyResp
func (*ClientWithResponses) LookupTransferCommandStatusWithResponse ¶
func (c *ClientWithResponses) LookupTransferCommandStatusWithResponse(ctx context.Context, params *LookupTransferCommandStatusParams, reqEditors ...RequestEditorFn) (*LookupTransferCommandStatusResp, error)
LookupTransferCommandStatusWithResponse request returning *LookupTransferCommandStatusResp
func (*ClientWithResponses) LookupTransferPreapprovalByPartyWithResponse ¶
func (c *ClientWithResponses) LookupTransferPreapprovalByPartyWithResponse(ctx context.Context, party string, reqEditors ...RequestEditorFn) (*LookupTransferPreapprovalByPartyResp, error)
LookupTransferPreapprovalByPartyWithResponse request returning *LookupTransferPreapprovalByPartyResp
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// GetAmuletRulesWithResponse request
GetAmuletRulesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAmuletRulesResp, error)
// ListAnsEntriesWithResponse request
ListAnsEntriesWithResponse(ctx context.Context, params *ListAnsEntriesParams, reqEditors ...RequestEditorFn) (*ListAnsEntriesResp, error)
// LookupAnsEntryByNameWithResponse request
LookupAnsEntryByNameWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*LookupAnsEntryByNameResp, error)
// LookupAnsEntryByPartyWithResponse request
LookupAnsEntryByPartyWithResponse(ctx context.Context, party string, reqEditors ...RequestEditorFn) (*LookupAnsEntryByPartyResp, error)
// GetAnsRulesWithBodyWithResponse request with any body
GetAnsRulesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetAnsRulesResp, error)
GetAnsRulesWithResponse(ctx context.Context, body GetAnsRulesJSONRequestBody, reqEditors ...RequestEditorFn) (*GetAnsRulesResp, error)
// GetDsoInfoWithResponse request
GetDsoInfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetDsoInfoResp, error)
// GetDsoPartyIdWithResponse request
GetDsoPartyIdWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetDsoPartyIdResp, error)
// LookupFeaturedAppRightWithResponse request
LookupFeaturedAppRightWithResponse(ctx context.Context, providerPartyId string, reqEditors ...RequestEditorFn) (*LookupFeaturedAppRightResp, error)
// GetOpenAndIssuingMiningRoundsWithResponse request
GetOpenAndIssuingMiningRoundsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOpenAndIssuingMiningRoundsResp, error)
// LookupTransferCommandCounterByPartyWithResponse request
LookupTransferCommandCounterByPartyWithResponse(ctx context.Context, party string, reqEditors ...RequestEditorFn) (*LookupTransferCommandCounterByPartyResp, error)
// LookupTransferCommandStatusWithResponse request
LookupTransferCommandStatusWithResponse(ctx context.Context, params *LookupTransferCommandStatusParams, reqEditors ...RequestEditorFn) (*LookupTransferCommandStatusResp, error)
// LookupTransferPreapprovalByPartyWithResponse request
LookupTransferPreapprovalByPartyWithResponse(ctx context.Context, party string, reqEditors ...RequestEditorFn) (*LookupTransferPreapprovalByPartyResp, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type Contract ¶
type Contract struct {
ContractId string `json:"contract_id"`
CreatedAt string `json:"created_at"`
CreatedEventBlob string `json:"created_event_blob"`
Payload map[string]interface{} `json:"payload"`
TemplateId string `json:"template_id"`
}
Contract defines model for Contract.
type ContractWithState ¶
type ContractWithState struct {
Contract Contract `json:"contract"`
DomainId *string `json:"domain_id,omitempty"`
}
ContractWithState defines model for ContractWithState.
type ErrorResponse ¶
type ErrorResponse struct {
Error string `json:"error"`
}
ErrorResponse defines model for ErrorResponse.
type GetAmuletRulesProxyResponse ¶
type GetAmuletRulesProxyResponse struct {
AmuletRules ContractWithState `json:"amulet_rules"`
}
GetAmuletRulesProxyResponse defines model for GetAmuletRulesProxyResponse.
type GetAmuletRulesResp ¶
type GetAmuletRulesResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *GetAmuletRulesProxyResponse
}
func ParseGetAmuletRulesResp ¶
func ParseGetAmuletRulesResp(rsp *http.Response) (*GetAmuletRulesResp, error)
ParseGetAmuletRulesResp parses an HTTP response from a GetAmuletRulesWithResponse call
func (GetAmuletRulesResp) Status ¶
func (r GetAmuletRulesResp) Status() string
Status returns HTTPResponse.Status
func (GetAmuletRulesResp) StatusCode ¶
func (r GetAmuletRulesResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetAnsRulesJSONRequestBody ¶
type GetAnsRulesJSONRequestBody = GetAnsRulesRequest
GetAnsRulesJSONRequestBody defines body for GetAnsRules for application/json ContentType.
type GetAnsRulesRequest ¶
type GetAnsRulesRequest struct {
CachedAnsRulesContractId *ContractId `json:"cached_ans_rules_contract_id,omitempty"`
CachedAnsRulesDomainId *string `json:"cached_ans_rules_domain_id,omitempty"`
}
GetAnsRulesRequest defines model for GetAnsRulesRequest.
type GetAnsRulesResp ¶
type GetAnsRulesResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *GetAnsRulesResponse
}
func ParseGetAnsRulesResp ¶
func ParseGetAnsRulesResp(rsp *http.Response) (*GetAnsRulesResp, error)
ParseGetAnsRulesResp parses an HTTP response from a GetAnsRulesWithResponse call
func (GetAnsRulesResp) Status ¶
func (r GetAnsRulesResp) Status() string
Status returns HTTPResponse.Status
func (GetAnsRulesResp) StatusCode ¶
func (r GetAnsRulesResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetAnsRulesResponse ¶
type GetAnsRulesResponse struct {
AnsRulesUpdate MaybeCachedContractWithState `json:"ans_rules_update"`
}
GetAnsRulesResponse A contract state update of Daml template `Splice.Ans.AnsRules`.
type GetDsoInfoResp ¶
type GetDsoInfoResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *GetDsoInfoResponse
}
func ParseGetDsoInfoResp ¶
func ParseGetDsoInfoResp(rsp *http.Response) (*GetDsoInfoResp, error)
ParseGetDsoInfoResp parses an HTTP response from a GetDsoInfoWithResponse call
func (GetDsoInfoResp) Status ¶
func (r GetDsoInfoResp) Status() string
Status returns HTTPResponse.Status
func (GetDsoInfoResp) StatusCode ¶
func (r GetDsoInfoResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetDsoInfoResponse ¶
type GetDsoInfoResponse struct {
AmuletRules ContractWithState `json:"amulet_rules"`
// DsoPartyId Party representing the whole DSO; for Scan only, also returned by
// `/v0/dso-party-id`
DsoPartyId string `json:"dso_party_id"`
DsoRules ContractWithState `json:"dso_rules"`
// InitialRound Initial round from which the network bootstraps
InitialRound *string `json:"initial_round,omitempty"`
LatestMiningRound ContractWithState `json:"latest_mining_round"`
// SvNodeStates For every one of `svs` listed in `dso_rules`, a contract of the Daml
// template `Splice.DSO.SvState.SvNodeState`. This does not include
// states for offboarded SVs, though they may still have an on-ledger
// state contract
SvNodeStates []ContractWithState `json:"sv_node_states"`
// SvPartyId Party representing the SV
SvPartyId string `json:"sv_party_id"`
// SvUser User ID representing the SV
SvUser string `json:"sv_user"`
// VotingThreshold Threshold required to pass vote requests; also known as the
// "governance threshold", it is always derived from the number of
// `svs` in `dso_rules`
VotingThreshold int `json:"voting_threshold"`
}
GetDsoInfoResponse defines model for GetDsoInfoResponse.
type GetDsoPartyIdResp ¶
type GetDsoPartyIdResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *GetDsoPartyIdResponse
}
func ParseGetDsoPartyIdResp ¶
func ParseGetDsoPartyIdResp(rsp *http.Response) (*GetDsoPartyIdResp, error)
ParseGetDsoPartyIdResp parses an HTTP response from a GetDsoPartyIdWithResponse call
func (GetDsoPartyIdResp) Status ¶
func (r GetDsoPartyIdResp) Status() string
Status returns HTTPResponse.Status
func (GetDsoPartyIdResp) StatusCode ¶
func (r GetDsoPartyIdResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetDsoPartyIdResponse ¶
type GetDsoPartyIdResponse struct {
DsoPartyId string `json:"dso_party_id"`
}
GetDsoPartyIdResponse defines model for GetDsoPartyIdResponse.
type GetOpenAndIssuingMiningRoundsProxyResponse ¶
type GetOpenAndIssuingMiningRoundsProxyResponse struct {
IssuingMiningRounds []ContractWithState `json:"issuing_mining_rounds"`
OpenMiningRounds []ContractWithState `json:"open_mining_rounds"`
}
GetOpenAndIssuingMiningRoundsProxyResponse defines model for GetOpenAndIssuingMiningRoundsProxyResponse.
type GetOpenAndIssuingMiningRoundsResp ¶
type GetOpenAndIssuingMiningRoundsResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *GetOpenAndIssuingMiningRoundsProxyResponse
}
func ParseGetOpenAndIssuingMiningRoundsResp ¶
func ParseGetOpenAndIssuingMiningRoundsResp(rsp *http.Response) (*GetOpenAndIssuingMiningRoundsResp, error)
ParseGetOpenAndIssuingMiningRoundsResp parses an HTTP response from a GetOpenAndIssuingMiningRoundsWithResponse call
func (GetOpenAndIssuingMiningRoundsResp) Status ¶
func (r GetOpenAndIssuingMiningRoundsResp) Status() string
Status returns HTTPResponse.Status
func (GetOpenAndIssuingMiningRoundsResp) StatusCode ¶
func (r GetOpenAndIssuingMiningRoundsResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GinServerOptions ¶
type GinServerOptions struct {
BaseURL string
Middlewares []MiddlewareFunc
ErrorHandler func(*gin.Context, error, int)
}
GinServerOptions provides options for the Gin server.
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type ListAnsEntriesParams ¶
type ListAnsEntriesParams struct {
NamePrefix *string `form:"name_prefix,omitempty" json:"name_prefix,omitempty"`
PageSize int32 `form:"page_size" json:"page_size"`
}
ListAnsEntriesParams defines parameters for ListAnsEntries.
type ListAnsEntriesResp ¶
type ListAnsEntriesResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ListEntriesResponse
}
func ParseListAnsEntriesResp ¶
func ParseListAnsEntriesResp(rsp *http.Response) (*ListAnsEntriesResp, error)
ParseListAnsEntriesResp parses an HTTP response from a ListAnsEntriesWithResponse call
func (ListAnsEntriesResp) Status ¶
func (r ListAnsEntriesResp) Status() string
Status returns HTTPResponse.Status
func (ListAnsEntriesResp) StatusCode ¶
func (r ListAnsEntriesResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListEntriesResponse ¶
type ListEntriesResponse struct {
Entries []AnsEntry `json:"entries"`
}
ListEntriesResponse defines model for ListEntriesResponse.
type LookupAnsEntryByNameResp ¶
type LookupAnsEntryByNameResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *LookupEntryByNameResponse
JSON404 *N404
}
func ParseLookupAnsEntryByNameResp ¶
func ParseLookupAnsEntryByNameResp(rsp *http.Response) (*LookupAnsEntryByNameResp, error)
ParseLookupAnsEntryByNameResp parses an HTTP response from a LookupAnsEntryByNameWithResponse call
func (LookupAnsEntryByNameResp) Status ¶
func (r LookupAnsEntryByNameResp) Status() string
Status returns HTTPResponse.Status
func (LookupAnsEntryByNameResp) StatusCode ¶
func (r LookupAnsEntryByNameResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type LookupAnsEntryByPartyResp ¶
type LookupAnsEntryByPartyResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *LookupEntryByPartyResponse
JSON404 *N404
}
func ParseLookupAnsEntryByPartyResp ¶
func ParseLookupAnsEntryByPartyResp(rsp *http.Response) (*LookupAnsEntryByPartyResp, error)
ParseLookupAnsEntryByPartyResp parses an HTTP response from a LookupAnsEntryByPartyWithResponse call
func (LookupAnsEntryByPartyResp) Status ¶
func (r LookupAnsEntryByPartyResp) Status() string
Status returns HTTPResponse.Status
func (LookupAnsEntryByPartyResp) StatusCode ¶
func (r LookupAnsEntryByPartyResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type LookupEntryByNameResponse ¶
type LookupEntryByNameResponse struct {
Entry AnsEntry `json:"entry"`
}
LookupEntryByNameResponse defines model for LookupEntryByNameResponse.
type LookupEntryByPartyResponse ¶
type LookupEntryByPartyResponse struct {
Entry AnsEntry `json:"entry"`
}
LookupEntryByPartyResponse defines model for LookupEntryByPartyResponse.
type LookupFeaturedAppRightResp ¶
type LookupFeaturedAppRightResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *LookupFeaturedAppRightResponse
}
func ParseLookupFeaturedAppRightResp ¶
func ParseLookupFeaturedAppRightResp(rsp *http.Response) (*LookupFeaturedAppRightResp, error)
ParseLookupFeaturedAppRightResp parses an HTTP response from a LookupFeaturedAppRightWithResponse call
func (LookupFeaturedAppRightResp) Status ¶
func (r LookupFeaturedAppRightResp) Status() string
Status returns HTTPResponse.Status
func (LookupFeaturedAppRightResp) StatusCode ¶
func (r LookupFeaturedAppRightResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type LookupFeaturedAppRightResponse ¶
type LookupFeaturedAppRightResponse struct {
FeaturedAppRight *Contract `json:"featured_app_right,omitempty"`
}
LookupFeaturedAppRightResponse If defined, a contract of Daml template `Splice.Amulet.FeaturedAppRight`.
type LookupTransferCommandCounterByPartyResp ¶
type LookupTransferCommandCounterByPartyResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *LookupTransferCommandCounterByPartyResponse
JSON404 *N404
}
func ParseLookupTransferCommandCounterByPartyResp ¶
func ParseLookupTransferCommandCounterByPartyResp(rsp *http.Response) (*LookupTransferCommandCounterByPartyResp, error)
ParseLookupTransferCommandCounterByPartyResp parses an HTTP response from a LookupTransferCommandCounterByPartyWithResponse call
func (LookupTransferCommandCounterByPartyResp) Status ¶
func (r LookupTransferCommandCounterByPartyResp) Status() string
Status returns HTTPResponse.Status
func (LookupTransferCommandCounterByPartyResp) StatusCode ¶
func (r LookupTransferCommandCounterByPartyResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type LookupTransferCommandCounterByPartyResponse ¶
type LookupTransferCommandCounterByPartyResponse struct {
TransferCommandCounter ContractWithState `json:"transfer_command_counter"`
}
LookupTransferCommandCounterByPartyResponse A Daml contract of template `Splice.ExternalPartyAmuletRules:TransferCommandCounter`.
type LookupTransferCommandStatusParams ¶
type LookupTransferCommandStatusParams struct {
Sender string `form:"sender" json:"sender"`
Nonce int64 `form:"nonce" json:"nonce"`
}
LookupTransferCommandStatusParams defines parameters for LookupTransferCommandStatus.
type LookupTransferCommandStatusResp ¶
type LookupTransferCommandStatusResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *LookupTransferCommandStatusResponse
JSON404 *N404
}
func ParseLookupTransferCommandStatusResp ¶
func ParseLookupTransferCommandStatusResp(rsp *http.Response) (*LookupTransferCommandStatusResp, error)
ParseLookupTransferCommandStatusResp parses an HTTP response from a LookupTransferCommandStatusWithResponse call
func (LookupTransferCommandStatusResp) Status ¶
func (r LookupTransferCommandStatusResp) Status() string
Status returns HTTPResponse.Status
func (LookupTransferCommandStatusResp) StatusCode ¶
func (r LookupTransferCommandStatusResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type LookupTransferCommandStatusResponse ¶
type LookupTransferCommandStatusResponse struct {
TransferCommandsByContractId TransferCommandMap `json:"transfer_commands_by_contract_id"`
}
LookupTransferCommandStatusResponse defines model for LookupTransferCommandStatusResponse.
type LookupTransferPreapprovalByPartyResp ¶
type LookupTransferPreapprovalByPartyResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *LookupTransferPreapprovalByPartyResponse
JSON404 *N404
}
func ParseLookupTransferPreapprovalByPartyResp ¶
func ParseLookupTransferPreapprovalByPartyResp(rsp *http.Response) (*LookupTransferPreapprovalByPartyResp, error)
ParseLookupTransferPreapprovalByPartyResp parses an HTTP response from a LookupTransferPreapprovalByPartyWithResponse call
func (LookupTransferPreapprovalByPartyResp) Status ¶
func (r LookupTransferPreapprovalByPartyResp) Status() string
Status returns HTTPResponse.Status
func (LookupTransferPreapprovalByPartyResp) StatusCode ¶
func (r LookupTransferPreapprovalByPartyResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type LookupTransferPreapprovalByPartyResponse ¶
type LookupTransferPreapprovalByPartyResponse struct {
TransferPreapproval ContractWithState `json:"transfer_preapproval"`
}
LookupTransferPreapprovalByPartyResponse A Daml contract of template `Splice.AmuletRules:TransferPreapproval`.
type MaybeCachedContractWithState ¶
type MaybeCachedContractWithState struct {
Contract *Contract `json:"contract,omitempty"`
DomainId *string `json:"domain_id,omitempty"`
}
MaybeCachedContractWithState defines model for MaybeCachedContractWithState.
type MiddlewareFunc ¶
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type ServerInterface ¶
type ServerInterface interface {
// (GET /v0/scan-proxy/amulet-rules)
GetAmuletRules(c *gin.Context)
// (GET /v0/scan-proxy/ans-entries)
ListAnsEntries(c *gin.Context, params ListAnsEntriesParams)
// (GET /v0/scan-proxy/ans-entries/by-name/{name})
LookupAnsEntryByName(c *gin.Context, name string)
// (GET /v0/scan-proxy/ans-entries/by-party/{party})
LookupAnsEntryByParty(c *gin.Context, party string)
// (POST /v0/scan-proxy/ans-rules)
GetAnsRules(c *gin.Context)
// (GET /v0/scan-proxy/dso)
GetDsoInfo(c *gin.Context)
// (GET /v0/scan-proxy/dso-party-id)
GetDsoPartyId(c *gin.Context)
// (GET /v0/scan-proxy/featured-apps/{provider_party_id})
LookupFeaturedAppRight(c *gin.Context, providerPartyId string)
// (GET /v0/scan-proxy/open-and-issuing-mining-rounds)
GetOpenAndIssuingMiningRounds(c *gin.Context)
// (GET /v0/scan-proxy/transfer-command-counter/{party})
LookupTransferCommandCounterByParty(c *gin.Context, party string)
// (GET /v0/scan-proxy/transfer-command/status)
LookupTransferCommandStatus(c *gin.Context, params LookupTransferCommandStatusParams)
// (GET /v0/scan-proxy/transfer-preapprovals/by-party/{party})
LookupTransferPreapprovalByParty(c *gin.Context, party string)
}
ServerInterface represents all server handlers.
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct {
Handler ServerInterface
HandlerMiddlewares []MiddlewareFunc
ErrorHandler func(*gin.Context, error, int)
}
ServerInterfaceWrapper converts contexts to parameters.
func (*ServerInterfaceWrapper) GetAmuletRules ¶
func (siw *ServerInterfaceWrapper) GetAmuletRules(c *gin.Context)
GetAmuletRules operation middleware
func (*ServerInterfaceWrapper) GetAnsRules ¶
func (siw *ServerInterfaceWrapper) GetAnsRules(c *gin.Context)
GetAnsRules operation middleware
func (*ServerInterfaceWrapper) GetDsoInfo ¶
func (siw *ServerInterfaceWrapper) GetDsoInfo(c *gin.Context)
GetDsoInfo operation middleware
func (*ServerInterfaceWrapper) GetDsoPartyId ¶
func (siw *ServerInterfaceWrapper) GetDsoPartyId(c *gin.Context)
GetDsoPartyId operation middleware
func (*ServerInterfaceWrapper) GetOpenAndIssuingMiningRounds ¶
func (siw *ServerInterfaceWrapper) GetOpenAndIssuingMiningRounds(c *gin.Context)
GetOpenAndIssuingMiningRounds operation middleware
func (*ServerInterfaceWrapper) ListAnsEntries ¶
func (siw *ServerInterfaceWrapper) ListAnsEntries(c *gin.Context)
ListAnsEntries operation middleware
func (*ServerInterfaceWrapper) LookupAnsEntryByName ¶
func (siw *ServerInterfaceWrapper) LookupAnsEntryByName(c *gin.Context)
LookupAnsEntryByName operation middleware
func (*ServerInterfaceWrapper) LookupAnsEntryByParty ¶
func (siw *ServerInterfaceWrapper) LookupAnsEntryByParty(c *gin.Context)
LookupAnsEntryByParty operation middleware
func (*ServerInterfaceWrapper) LookupFeaturedAppRight ¶
func (siw *ServerInterfaceWrapper) LookupFeaturedAppRight(c *gin.Context)
LookupFeaturedAppRight operation middleware
func (*ServerInterfaceWrapper) LookupTransferCommandCounterByParty ¶
func (siw *ServerInterfaceWrapper) LookupTransferCommandCounterByParty(c *gin.Context)
LookupTransferCommandCounterByParty operation middleware
func (*ServerInterfaceWrapper) LookupTransferCommandStatus ¶
func (siw *ServerInterfaceWrapper) LookupTransferCommandStatus(c *gin.Context)
LookupTransferCommandStatus operation middleware
func (*ServerInterfaceWrapper) LookupTransferPreapprovalByParty ¶
func (siw *ServerInterfaceWrapper) LookupTransferPreapprovalByParty(c *gin.Context)
LookupTransferPreapprovalByParty operation middleware
type TransferCommandContractStatus ¶
type TransferCommandContractStatus struct {
// contains filtered or unexported fields
}
TransferCommandContractStatus defines model for TransferCommandContractStatus.
func (TransferCommandContractStatus) AsTransferCommandCreatedResponse ¶
func (t TransferCommandContractStatus) AsTransferCommandCreatedResponse() (TransferCommandCreatedResponse, error)
AsTransferCommandCreatedResponse returns the union data inside the TransferCommandContractStatus as a TransferCommandCreatedResponse
func (TransferCommandContractStatus) AsTransferCommandFailedResponse ¶
func (t TransferCommandContractStatus) AsTransferCommandFailedResponse() (TransferCommandFailedResponse, error)
AsTransferCommandFailedResponse returns the union data inside the TransferCommandContractStatus as a TransferCommandFailedResponse
func (TransferCommandContractStatus) AsTransferCommandSentResponse ¶
func (t TransferCommandContractStatus) AsTransferCommandSentResponse() (TransferCommandSentResponse, error)
AsTransferCommandSentResponse returns the union data inside the TransferCommandContractStatus as a TransferCommandSentResponse
func (TransferCommandContractStatus) Discriminator ¶
func (t TransferCommandContractStatus) Discriminator() (string, error)
func (*TransferCommandContractStatus) FromTransferCommandCreatedResponse ¶
func (t *TransferCommandContractStatus) FromTransferCommandCreatedResponse(v TransferCommandCreatedResponse) error
FromTransferCommandCreatedResponse overwrites any union data inside the TransferCommandContractStatus as the provided TransferCommandCreatedResponse
func (*TransferCommandContractStatus) FromTransferCommandFailedResponse ¶
func (t *TransferCommandContractStatus) FromTransferCommandFailedResponse(v TransferCommandFailedResponse) error
FromTransferCommandFailedResponse overwrites any union data inside the TransferCommandContractStatus as the provided TransferCommandFailedResponse
func (*TransferCommandContractStatus) FromTransferCommandSentResponse ¶
func (t *TransferCommandContractStatus) FromTransferCommandSentResponse(v TransferCommandSentResponse) error
FromTransferCommandSentResponse overwrites any union data inside the TransferCommandContractStatus as the provided TransferCommandSentResponse
func (TransferCommandContractStatus) MarshalJSON ¶
func (t TransferCommandContractStatus) MarshalJSON() ([]byte, error)
func (*TransferCommandContractStatus) MergeTransferCommandCreatedResponse ¶
func (t *TransferCommandContractStatus) MergeTransferCommandCreatedResponse(v TransferCommandCreatedResponse) error
MergeTransferCommandCreatedResponse performs a merge with any union data inside the TransferCommandContractStatus, using the provided TransferCommandCreatedResponse
func (*TransferCommandContractStatus) MergeTransferCommandFailedResponse ¶
func (t *TransferCommandContractStatus) MergeTransferCommandFailedResponse(v TransferCommandFailedResponse) error
MergeTransferCommandFailedResponse performs a merge with any union data inside the TransferCommandContractStatus, using the provided TransferCommandFailedResponse
func (*TransferCommandContractStatus) MergeTransferCommandSentResponse ¶
func (t *TransferCommandContractStatus) MergeTransferCommandSentResponse(v TransferCommandSentResponse) error
MergeTransferCommandSentResponse performs a merge with any union data inside the TransferCommandContractStatus, using the provided TransferCommandSentResponse
func (*TransferCommandContractStatus) UnmarshalJSON ¶
func (t *TransferCommandContractStatus) UnmarshalJSON(b []byte) error
func (TransferCommandContractStatus) ValueByDiscriminator ¶
func (t TransferCommandContractStatus) ValueByDiscriminator() (interface{}, error)
type TransferCommandContractWithStatus ¶
type TransferCommandContractWithStatus struct {
Contract Contract `json:"contract"`
Status TransferCommandContractStatus `json:"status"`
}
TransferCommandContractWithStatus A contract of Daml template `Splice.ExternalPartyAmuletRules:TransferCommand`, and its status determined by the latest transactions.
type TransferCommandCreatedResponse ¶
type TransferCommandCreatedResponse = BaseLookupTransferCommandStatusResponse
TransferCommandCreatedResponse defines model for TransferCommandCreatedResponse.
type TransferCommandFailedResponse ¶
type TransferCommandFailedResponse struct {
// FailureKind The reason for the failure of the TransferCommand.
// failed:
// Completing the transfer failed, check the reason for details.
// withdrawn:
// The sender has withdrawn the TransferCommand before it could be completed.
// expired:
// The expiry time on the TransferCommand was reached before it could be completed.
FailureKind TransferCommandFailedResponseFailureKind `json:"failure_kind"`
// Reason Human readable description of the failure
Reason string `json:"reason"`
// Status The status of the transfer command.
// created:
// The transfer command has been created and is waiting for automation to complete it.
// sent:
// The transfer command has been completed and the transfer to the receiver has finished.
// failed:
// The transfer command has failed permanently and nothing has been transferred. Refer to
// failure_reason for details. A new transfer command can be created.
Status string `json:"status"`
}
TransferCommandFailedResponse defines model for TransferCommandFailedResponse.
type TransferCommandFailedResponseFailureKind ¶
type TransferCommandFailedResponseFailureKind string
TransferCommandFailedResponseFailureKind The reason for the failure of the TransferCommand. failed:
Completing the transfer failed, check the reason for details.
withdrawn:
The sender has withdrawn the TransferCommand before it could be completed.
expired:
The expiry time on the TransferCommand was reached before it could be completed.
const ( Expired TransferCommandFailedResponseFailureKind = "expired" Failed TransferCommandFailedResponseFailureKind = "failed" Withdrawn TransferCommandFailedResponseFailureKind = "withdrawn" )
Defines values for TransferCommandFailedResponseFailureKind.
type TransferCommandMap ¶
type TransferCommandMap map[string]TransferCommandContractWithStatus
TransferCommandMap defines model for TransferCommandMap.
type TransferCommandSentResponse ¶
type TransferCommandSentResponse = BaseLookupTransferCommandStatusResponse
TransferCommandSentResponse defines model for TransferCommandSentResponse.