modular

package
v1.116.1-rc Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close(ctx context.Context, ball *mud.Ball, selector mud.ComponentSelector) (err error)

Close closes all the resources.

func CreateSelector

func CreateSelector() mud.ComponentSelector

CreateSelector create a custom component hierarchy selector based on environment variables. This is the way how it is possible to replace components of the process or disable existing ones.

func IdentityModule

func IdentityModule(ball *mud.Ball)

IdentityModule provides identity related components for modular setup.

func Initialize

func Initialize(ctx context.Context, ball *mud.Ball, selector mud.ComponentSelector) (err error)

Initialize creates all the requested components.

func Run

func Run(ctx context.Context, ball *mud.Ball, selector mud.ComponentSelector) (err error)

Run runs storage node until it's either closed or it errors.

Types

type Service

type Service struct{}

Service is a marker annotation for all components which should be started (with all the dependencies).

func (Service) String

func (s Service) String() string

type StopTrigger

type StopTrigger struct {
	Cancel context.CancelFunc
}

StopTrigger is a helper to stop all the components and finish the process. Just call cancel.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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