You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
288 B
Go
18 lines
288 B
Go
2 years ago
|
package components
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
|
||
|
"github.com/urfave/cli/v2"
|
||
|
)
|
||
|
|
||
|
type Component interface {
|
||
|
Name() string
|
||
|
Priority() int
|
||
|
Initialized() bool
|
||
2 years ago
|
Init(components *Registry, cli *cli.Context) error
|
||
2 years ago
|
Stop() error
|
||
2 years ago
|
Flags(r *Registry) []cli.Flag
|
||
2 years ago
|
Health(context context.Context) error
|
||
2 years ago
|
}
|