config

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: LGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IndexerVersionMajor = 1        // Indexer major version component of the current release
	IndexerVersionMinor = 1        // Indexer minor version component of the current release
	IndexerVersionPatch = 4        // Indexer patch version component of the current release
	IndexerVersionMeta  = "stable" // Indexer version metadata to append to the version string
)

Variables

View Source
var IndexerVersion = func() string {
	return fmt.Sprintf("%d.%d.%d", IndexerVersionMajor, IndexerVersionMinor, IndexerVersionPatch)
}()

IndexerVersion holds the textual indexer version string.

View Source
var IndexerVersionWithMeta = func() string {
	v := IndexerVersion
	if IndexerVersionMeta != "" {
		v += "-" + IndexerVersionMeta
	}
	return v
}()

IndexerVersionWithMeta holds the textual indexer version string including the metadata.

Functions

func VersionWithCommit

func VersionWithCommit(gitCommit, gitDate string) string

Types

type Config

type Config interface {
	comfig.Logger
	comfig.Listenerer
	pgdb.Databaser
	Client() *ethclient.Client
	Notifier(ctx context.Context) *firebase.Notifier
	IgnoreNotificationsCfg() int64
	LayerZeroLists() LayerZeroListsCfg
	ContractsRegistry() ContractsRegistry
}

Config of the service.

func New

func New(getter kv.Getter) Config

New Config.

type ContractsRegistry added in v1.1.1

type ContractsRegistry struct {
	Registry       *common.Address `fig:"registry"`
	RewardReceiver *common.Address `fig:"reward_receiver"`
}

type LayerZeroListsCfg added in v1.0.0

type LayerZeroListsCfg struct {
	CachePeriod time.Duration `fig:"cache_period"`
}

type WhitelistApprovalsCfg added in v1.0.0

type WhitelistApprovalsCfg struct {
	CachingDelay int64 `fig:"caching_delay"`
}

Jump to

Keyboard shortcuts

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