config

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrConfigFileNotFound = errors.New("fing config file not found")
)

Functions

func ReadAppConfig

func ReadAppConfig(path string) (*api.AppConfig, error)

ReadAppConfig reads config file from path

func WriteAppConfig

func WriteAppConfig(path, filename string, cfg *api.AppConfig) error

WriteAppConfig writes config file to path

func WriteAuthConfig

func WriteAuthConfig(cfg *AuthConfig) error

Types

type AuthConfig

type AuthConfig struct {
	Token string `json:"token"`
	Email string `json:"email"`
}

func ReadAuthConfig

func ReadAuthConfig() (*AuthConfig, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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