config

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Bind        string
	RPC         string
	Dev         bool
	Metrics     bool
	ChainId     string
	Versions    []int
	StartHeight int64
	TGSBaseURL  string
	Limiter     Limiter
}

func New

func New() *Config

func (*Config) Init

func (p *Config) Init(cfgFile string) error

type Limiter

type Limiter struct {
	Interval duration
	Capacity int64
}

Jump to

Keyboard shortcuts

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