component

package
v0.0.0-...-e849032 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPProf

func NewPProf() *pprof

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

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()
}

Jump to

Keyboard shortcuts

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