cfg

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2026 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version string = "v0.3.2"

Functions

This section is empty.

Types

type BucketConfig

type BucketConfig struct {
	Encrypt bool
}

type Config

type Config struct {
	Debug           bool
	Dbfile          string
	Dbbucket        string
	Template        string
	Mode            string // wide, table, yaml, json
	NoHeaders       bool
	NoHumanize      bool
	Encrypt         bool // one entry
	CaseInsensitive bool
	Fulltext        bool
	Listen          string
	Buckets         map[string]BucketConfig // config file only

	Tags []string // internal
	DB   *app.DB  // internal
	File string   // internal
}

func (*Config) GetConfig

func (conf *Config) GetConfig(files []string) error

func (*Config) ParseConfigFile

func (conf *Config) ParseConfigFile(file string) error

func (*Config) SetLogger

func (conf *Config) SetLogger()

Jump to

Keyboard shortcuts

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