module

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2025 License: MIT Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddressHandler added in v0.0.4

type AddressHandler func(ctx context.Context, address string) (uint64, error)

type Module

type Module struct {
	modules.BaseModule
	// contains filtered or unexported fields
}

func New

func New(
	celestialsDatasource config.DataSource,
	addressHandler AddressHandler,
	celestials storage.ICelestial,
	state storage.ICelestialState,
	tx sdk.Transactable,
	indexerName string,
	network string,
	opts ...ModuleOption,
) *Module

func (*Module) Close

func (m *Module) Close() error

func (*Module) Start

func (m *Module) Start(ctx context.Context)

type ModuleOption

type ModuleOption func(*Module)

func WithDatabaseTimeout

func WithDatabaseTimeout(timeout time.Duration) ModuleOption

func WithIndexPeriod

func WithIndexPeriod(period time.Duration) ModuleOption

func WithLimit

func WithLimit(limit int64) ModuleOption

Jump to

Keyboard shortcuts

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