Help us shape the future of Go! Take the 2026 Go Developer Survey

component

package
v2.4.2 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2025 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) Close

func (b *Base) Close()

Close 关闭组件

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) Start

func (b *Base) Start()

Start 启动组件

type Component

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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