config

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

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

Go to latest
Published: Jan 3, 2022 License: MIT Imports: 6 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 {
	Addr      string        `json:"addr"`
	AddrRPC   string        `json:"addr_rpc"`
	AddrPprof string        `json:"addr_pprof"`
	Peers     []string      `json:"peers"`
	Network   proto.Network `json:"network"`
}

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func NewManager

func NewManager(dir, filename string) (*Manager, error)

func (*Manager) Dir

func (m *Manager) Dir() string

func (*Manager) Load

func (m *Manager) Load(i interface{}) error

func (*Manager) Prepare

func (m *Manager) Prepare(i interface{}) error

func (*Manager) Save

func (m *Manager) Save(i interface{}) error

Jump to

Keyboard shortcuts

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