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

component

package
v2.6.5 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 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 {
}

Base is an embeddable no-op implementation of Component.

func (*Base) Close added in v2.2.3

func (b *Base) Close()

Close closes the component.

func (*Base) Destroy

func (b *Base) Destroy()

Destroy destroys the component.

func (*Base) Init

func (b *Base) Init()

Init initializes the component.

func (*Base) Name

func (b *Base) Name() string

Name returns the component name.

func (*Base) Start

func (b *Base) Start()

Start starts the component.

type Component

type Component interface {
	// Name returns the component name.
	Name() string
	// Init initializes the component.
	Init()
	// Start starts the component.
	Start()
	// Close closes the component.
	Close()
	// Destroy destroys the component.
	Destroy()
}

Component is the interface that every component of the framework must implement.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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