director

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: May 30, 2022 License: Unlicense Imports: 6 Imported by: 11

Documentation

Index

Constants

View Source
const ProfilesBananerFileName = "bananer.text"

默认读Bananer存放地址

View Source
const ProfilesCfgDefaultKey1 = "octopus"

默认读配置文件

View Source
const ProfilesCfgDefaultKey2 = "cfg"

默认读配置文件

View Source
const ProfilesCfgDefaultKey3 = "active"

默认读配置文件

View Source
const ProfilesCfgPath = "profiles"

配置文件路径

View Source
const ProfilesCfgPrefix = "cfg"

什么形式开头

View Source
const ProfilesCfgType = "yaml"

文件类型

Variables

This section is empty.

Functions

func FindDeepOrders

func FindDeepOrders(deepMap map[string][]string) []string

func FindHeadOrders

func FindHeadOrders(deepMap map[string][]string) []string

func ReadCfg

func ReadCfg(path ...string) interface{}

读配置文件变量

func Register

func Register(lang interface{})

lang注册到core里面

func SetProfilesCfgPath

func SetProfilesCfgPath(cfgLocationPath string)

配置文件路径

func Start

func Start()

启动

func Stop

func Stop()

停止

func Unregister

func Unregister(lang interface{})

lang注销core里面的实例

func WriteCfg

func WriteCfg(writeCfg interface{}, path ...string)

修改配置文件变量

Types

type BaseStart

type BaseStart interface {
	Start()
}

启动包需要start继承该接口

type BaseStop

type BaseStop interface {
	Stop()
}

启动包需要stop继承该接口

type DirectorStart

type DirectorStart struct {
}

DirectorStart

func (*DirectorStart) Start

func (d *DirectorStart) Start()

type DirectorStop

type DirectorStop struct {
}

Director停止方法

func (*DirectorStop) Stop

func (d *DirectorStop) Stop()

type OctopusDirector

type OctopusDirector struct {
	ProfilesCfgPath   []string                    //配置文件路劲
	ProfilesCfgType   string                      //配置文件类型
	ProfilesCfgPrefix string                      //配置文件前缀
	Config            map[interface{}]interface{} //配置文件详情
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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