config

package
v0.0.0-...-6cb3d19 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2023 License: Apache-2.0 Imports: 3 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 {
	AllowedOrigins string `env:"ALLOWED_ORIGINS"`
	Port           uint16 `env:"PORT" env-default:"3333"`
	Debug          bool   `env:"DEBUG"`
	DSN            string `env:"DSN"`
	Method         string `env:"METHOD"`
	Freq           string `env:"FREQ" env-default:"DAILY"`
	EndDate        string `env:"END_DATE"`
}

func (*AppConfig) MarshalZerologObject

func (c *AppConfig) MarshalZerologObject(e *zerolog.Event)

type AppState

type AppState struct {
	AppConfig   *AppConfig
	DBConn      *gorm.DB
	Ended       bool
	QuizList    processor.QuizSequence
	QuizCounter int
}

Jump to

Keyboard shortcuts

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