Documentation
¶
Index ¶
- func DoRequest(url string, validator ValidatorData) *http.Response
- func GetBalance(blockNumber string, validator ValidatorData) (balance *uint256.Int, err error)
- func GetBalanceChange(blocks []BlockData, validator ValidatorData) (balance, change *uint256.Int, err error)
- func GetBlockCount(blocks []BlockData, validator ValidatorData) (blockCount int, err error)
- func ReadBody(rawResponse *http.Response, out IResponse) error
- type BlockData
- type Config
- type IResponse
- type ResponseBalance
- type ResponseBlocks
- type Validator
- type ValidatorData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBalance ¶
func GetBalance(blockNumber string, validator ValidatorData) (balance *uint256.Int, err error)
func GetBalanceChange ¶
func GetBalanceChange(blocks []BlockData, validator ValidatorData) (balance, change *uint256.Int, err error)
func GetBlockCount ¶
func GetBlockCount(blocks []BlockData, validator ValidatorData) (blockCount int, err error)
Types ¶
type Config ¶
type Config struct {
Validators []ValidatorData `json:"validators"`
}
type ResponseBalance ¶
type ResponseBalance struct { Message string `json:"error,omitempty"` Result string `json:"result"` }
func (*ResponseBalance) GetMessage ¶
func (r *ResponseBalance) GetMessage() string
func (*ResponseBalance) GetResult ¶
func (r *ResponseBalance) GetResult() interface{}
type ResponseBlocks ¶
func (*ResponseBlocks) GetMessage ¶
func (r *ResponseBlocks) GetMessage() string
func (*ResponseBlocks) GetResult ¶
func (r *ResponseBlocks) GetResult() interface{}
Click to show internal directories.
Click to hide internal directories.