gonnarain

package module
v0.0.0-...-3eeeb6d Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2022 License: MIT Imports: 10 Imported by: 0

README

cento educacional logo

go-daemon-example

Criação de daemons utilizando Go

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = Config{
	Interval: time.Second,
}

Functions

func Run

func Run(ctx context.Context, cfg *Config, logger *log.Logger) error

Types

type Config

type Config struct {
	Interval time.Duration `yaml:"interval"`
}

func (*Config) Load

func (c *Config) Load(args []string) error

type DbusInterface

type DbusInterface interface {
	DisasterAlert(msg string) *dbus.Error
}

Directories

Path Synopsis
cmd
internal

Jump to

Keyboard shortcuts

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