cfg

package
v0.0.0-...-6c03f8d Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2020 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrChainsConfigMustBeStringMap = errors.New("Chain config must a string map")
)

Functions

This section is empty.

Types

type APIConfig

type APIConfig struct {
	Common
	ListenAddr string
}

APIConfig manages configuration data for the API app

func NewAPIConfig

func NewAPIConfig(file string) (APIConfig, error)

NewAPIConfig returns a *APIConfig populated with data from the given file

type ChainConfig

type ChainConfig struct {
	ID     ids.ID
	Alias  string
	VMType string
}

type ChainsConfig

type ChainsConfig map[ids.ID]ChainConfig

type ClientConfig

type ClientConfig struct {
	Common

	KafkaConfig
	FilterConfig
	Context string
	IPCRoot string
}

ClientConfig manages configuration data for the client app

func NewClientConfig

func NewClientConfig(context string, file string) (ClientConfig, error)

NewClientConfig returns a *ClientConfig populated with data from the given file

type Common

type Common struct {
	NetworkID uint32
	ChainsConfig
	ServiceConfig
}

type DBConfig

type DBConfig struct {
	DSN    string
	Driver string
	TXDB   bool
}

type FilterConfig

type FilterConfig struct {
	Min uint32
	Max uint32
}

type KafkaConfig

type KafkaConfig struct {
	Brokers   []string
	GroupName string
}

type ServiceConfig

type ServiceConfig struct {
	Redis   *redis.Options
	DB      *DBConfig
	Logging logging.Config
}

Jump to

Keyboard shortcuts

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