config

package
v0.0.0-...-804f5dd Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Author = "scyking"
	PName  = "GPics"
)
View Source
const (
	GitInfoRepositoryKey = "git.info.repository"
	GitInfoServerKey     = "git.info.server"
	GitInfoUserNameKey   = "git.info.username"
	GitInfoPasswordKey   = "git.info.password"
	GitInfoTokenKey      = "git.info.token"
	WorkspaceKey         = "workspace"
	OnQuickKey           = "on-quick"
	QuickDirKey          = "quick-dir"
	AutoCommitKey        = "auto-commit"
	TimeOutKey           = "remote-commit-timeout"
)

Variables

This section is empty.

Functions

func BoolValue

func BoolValue(key string) (bool, error)

func IntValue

func IntValue(key string) (int, error)

func Reset

func Reset() error

func Save

func Save(cf *Config) error

func SetWorkspace

func SetWorkspace(ws string) error

func Settings

func Settings() walk.Settings

func StringValue

func StringValue(key string) (string, error)

func Workspace

func Workspace() (string, bool)

Types

type Config

type Config struct {
	GitInfo
	Workspace  string
	OnQuick    bool   //开启快捷上传
	QuickDir   string //快捷上传目录
	AutoCommit bool   //自动提交到远程
	TimeOut    int    //超时时间(单位:s)
}

func NewConfig

func NewConfig() *Config

type GitInfo

type GitInfo struct {
	Repository string
	Server     string
	UserName   string
	Password   string
	Token      string
}

Jump to

Keyboard shortcuts

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