config

package
v0.2.11 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2023 License: Apache-2.0 Imports: 9 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 WriteFingConfig added in v0.1.12

func WriteFingConfig(cfg *FingConfig) error

Types

type FingConfig added in v0.1.12

type FingConfig struct {
	LastCheckedAt time.Time `json:"last_checked_at"`
}

func ReadFingConfig added in v0.1.12

func ReadFingConfig() (*FingConfig, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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