config

package
v0.0.0-...-ef8624d Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 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 {
	LiteDB      string `required:"true"`
	BooksDir    string `required:"true"`
	TorrentsDir string `required:"true"`
	Debug       bool

	Server Server
	Mailer mail.MailerConfig
	JWT    JWT
}

func GetConfig

func GetConfig() (Config, error)

type JWT

type JWT struct {
	PrivateKey string `required:"true"`
	PublicKey  string `required:"true"`
}

type Server

type Server struct {
	Port int `default:"8080"`
}

Jump to

Keyboard shortcuts

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