compdef

package module
v0.55.0-devel Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package compdef defines basic types used for components

Package compdef defines basic types used for components

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hook

type Hook struct {
	OnStart lchFunc
	OnStop  lchFunc
}

Hook represents a function pair for a component's startup and shutdown

type Lifecycle

type Lifecycle interface {
	Append(h Hook)
}

Lifecycle may be added to a component's requires struct if it wants to add hooks

type Out

type Out struct{}

Out can be put in a struct that represents a collection of Components

Jump to

Keyboard shortcuts

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