config

package
v0.0.0-...-5375319 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2021 License: MIT Imports: 12 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 {
	// Embed
	BuildName string `json:"build_name"`
	Version   string `json:"version"`
	// Process Chan
	ApiChan chan string
	// Detect
	HomeDir      string
	ExcavatorDir string
	OS           string
	Arch         string
	RigData      *rig.Data

	// Utils
	CreatedAt time.Time
	// contains filtered or unexported fields
}

func New

func New() (*Config, error)

func (*Config) Init

func (c *Config) Init() (err error)

Init allows to search exist configuration or create it

func (*Config) Save

func (c *Config) Save() error

Save allows to save current configuration into json file

func (*Config) StopAPI

func (c *Config) StopAPI()

Jump to

Keyboard shortcuts

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