Documentation ¶
Index ¶
- Constants
- func GetConfig() config.RpcConfig
- func GetEmptyParent() [MetricIdSize]byte
- func GetEmptyParentAny() []byte
- func SaveBlockTxs(blockTxs BlockTxs) error
- func SendNewTx(raw []byte) error
- func SetConfig(config config.RpcConfig)
- type Balance
- type BlockHeight
- type BlockHeightGetter
- type BlockInfo
- type BlockTx
- type BlockTxs
- type Connection
- type GetBlock
- type GetBlockInfos
- type GetBlockTxs
- type GetDoubleSpends
- type GetMempoolTxs
- type GetOutputInput
- type GetTx
- type GetTxBlock
- type GetUtxos
- type In
- type MetricInfo
- type MetricTime
- type MetricTimeGetter
- type Metrics
- type Out
- type OutputMessenger
- type SendTx
- type Tx
- type TxProcessed
- type Utxo
Constants ¶
View Source
const (
MetricIdSize = 32
)
Variables ¶
This section is empty.
Functions ¶
func GetEmptyParent ¶
func GetEmptyParent() [MetricIdSize]byte
func GetEmptyParentAny ¶
func GetEmptyParentAny() []byte
func SaveBlockTxs ¶
Types ¶
type Balance ¶
type Balance struct { Address string Balance int64 Spendable int64 UtxoCount int Spends int Outputs int UTXOs int Txs int }
func NewBalance ¶
func NewBalance() *Balance
func (*Balance) GetByAddress ¶
func (*Balance) GetByAddresses ¶
type BlockHeight ¶
type BlockHeightGetter ¶
type BlockHeightGetter struct {
BlockHeights []*BlockHeight
}
func NewBlockHeight ¶
func NewBlockHeight() *BlockHeightGetter
func (*BlockHeightGetter) Get ¶
func (h *BlockHeightGetter) Get(startHeight int64) error
type BlockInfo ¶
func (BlockInfo) GetHashString ¶
type Connection ¶
type Connection struct { Client network_pb.NetworkClient // contains filtered or unexported fields }
func NewConnection ¶
func NewConnection() (*Connection, error)
func (*Connection) Close ¶
func (c *Connection) Close()
func (*Connection) GetDefaultContext ¶
func (c *Connection) GetDefaultContext() context.Context
func (*Connection) GetTimeoutContext ¶
func (c *Connection) GetTimeoutContext(d time.Duration) context.Context
type GetBlock ¶
type GetBlock struct {
Block *BlockInfo
}
func NewGetBlock ¶
func NewGetBlock() *GetBlock
func (*GetBlock) GetByHeight ¶
type GetBlockInfos ¶
type GetBlockInfos struct {
Blocks []BlockInfo
}
func NewGetBlockInfos ¶
func NewGetBlockInfos() *GetBlockInfos
func (GetBlockInfos) GetMaxHeight ¶
func (t GetBlockInfos) GetMaxHeight() int64
func (GetBlockInfos) GetMinHeight ¶
func (t GetBlockInfos) GetMinHeight() int64
type GetBlockTxs ¶
func NewGetBlockTxs ¶
func NewGetBlockTxs() *GetBlockTxs
func (*GetBlockTxs) GetByHeight ¶
func (t *GetBlockTxs) GetByHeight(height int64) error
type GetDoubleSpends ¶
type GetDoubleSpends struct {
Txs []Tx
}
func NewGetDoubleSpends ¶
func NewGetDoubleSpends() *GetDoubleSpends
func (*GetDoubleSpends) Get ¶
func (s *GetDoubleSpends) Get(startTx []byte) error
type GetMempoolTxs ¶
type GetMempoolTxs struct {
Txs []Tx
}
func NewGetMempoolTxs ¶
func NewGetMempoolTxs() *GetMempoolTxs
func (*GetMempoolTxs) Get ¶
func (t *GetMempoolTxs) Get(startTx []byte) error
type GetOutputInput ¶
type GetOutputInput struct {
Inputs []In
}
func NewGetOutputInput ¶
func NewGetOutputInput() *GetOutputInput
func (*GetOutputInput) Get ¶
func (g *GetOutputInput) Get(outs []Out) error
type GetTxBlock ¶
type GetTxBlock struct {
Txs []BlockTx
}
func NewGetTxBlock ¶
func NewGetTxBlock() *GetTxBlock
func (*GetTxBlock) Get ¶
func (t *GetTxBlock) Get(txHashes [][]byte) error
type GetUtxos ¶
type GetUtxos struct {
Utxos []Utxo
}
func NewGetUtxos ¶
func NewGetUtxos() *GetUtxos
type MetricInfo ¶
type MetricInfo struct { Id []byte Parent []byte Action string Order int32 Count int32 Start time.Time Duration time.Duration Children []*MetricInfo }
func (MetricInfo) IdShort ¶
func (i MetricInfo) IdShort() string
func (MetricInfo) IdString ¶
func (i MetricInfo) IdString() string
func (MetricInfo) ParentShort ¶
func (i MetricInfo) ParentShort() string
func (MetricInfo) ParentString ¶
func (i MetricInfo) ParentString() string
func (*MetricInfo) SetChildren ¶
func (i *MetricInfo) SetChildren(tree bool) error
type MetricTime ¶
func (MetricTime) IdShort ¶
func (t MetricTime) IdShort() string
func (MetricTime) IdString ¶
func (t MetricTime) IdString() string
type MetricTimeGetter ¶
type MetricTimeGetter struct {
MetricTimes []*MetricTime
}
func NewMetricTimeGetter ¶
func NewMetricTimeGetter() *MetricTimeGetter
type Metrics ¶
type Metrics struct {
Infos []*MetricInfo
}
func NewMetrics ¶
func NewMetrics() *Metrics
func (*Metrics) GetByParentId ¶
type OutputMessenger ¶
type OutputMessenger struct { }
func NewOutputMessenger ¶
func NewOutputMessenger() *OutputMessenger
func (*OutputMessenger) Output ¶
func (m *OutputMessenger) Output(message string) error
type TxProcessed ¶
func NewTxProcessed ¶
func NewTxProcessed() *TxProcessed
func (*TxProcessed) Get ¶
func (t *TxProcessed) Get(txHash []byte) error
Click to show internal directories.
Click to hide internal directories.