config

package
v1.0.11-x.1 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: LGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IndexerVersionMajor = 1        // Indexer major version component of the current release
	IndexerVersionMinor = 0        // Indexer minor version component of the current release
	IndexerVersionPatch = 11       // 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
}

Config of the service.

func New

func New(getter kv.Getter) Config

New Config.

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