Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Archive ¶
type Archive struct { Height int `json:"hieght"` Type int `json:"type"` TxHash string `json:"tx_hash"` OpHash string `json:"op_hash"` PublicKey string `json:"public_key"` Signature string `json:"signature"` Parents []string `json:"parents"` AccountNonce int `json:"account_nonce"` MindNonce int `json:"mind_nonce"` Weight int `json:"weight"` Data string `json:"data"` }
type OgArchiveResponse ¶
type OgArchiveResponse struct { // TODO: you need to fix the response structure. Message string Data interface{} }
type OgClient ¶
type OgClient struct { Config OgClientConfig // contains filtered or unexported fields }
func NewOgClient ¶
func NewOgClient(config OgClientConfig) *OgClient
func (*OgClient) ConsumeQueue ¶
func (o *OgClient) ConsumeQueue()
func (*OgClient) EnqueueSendToLedger ¶
func (o *OgClient) EnqueueSendToLedger(command *core_interface.BlockDBMessage) error
func (*OgClient) InitDefault ¶
func (m *OgClient) InitDefault()
type OgClientConfig ¶
type Result ¶
type Result struct { // Type is the json type Type Type // Raw is the raw json Raw string // Str is the json string Str string // Num is the json number Num float64 // Index of raw value in original json, zero means index unknown Index int }
Result represents a json value that is returned from Get().
func Parse ¶
Parse parses the json and returns a result.
This function expects that the json is well-formed, and does not validate. Invalid json will not panic, but it may return back unexpected results. If you are consuming JSON from an unpredictable source then you may want to use the Valid function first.
Click to show internal directories.
Click to hide internal directories.