config

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package config

Package config

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultSetter added in v1.0.1

type DefaultSetter interface {
	InitDefaults()
}

type Item added in v1.0.1

type Item interface {
	Verifiable
	DefaultSetter
}

type LogConfig

type LogConfig struct {
	Level      string `yaml:"level"`
	Path       string `yaml:"path"`
	Rotate     bool   `yaml:"rotate"`
	MaxSize    int    `yaml:"max_size"`
	MaxAge     int    `yaml:"max_age"`
	MaxBackups int    `yaml:"max_backups"`
	Compress   bool   `yaml:"compress"`
	LocalTime  bool   `yaml:"local_time"`
}

func (*LogConfig) InitDefaults added in v1.0.1

func (l *LogConfig) InitDefaults()

func (*LogConfig) Verify

func (l *LogConfig) Verify() (bool, error)

type ManagerInterface

type ManagerInterface[T Item] interface {
	Init() error
	GetConfig() T
	SaveConfig() error
}

type Verifiable added in v1.0.1

type Verifiable interface {
	Verify() (bool, error)
}

Jump to

Keyboard shortcuts

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