compdef

package module
v0.86.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: Apache-2.0 Imports: 1 Imported by: 10 modules, 6 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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