core

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: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallMethod

func CallMethod(name string, methodName string, in ...interface{}) []interface{}

func CallStartByName

func CallStartByName(name string)

func CallStopByName

func CallStopByName(name string)

func Create

func Create()

创建octopusCore

func DependenceInject

func DependenceInject(Config map[interface{}]interface{})

依赖注入

func GetLang

func GetLang(langName string) interface{}

依赖注入

func GetStartOctopusLang

func GetStartOctopusLang() map[string][]string

func GetStopOctopusLang

func GetStopOctopusLang() map[string][]string

func Register

func Register(lang interface{})

lang注册到core里面

func Unregister

func Unregister(lang interface{})

lang注销core里面的实例

Types

type OctopusCore

type OctopusCore struct {
	OctopusLang map[string]*interface{}     //初始化注入结构体
	Config      map[interface{}]interface{} //配置文件详情
	// contains filtered or unexported fields
}

func (*OctopusCore) CallMethod

func (c *OctopusCore) CallMethod(name string, methodName string, in []interface{}) []interface{}

Jump to

Keyboard shortcuts

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