app

package
v0.3.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrApplicationStarted = errors.New("already started")
	ErrApplicationStopped = errors.New("already stopped")
)

Functions

This section is empty.

Types

type Application

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

func NewApplication

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

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()

Jump to

Keyboard shortcuts

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