Documentation
¶
Index ¶
- func GetBlockRange(ctx context.Context, from, to uint64, c *ethrpc.Client) ([]*json.RawMessage, error)
- func GetBlockRangeInPages(ctx context.Context, from, to, pageSize uint64, c *ethrpc.Client) ([]*json.RawMessage, error)
- func GetReceipts(ctx context.Context, rawBlocks []*json.RawMessage, c *ethrpc.Client, ...) ([]*json.RawMessage, error)
- func GetTxPoolSize(rpc *ethrpc.Client) (uint64, error)
- func SetLogLevel(verbosity int)
- func SetLogMode(mode LogMode) error
- func ValidateUrl(input string) error
- type LogMode
- type VerbosityLevel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBlockRange ¶
func GetBlockRangeInPages ¶ added in v0.1.35
func GetReceipts ¶
func GetReceipts(ctx context.Context, rawBlocks []*json.RawMessage, c *ethrpc.Client, batchSize uint64) ([]*json.RawMessage, error)
func SetLogLevel ¶ added in v0.1.37
func SetLogLevel(verbosity int)
SetLogLevel sets the log level based on the flags. https://logging.apache.org/log4j/2.x/manual/customloglevels.html
func SetLogMode ¶ added in v0.1.37
SetLogMode updates the log format.
func ValidateUrl ¶ added in v0.1.35
ValidateUrl checks if a string URL can be parsed and if it has a valid scheme.
Types ¶
type VerbosityLevel ¶ added in v0.1.37
type VerbosityLevel int
VerbosityLevel represents the verbosity levels. https://pkg.go.dev/github.com/rs/zerolog#readme-leveled-logging
const ( Silent VerbosityLevel = 0 Panic VerbosityLevel = 100 Fatal VerbosityLevel = 200 Error VerbosityLevel = 300 Warn VerbosityLevel = 400 Info VerbosityLevel = 500 Debug VerbosityLevel = 600 Trace VerbosityLevel = 700 )
Click to show internal directories.
Click to hide internal directories.