daemon

package
v0.3.9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Daemon

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

Daemon represent top level daemon

func New

func New(ctx context.Context, cfg *_cfg.Config) (*Daemon, error)

New create Daemon

func (*Daemon) Run

func (d *Daemon) Run() error

Run daemon and wait for system signal or error in error channel

func (*Daemon) Shutdown

func (d *Daemon) Shutdown(hardShutdown bool, shutdownTimeout time.Duration)

Shutdown daemon

Jump to

Keyboard shortcuts

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