config

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2016 License: MIT Imports: 0 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 {
	Main struct {
		Sync          bool   `ini:"sync"`
		ConcurrentNum int    `ini:"concurrentNum"`
		Timeout       int64  `ini:"timeout"`
		LoginShell    string `ini:"loginShell"`
		FileTransBuf  int    `ini:"fileTransBuf"`
	}
	Logger struct {
		Level   string `ini:"level"`
		LogFile string `ini:"logFile"`
		LogType string `ini:"logType"`
	}
	DataSource struct {
		Type string `ini:"type"`
		Conn string `ini:"conn"`
	}
	CmdAlias map[string]string
}

Config config 数据结构体

type Loader

type Loader interface {
	Load() (*Config, error)
	Save(*Config) error
}

Loader 定义统一的配置加载接口

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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