global_configuration

package
v0.0.0-...-d23ef4a Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GlobalConfig

type GlobalConfig struct {
	Rpc Rpc
	Sys Sys
}

type Rpc

type Rpc struct {
	Port uint16
}

type Service

type Service interface {
	services.ServiceLifeCycle
	Get() GlobalConfig
	Write(config *GlobalConfig) error
}

func GetGlobalConfig

func GetGlobalConfig() Service

type Sys

type Sys struct {
	WorkPath     string `yaml:"work-path"`
	DatabasePath string `yaml:"database-path"`
	PluginPath   string `yaml:"plugin-path"`
	PluginWebs   string `yaml:"plugin-webs"`
}

Jump to

Keyboard shortcuts

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