component

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: MIT Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base struct {
}

func (*Base) Destroy

func (b *Base) Destroy()

Destroy 销毁组件

func (*Base) Init

func (b *Base) Init()

Init 初始化组件

func (*Base) Name

func (b *Base) Name() string

Name 组件名称

func (*Base) Restart added in v0.0.3

func (b *Base) Restart()

Restart 重启组件

func (*Base) Start

func (b *Base) Start()

Start 启动组件

type Component

type Component interface {
	// Name 组件名称
	Name() string
	// Init 初始化组件
	Init()
	// Start 启动组件
	Start()
	// Restart 重启组件
	Restart()
	// Destroy 销毁组件
	Destroy()
}

Directories

Path Synopsis
http module

Jump to

Keyboard shortcuts

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