example

package
v0.0.0-...-34841a2 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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
}

func (*Mod) Init

func (m *Mod) Init(h *kernel.Hub) error

func (*Mod) Load

func (m *Mod) Load(h *kernel.Hub) error

func (*Mod) Name

func (m *Mod) Name() string

func (*Mod) PostInit

func (m *Mod) PostInit(h *kernel.Hub) error

func (*Mod) PreInit

func (m *Mod) PreInit(h *kernel.Hub) error

func (*Mod) Start

func (m *Mod) Start(h *kernel.Hub) error

func (*Mod) Stop

func (m *Mod) Stop(wg *sync.WaitGroup, ctx context.Context) error

Directories

Path Synopsis
e

Jump to

Keyboard shortcuts

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