config

package
v0.0.0-...-756a3e5 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: MIT Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEchoLogConfig

func GetEchoLogConfig(appConf *AppConfig) middleware.LoggerConfig

Types

type AppConfig

type AppConfig struct {
	Environment string `json:"environment"`
	AppPort     string `json:"app_port"`
	BaseURL     string `json:"base_url"`
	DatabaseURL string `json:"database_url"`
	RedisURL    string `json:"redis_url"`

	Validator   echo.Validator        `json:"-"`
	CORSConfig  middleware.CORSConfig `json:"-"`
	FirebaseApp *firebase.App         `json:"-"`

	// 3rd-parties settings
	AutoMigrate bool   `json:"auto_migrate"`
	LogLevel    string `json:"log_level"`

	AuthProvider        string `json:"auth_provider"`
	FirebaseCreds       string `json:"firebase_creds"`
	FirebaseAuthCreds   string `json:"firebase_auth_creds"`
	KratosWebhookApiKey string `json:"kratos_webhook_api_key"`
	KratosApiEndpoint   string `json:"kratos_api_endpoint"`
}

AppConfig - Init app config

func InitAppConfig

func InitAppConfig() (*AppConfig, error)

type AppValidator

type AppValidator struct {
	// contains filtered or unexported fields
}

func (*AppValidator) Validate

func (cv *AppValidator) Validate(i interface{}) error

Jump to

Keyboard shortcuts

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