daemon

package
v0.0.1-101123-c741ed7 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultConfigPath = "/etc/standup/daemon/config.yaml"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Database struct {
		DBS string `yaml:"dbs" validate:"required"`
	} `yaml:"database" validate:"required"`

	Service struct {
		Addr string `yaml:"addr" validate:"required,hostname_port"`
	} `yaml:"service" validate:"required"`

	Auth struct {
		Disable       bool   `yaml:"disable"`
		PublicKeyFile string `yaml:"public_key_file" validate:"required_without=Disable"`
	} `yaml:"auth" validate:"required"`
}

type Daemon

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

func NewDaemon

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

func (*Daemon) GracefulStop

func (d *Daemon) GracefulStop(ctx context.Context) error

func (*Daemon) Start

func (d *Daemon) Start(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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