model

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HookMap = make(map[string]HookFunc)

实现一个方法调用的接口集合 用于对各类hook的统一map管理 动态挂载卸载

Functions

This section is empty.

Types

type Config

type Config struct {
	DongtaiGoOpenapi        string `yaml:"DongtaiGoOpenapi"`
	DongtaiGoToken          string `yaml:"DongtaiGoToken"`
	DongtaiGoProjectName    string `yaml:"DongtaiGoProjectName"`
	DongtaiGoProjectVersion string `yaml:"DongtaiGoProjectVersion"`
	DongtaiGoProjectCreate  bool   `yaml:"DongtaiGoProjectCreate"`
}

type HookFunc

type HookFunc interface {
	Hook()
	UnHook()
}

定义的方法接口 后续更多功能 最好是嵌套接口

type HookStruct added in v0.3.1

type HookStruct interface {
	GetHook() []string
	HookAll()
	UnHookAll()
}

type More

type More interface {
	HookFunc
	More()
}

接口扩展时期示例 不影响原有功能

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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