persist

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFileLogger

func NewFileLogger(logFilename string) (*zap.Logger, func(), error)

NewFileLogger returns a logger that logs to logFilename.

Types

type HSDConfig

type HSDConfig struct {
	GatewayMainnet string `json:"gatewayMainnet"`
	GatewayZen     string `json:"gatewayZen"`
	APIAddr        string `json:"api"`
	Dir            string `json:"dir"`
	DBUser         string `json:"dbUser"`
	DBName         string `json:"dbName"`
}

HSDConfig contains the fields that are passed on to the new node.

func (*HSDConfig) Load

func (hsdc *HSDConfig) Load(dir string) (ok bool, err error)

Load loads the configuration from disk.

func (*HSDConfig) Save

func (hsdc *HSDConfig) Save(dir string) error

Save stores the configuration on disk.

Jump to

Keyboard shortcuts

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