compdef

package module
v0.67.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2025 License: Apache-2.0 Imports: 1 Imported by: 4

Documentation

Overview

Package compdef defines basic types used for components

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 In added in v0.55.0

type In struct{}

In has no semantic meaning, but makes conversion a bit easier

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

type Shutdowner added in v0.57.0

type Shutdowner interface {
	Shutdown() error
}

Shutdowner may be added to a component's dependencies so it can shutdown the application

Jump to

Keyboard shortcuts

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