config

package
v0.0.0-...-b557599 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: MIT Imports: 4 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 {
	Application string
	Environment string
	Server      struct {
		Host   string
		Port   int
		Secret string
	}
	Database struct {
		URL *url.URL
	}
	Redis struct {
		URL *url.URL
	}
	Session struct {
		Name   string
		Secure bool
		MaxAge int
	}
	IdentityToken struct {
		MaxAge int
	}
	VerificationToken struct {
		MaxAge int
	}
	Mailer struct {
		Host     string
		Port     int
		Username string
		Password string
		Sender   string
		Timeout  int
	}
}

func ReadEnv

func ReadEnv() *Config

Jump to

Keyboard shortcuts

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