module

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 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 IdByHash

type IdByHash interface {
	IdByHash(ctx context.Context, hash ...[]byte) ([]uint64, error)
}

type Module

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

func New

func New(
	celestialsDatasource config.DataSource,
	address IdByHash,
	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 WithAddressPrefix

func WithAddressPrefix(prefix string) ModuleOption

func WithDatabaseTimeout

func WithDatabaseTimeout(timeout time.Duration) ModuleOption

func WithIndexPeriod

func WithIndexPeriod(period time.Duration) ModuleOption

func WithLimit

func WithLimit(limit int64) ModuleOption

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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