config

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultFileContent

func DefaultFileContent() string

Types

type Aliases added in v0.3.0

type Aliases map[string]string

type ColumnOptions added in v0.4.0

type ColumnOptions map[string]map[string]string

func (ColumnOptions) GetOption added in v0.4.0

func (co ColumnOptions) GetOption(columnName, option string) string

type Config

type Config struct {
	Logger  Logger  `toml:"logger"`
	Network Network `toml:"network"`
	Views   Views   `toml:"views"`
}

func Load

func Load(path string) (*Config, error)

func NewDefault

func NewDefault() *Config

type Logger

type Logger struct {
	Type string `toml:"type"`
	Dest string `toml:"dest"`
}

type Network

type Network struct {
	Name            string  `toml:"name"`
	Type            string  `toml:"type"`
	Address         string  `toml:"address"`
	Cert            string  `toml:"cert"`
	Macaroon        string  `toml:"macaroon"`
	MacaroonTimeOut int64   `toml:"macaroon_timeout"`
	MacaroonIP      string  `toml:"macaroon_ip"`
	MaxMsgRecvSize  int     `toml:"max_msg_recv_size"`
	ConnTimeout     int     `toml:"conn_timeout"`
	PoolCapacity    int     `toml:"pool_capacity"`
	Aliases         Aliases `toml:"aliases"`
}

type View added in v0.1.0

type View struct {
	Columns []string      `toml:"columns"`
	Options ColumnOptions `toml:"options"`
}

type Views added in v0.1.0

type Views struct {
	Channels     *View `toml:"channels"`
	Transactions *View `toml:"transactions"`
	Routing      *View `toml:"routing"`
	FwdingHist   *View `toml:"fwdinghist"`
}

Jump to

Keyboard shortcuts

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