Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateConfig ¶
ValidateConfig validates the base backup configuration
Types ¶
type Config ¶
type Config struct { ToBlock *uint64 // the right bound for the block range; latest if not specified FromBlock uint64 // the left bound for the block range Watch bool // flag indicating if incoming tx data should be backed up }
Config is the base chain backup configuration
func DefaultConfig ¶
func DefaultConfig() Config
DefaultConfig returns the default backup configuration
type Option ¶
type Option func(s *Service)
func WithLogger ¶
WithLogger specifies the logger for the backup service
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is the chain backup service
func NewService ¶
NewService creates a new backup service
Click to show internal directories.
Click to hide internal directories.