config

package
v0.0.0-...-0895859 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// The config for this service.
	Service = config.New[Config]("service")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	TTL time.Duration `shana:"ttl"`
}

Config is the config for this service.

func (*Config) Init

func (c *Config) Init(ctx context.Context)

Init initializes the config's default.

func (*Config) Validate

func (c *Config) Validate(ctx context.Context)

Validate validates the config.

Jump to

Keyboard shortcuts

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