config

package
v0.0.0-...-c2329a5 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: MIT Imports: 3 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 {
	Port   string `env:"PORT" envDefault:"3000"`
	DBPath string `env:"DB_PATH" envDefault:"honeypot.db"`
	// contains filtered or unexported fields
}

func ParseConfig

func ParseConfig() (Config, error)

func (*Config) SlogLevel

func (c *Config) SlogLevel() slog.Level

Jump to

Keyboard shortcuts

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