conf

package
v0.0.0-...-fcc202b Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Getworkdir

func Getworkdir() (string, error)

Types

type Config

type Config struct {
	Mode     string
	Mysqldb  Mysql `toml:"mysql"`
	Fileinfo File  `toml:"file"`
	Filepath string
}

func Newconfig

func Newconfig(filename string) (*Config, error)

func (*Config) GetDBparams

func (c *Config) GetDBparams() Mysql

func (*Config) GetFileinfo

func (c *Config) GetFileinfo() File

func (*Config) GetHostfile

func (c *Config) GetHostfile(filepath string) (*File, error)

func (*Config) Getmode

func (c *Config) Getmode() string

type File

type File struct {
	Hostpath  string
	Grouppath string
}

type Mysql

type Mysql struct {
	Username string
	Password string
	Host     string
	Dbname   string
	Ipaddr   string
	Port     int64
}

Jump to

Keyboard shortcuts

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