bootstrapify

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRunComponent

func NewRunComponent(name string, opts ...RunComponentOption) components.Component

Types

type Config

type Config struct {
	Logger *zerolog.Logger
}

type Option

type Option func(*Service) error

func Component

func Component(c components.Component, opts ...components.Option) Option

func Run

func Run(name string, opts ...RunComponentOption) Option

type RunComponent

type RunComponent struct {
	components.Base
	// contains filtered or unexported fields
}

func (*RunComponent) Configure

func (c *RunComponent) Configure(opts ...components.Option) error

func (*RunComponent) Shutdown

func (c *RunComponent) Shutdown() error

func (*RunComponent) Start

func (c *RunComponent) Start() error

type RunComponentHook

type RunComponentHook func(*RunComponent) error

type RunComponentHooks

type RunComponentHooks struct {
	// contains filtered or unexported fields
}

type RunComponentOption

type RunComponentOption func(*RunComponent)

func RunAfter

func RunAfter(dependencies ...string) RunComponentOption

func RunAfterConfigure

func RunAfterConfigure(fn RunComponentHook) RunComponentOption

func RunAfterShutdown

func RunAfterShutdown(fn RunComponentHook) RunComponentOption

func RunAfterStart

func RunAfterStart(fn RunComponentHook) RunComponentOption

func RunComponentOptions

func RunComponentOptions(opts ...RunComponentOption) RunComponentOption

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(cfg Config, opts ...Option) *Service

func (Service) Start

func (svc Service) Start() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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