config

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	Disable    bool          `toml:"disable,omitempty"`
	Expiration time.Duration `toml:"expiration,omitempty"`
}

func (*Cache) ConfigName

func (cfg *Cache) ConfigName() string

func (*Cache) InitDefaults

func (cfg *Cache) InitDefaults()

func (*Cache) New

func (cfg *Cache) New() *cache.Cache

func (*Cache) Sample

func (cfg *Cache) Sample(dst io.Writer, path config.Path, _ config.CtxMap)

type Config

type Config struct {
	config.NoValidator
	Cache Cache `toml:"cache"`
}

func (*Config) ConfigName

func (cfg *Config) ConfigName() string

func (*Config) InitDefaults

func (cfg *Config) InitDefaults()

func (*Config) Sample

func (cfg *Config) Sample(dst io.Writer, path config.Path, ctx config.CtxMap)

Jump to

Keyboard shortcuts

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