Documentation ¶
Index ¶
- Variables
- type Mod
- func (m *Mod) Init(h *kernel.Hub) error
- func (m *Mod) Load(h *kernel.Hub) error
- func (m *Mod) Name() string
- func (m *Mod) PostInit(h *kernel.Hub) error
- func (m *Mod) PreInit(h *kernel.Hub) error
- func (m *Mod) Start(h *kernel.Hub) error
- func (m *Mod) Stop(wg *sync.WaitGroup, ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
View Source
var FS embed.FS
FS contains all files in this module, and since embed does not support import relative dir, we move embed from "modGenerator" to "example"
Functions ¶
This section is empty.
Types ¶
type Mod ¶
type Mod struct {
kernel.UnimplementedModule // 请为所有Module引入UnimplementedModule
}
Click to show internal directories.
Click to hide internal directories.