config

package
v0.0.0-...-18d231c Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Storage Storage `yaml:"storage"`
}

func Default

func Default() Config

func Parse

func Parse(path string) (Config, error)

type DB

type DB struct {
	Enable        bool  `yaml:"enable"`
	FilingSize    int64 `yaml:"filingSize"`
	FlushMethod   int   `yaml:"flushMethod"`
	FlushInterval uint  `yaml:"flushInterval"`
}

type Log

type Log struct {
	Enable bool `yaml:"enable"`
}

type Storage

type Storage struct {
	Dir string `yaml:"dir"`
	Log Log    `yaml:"log"`
	DB  DB     `yaml:"db"`
}

Jump to

Keyboard shortcuts

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