app

package
v0.0.0-...-8561c97 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Development = RunEnv("Development")
	Staging     = RunEnv("Staging")
	Production  = RunEnv("Production")
)

Variables

This section is empty.

Functions

func GetAppLogger

func GetAppLogger() *zap.Logger

func InitAppConfig

func InitAppConfig() error

func InitAppLogger

func InitAppLogger(config AppConfig) error

Types

type AppConfig

type AppConfig struct {
	Env         RunEnv `envconfig:"RUN_ENV" required:"true"`
	DatabaseUrl string `envconfig:"DATABASE_URL" default:"postgres://postgres:postgres@127.0.0.1:/postgres?sslmode=disable"`
}

func GetAppConfig

func GetAppConfig() AppConfig

type Handlers

type Handlers struct {
	HealthzHandler handler.HealthzHandler
	GroupHandler   handler.GroupHandler
}

func NewHandlers

func NewHandlers() Handlers

type RunEnv

type RunEnv string

func (*RunEnv) Decode

func (m *RunEnv) Decode(value string) error

Jump to

Keyboard shortcuts

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