config

package
v0.0.0-...-7d8e025 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	KeyFile string
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Key            []byte
	Level          string `default:"info"`
	Address        string `default:"127.0.0.1"`
	Port           int    `default:"7777"`
	DBPath         string `default:"./db.bolt"`
	AdminRole      string `default:"admin"`
	UserRole       string `default:"user"`
	SignAdminToken bool
	SignDuration   time.Duration
	SignEmail      string
	GenerateKey    bool
}

func Load

func Load() (*Config, error)

Jump to

Keyboard shortcuts

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