logwriter

package
v0.0.0-...-21b5888 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	User     string `yaml:"User" validate:"nonzero"`
	Socket   string `yaml:"Socket" validate:"nonzero"`
	Password string `yaml:"Password" validate:"nonzero"`
	LogPath  string `yaml:"LogPath" validate:"nonzero"`
	Interval int    `yaml:"Interval" validate:"nonzero"`
}

type LogWriter

type LogWriter interface {
	Write(string) error
}

func New

func New(db *sql.DB, logPath string) LogWriter

Jump to

Keyboard shortcuts

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