config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2022 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultLogDirectory  = fmt.Sprintf("%s/.%s/logs", homeDir, constants.AppName)
	DefaultLoggingConfig = logging.Config{
		RotatingWriterConfig: logging.RotatingWriterConfig{
			MaxSize:   64 * units.MiB,
			MaxFiles:  32,
			MaxAge:    7,
			Directory: DefaultLogDirectory,
			Compress:  false,
		},
		DisplayLevel: logging.Info,
		LogLevel:     logging.Debug,
	}
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Logger      logging.Config `json:"logger"`
	RPCAddr     string         `json:"rpcAddr"`
	PdsEndpoint string         `json:"pdsEndpoint"` // persistent data source endpoint
}

func New

func New(data []byte) (*Config, error)

Jump to

Keyboard shortcuts

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