config

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Catch added in v1.0.2

func Catch(h HttpHandler) http.HandlerFunc

func LoadRoutesFromJSON added in v1.0.1

func LoadRoutesFromJSON() error

Types

type CKey

type CKey string

type Config

type Config struct {
	DB        *conn.DB
	Mail      *mail.Mail
	Cache     *cache.Cache
	Builder   *gobuilder.GoBuilder
	Kafka     *conn.Kafka
	Redis     *conn.Redis
	Validator *validator.Validate
	SecretKey string
	Token     string
	QUERY     map[string]string
	Lang      string
	Langs     []string
	Routes    map[string]map[string]string
}

func App

func App() *Config

type HttpHandler added in v1.0.2

type HttpHandler func(w http.ResponseWriter, r *http.Request) error

Jump to

Keyboard shortcuts

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