config

package
v0.0.0-...-4c8f420 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiServer

type ApiServer struct {
	BindAddress     string
	DomainAddress   string
	ReadTimeout     int
	WriteTimeout    int
	IdleTimeout     int
	HeaderTimeout   int
	ResolverTimeout int
	CorsOrigin      []string
}

type Config

type Config struct {
	DB              DB
	Rpc             Rpc
	Api             ApiServer
	Logger          Logging
	GasMonetization GasMonetization
	Slack           Slack
	AppName         string
}

func Load

func Load(ctx *cli.Context) *Config

type DB

type DB struct {
	User     string
	Password string
	Host     string
	Port     string
	Name     string
}

type GasMonetization

type GasMonetization struct {
	StartFromBlock uint64
	// address of the gas monetization contract
	ContractAddress string
	// private key of the account that will be used to provide data for gas monetization contract
	DataProviderPK string
}

type Logging

type Logging struct {
	LoggingLevel logging.Level
	LogFormat    string
}

type Rpc

type Rpc struct {
	OperaRpcUrl   string
	TracingRpcUrl string
}

type Slack

type Slack struct {
	Token     string
	ChannelId string
}

Slack is a configuration for Slack notifications.

Jump to

Keyboard shortcuts

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