Documentation
¶
Index ¶
- Variables
- type Command
- type CommandKind
- type Event
- type EventKind
- type InterrogateTransaction
- type ModelError
- type Priority
- type SpeedUpTransaction
- type SubmitTransaction
- type TransactionCanceled
- type TransactionCompleted
- type TransactionDetails
- type TransactionInterrogated
- type TransactionSpeededUp
- type TransactionSubmitted
- type TxContext
Constants ¶
This section is empty.
Variables ¶
var CommandKindValues = []any{"submitTx", "interrogateTx", "speedUpTx", "createAccount", "listAccount", "disableAccount"}
var EventKindValues = []any{"submitted", "interrogated", "speededup", "completed"}
var PriorityValues = []any{"low", "standard", "fast"}
var ValuesToCommandKind = map[any]CommandKind{ CommandKindValues[CommandKindSubmitTx]: CommandKindSubmitTx, CommandKindValues[CommandKindInterrogateTx]: CommandKindInterrogateTx, CommandKindValues[CommandKindSpeedUpTx]: CommandKindSpeedUpTx, CommandKindValues[CommandKindCreateAccount]: CommandKindCreateAccount, CommandKindValues[CommandKindListAccount]: CommandKindListAccount, CommandKindValues[CommandKindDisableAccount]: CommandKindDisableAccount, }
var ValuesToEventKind = map[any]EventKind{ EventKindValues[EventKindSubmitted]: EventKindSubmitted, EventKindValues[EventKindInterrogated]: EventKindInterrogated, EventKindValues[EventKindSpeededup]: EventKindSpeededup, EventKindValues[EventKindCompleted]: EventKindCompleted, }
var ValuesToPriority = map[any]Priority{ PriorityValues[PriorityLow]: PriorityLow, PriorityValues[PriorityStandard]: PriorityStandard, PriorityValues[PriorityFast]: PriorityFast, }
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct { Kind *CommandKind `json:"kind" mapstructure:"kind"` Details interface{} `json:"details" mapstructure:"details"` }
Command represents a Command model.
type CommandKind ¶
type CommandKind uint
CommandKind represents an enum of CommandKind.
const ( CommandKindSubmitTx CommandKind = iota CommandKindInterrogateTx CommandKindSpeedUpTx CommandKindCreateAccount CommandKindListAccount CommandKindDisableAccount )
type Event ¶
type Event struct { Kind *EventKind `json:"kind" mapstructure:"kind"` Details interface{} `json:"details" mapstructure:"details"` }
Event represents a Event model.
type InterrogateTransaction ¶
type InterrogateTransaction struct { Blockchain string `json:"blockchain" mapstructure:"blockchain"` Context *TxContext `json:"context" mapstructure:"context"` }
InterrogateTransaction represents a InterrogateTransaction model.
type ModelError ¶
type ModelError struct { Code int `json:"code" mapstructure:"code"` Key string `json:"key" mapstructure:"key"` Message string `json:"message" mapstructure:"message"` ExternalRef string `json:"external_ref" mapstructure:"external_ref"` }
ModelError represents a ModelError model.
type SpeedUpTransaction ¶
type SpeedUpTransaction struct { Context *TxContext `json:"context" mapstructure:"context"` Blockchain string `json:"blockchain" mapstructure:"blockchain"` Priority *Priority `json:"priority" mapstructure:"priority"` }
SpeedUpTransaction represents a SpeedUpTransaction model.
type SubmitTransaction ¶
type SubmitTransaction struct { Context *TxContext `json:"context" mapstructure:"context"` BinaryHex string `json:"binary_hex" mapstructure:"binary_hex"` Blockchain string `json:"blockchain" mapstructure:"blockchain"` Priority *Priority `json:"priority" mapstructure:"priority"` Retry bool `json:"retry" mapstructure:"retry"` }
SubmitTransaction represents a SubmitTransaction model.
type TransactionCanceled ¶
type TransactionCanceled struct { Id string `json:"id" mapstructure:"id"` Context *TxContext `json:"context" mapstructure:"context"` }
TransactionCanceled represents a TransactionCanceled model.
type TransactionCompleted ¶
type TransactionCompleted struct { Id string `json:"id" mapstructure:"id"` Details *TransactionDetails `json:"details" mapstructure:"details"` Context *TxContext `json:"context" mapstructure:"context"` }
TransactionCompleted represents a TransactionCompleted model.
type TransactionDetails ¶
type TransactionDetails struct { Status string `json:"status" mapstructure:"status"` Hash string `json:"hash" mapstructure:"hash"` }
TransactionDetails represents a TransactionDetails model.
type TransactionInterrogated ¶
type TransactionInterrogated struct { Id string `json:"id" mapstructure:"id"` Details *TransactionDetails `json:"details" mapstructure:"details"` Context *TxContext `json:"context" mapstructure:"context"` }
TransactionInterrogated represents a TransactionInterrogated model.
type TransactionSpeededUp ¶
type TransactionSpeededUp struct { Id string `json:"id" mapstructure:"id"` Context *TxContext `json:"context" mapstructure:"context"` }
TransactionSpeededUp represents a TransactionSpeededUp model.
type TransactionSubmitted ¶
type TransactionSubmitted struct { Id string `json:"id" mapstructure:"id"` Context *TxContext `json:"context" mapstructure:"context"` }
TransactionSubmitted represents a TransactionSubmitted model.