config

package
v1.5.5 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IConfig

type IConfig interface {
	Network() string
	Address() string
	Connection() string
}

func LoadConfig

func LoadConfig(filepath string) (IConfig, error)

func NewConfig

func NewConfig(filepath string, cfg *SConfig) (IConfig, error)

type SConfig

type SConfig struct {
	FNetwork    string `json:"network,omitempty"`
	FAddress    string `json:"address,omitempty"`
	FConnection string `json:"connection,omitempty"`
}

func (*SConfig) Address

func (cfg *SConfig) Address() string

func (*SConfig) Connection

func (cfg *SConfig) Connection() string

func (*SConfig) Network

func (cfg *SConfig) Network() string

Jump to

Keyboard shortcuts

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