config

package
v0.0.0-...-f990510 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	IsProduction     bool
	DSN              string
	DB               *sql.DB
	Session          *scs.SessionManager
	Port             string // ":8080"
	InfoLog          *log.Logger
	ErrorLog         *log.Logger
	InfoChan         chan (string)
	ErrorChan        chan error
	ErrorDoneChan    chan bool
	ReminderDoneChan chan bool
	WG               sync.WaitGroup
	Context          context.Context
	MU               sync.Mutex
	Mailer           mailer.Mailer
	SessionManager   *scs.SessionManager
}

func NewAppConfig

func NewAppConfig() AppConfig

NewAppConfig returns an app config preloaded with a few necessary components

type Apper

type Apper interface{}

Jump to

Keyboard shortcuts

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