app

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2025 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrApplicationStarted = errors.New("already started")
	ErrApplicationStopped = errors.New("already stopped")
	Indicators            []*health.Indicator
)

Functions

This section is empty.

Types

type Application

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

func New added in v0.7.0

func New(cfg *config.Config) (*Application, error)

func (*Application) Config added in v0.3.0

func (app *Application) Config() *config.Config

func (*Application) DB

func (app *Application) DB() *db.DB

func (*Application) NodeID added in v0.3.0

func (app *Application) NodeID() string

func (*Application) Start

func (app *Application) Start() error

Start starts application

func (*Application) Stop

func (app *Application) Stop() error

Stop sotps application

func (*Application) Wait

func (app *Application) Wait()

func (*Application) Worker added in v0.8.0

func (app *Application) Worker() *worker.Worker

Jump to

Keyboard shortcuts

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