ethspider

package module
v0.0.0-...-347a207 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 23, 2021 License: MIT Imports: 10 Imported by: 0

README

ethspider

a spider for eth's data from RPC API

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Version

func Version() string

Version return eth spider's version

Types

type Option

type Option interface {
	// contains filtered or unexported methods
}

Option configures how we set up the spider.

func WithRPCAddr

func WithRPCAddr(addr string) Option

WithRPCAddr determines which addr to connect to

type Spider

type Spider struct {
	// contains filtered or unexported fields
}

Spider is the main service

func (*Spider) Init

func (s *Spider) Init(opts ...Option) (err error)

Init create and init a zap SugarLogger

func (*Spider) Start

func (s *Spider) Start() (err error)

Start start the spider

Directories

Path Synopsis
cmd
Package ethclient provides a client for the Ethereum RPC API.
Package ethclient provides a client for the Ethereum RPC API.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL