Documentation
¶
Index ¶
- Variables
- func Auth(apiKey string) (token string, expiration time.Time, err error)
- func AuthWithURL(apiKey string, authServiceURL string) (token string, expiration time.Time, err error)
- func NameToString(in uint64) string
- func RegisterIncomingMessage(typeName string, obj interface{})
- func RegisterOutgoingMessage(typeName string, obj interface{})
- func StringToName(s string) (val uint64, err error)
- type ActionTrace
- type Client
- type CommonIn
- type CommonOut
- type Error
- type GetActionTraces
- type GetTableRows
- type Listening
- type MsgIn
- type MsgOut
- type OutgoingMessager
- type Progress
- type TableDelta
- type TableSnapshot
- type TableSnapshotRow
- type Unlisten
- type Unlistened
Constants ¶
This section is empty.
Variables ¶
View Source
var IncomingMessageMap = map[string]reflect.Type{}
View Source
var IncomingStructMap = map[reflect.Type]string{}
View Source
var OutgoingMessageMap = map[string]reflect.Type{}
View Source
var OutgoingStructMap = map[reflect.Type]string{}
Functions ¶
func AuthWithURL ¶
func NameToString ¶
func RegisterIncomingMessage ¶
func RegisterIncomingMessage(typeName string, obj interface{})
func RegisterOutgoingMessage ¶
func RegisterOutgoingMessage(typeName string, obj interface{})
func StringToName ¶
Types ¶
type ActionTrace ¶
type ActionTrace struct {
CommonIn
Data struct {
BlockNum uint32 `json:"block_num"`
BlockID string `json:"block_id"`
TransactionID string `json:"trx_id"`
ActionIndex int `json:"idx"`
ActionDepth int `json:"depth"`
Trace json.RawMessage `json:"trace"`
DBOps json.RawMessage `json:"dbops,omitempty"`
RAMOps json.RawMessage `json:"ramops,omitempty"`
DTrxOps json.RawMessage `json:"dtrxops,omitempty"`
} `json:"data"`
}
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Send ¶
func (c *Client) Send(msg OutgoingMessager) error
Send to the websocket, one of the messages registered through `RegisterOutboundMessage`.
type CommonOut ¶
type CommonOut struct {
Type string `json:"type"`
ReqID string `json:"req_id,omitempty"`
Fetch bool `json:"fetch,omitempty"`
Listen bool `json:"listen,omitempty"`
StartBlock int64 `json:"start_block,omitempty"`
IrreversibleOnly bool `json:"irreversible_only"`
WithProgress int64 `json:"with_progress,omitempty"`
}
type GetActionTraces ¶
type GetActionTraces struct {
CommonOut
Data struct {
Receivers string `json:"receivers,omitempty"`
Accounts string `json:"accounts"`
ActionNames string `json:"action_names,omitempty"`
Receiver string `json:"receiver,omitempty"`
Account string `json:"account,omitempty"`
ActionName string `json:"action_name,omitempty"`
WithDBOps bool `json:"with_dbops"`
WithRAMOps bool `json:"with_ramops"`
WithDTrxOps bool `json:"with_dtrxops"`
WithInlineTraces bool `json:"with_inline_traces"`
} `json:"data"`
}
type GetTableRows ¶
type MsgIn ¶
type MsgIn struct {
CommonIn
Data json.RawMessage `json:"data"`
}
type OutgoingMessager ¶
type TableDelta ¶
type TableSnapshot ¶
type TableSnapshot struct {
CommonIn
Data struct {
BlockNum uint32 `json:"block_num"`
Rows []json.RawMessage `json:"rows"`
} `json:"data"`
}
type TableSnapshotRow ¶
type TableSnapshotRow struct {
Key string `json:"key"`
Data json.RawMessage `json:"data"`
}
type Unlistened ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.