config

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EmptyProxy = &Proxy{
		Url:    "",
		Enable: false,
	}
)
View Source
var EmptyStorage = &Storage{
	SdkPath: "",
}

Functions

This section is empty.

Types

type Config

type Config struct {
	Proxy   *Proxy   `yaml:"proxy"`
	Storage *Storage `yaml:"storage"`
}

func NewConfig

func NewConfig(path string) (*Config, error)

func NewConfigWithPath

func NewConfigWithPath(p string) (*Config, error)

type Proxy

type Proxy struct {
	Url    string `yaml:"url"`
	Enable bool   `yaml:"enable"`
}

type Storage added in v0.2.3

type Storage struct {
	SdkPath string `yaml:"sdkPath"`
}

func (*Storage) Validate added in v0.2.3

func (s *Storage) Validate() error

Jump to

Keyboard shortcuts

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