config

package
v0.2.10 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: MIT, MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Plugin         bool
	Robots         bool
	Name           string
	PublicUrlPath  string
	PublicLocalDir string
}

type Cache

type Cache struct {
	Memory *memory.Client
	Redis  *redis.Client
}

type Config

type Config struct {
	App          App
	Cache        Cache
	Database     map[string]*esquel.DB
	Dev          Dev
	Export       Export
	Form         form.Config
	Filesystem   filesystem.Config
	Localization Localization
	Logger       *logger.Logger
	Parser       Parser
	Router       Router
	Security     Security
	Smtp         mailer.Config
	Ws           socketer.Config
}

func (Config) Init

func (c Config) Init() Config

type Dev added in v0.1.8

type Dev struct {
	LiveReload bool
	Tool       bool
}

type Export

type Export struct {
	Gotenberg Gotenberg
}

type Gotenberg

type Gotenberg struct {
	Endpoint string
}

type Language

type Language struct {
	Main bool
	Code string
}

type Localization

type Localization struct {
	Enabled    bool
	Path       bool
	Languages  []Language
	Translator translator.Translator
	Form       form.Messages
}

type Parser

type Parser struct {
	Limit int64
}

type Prefix

type Prefix struct {
	Name   string
	Proxy  string
	Cookie string
	Path   any
}

type Router

type Router struct {
	Prefix  Prefix
	Recover bool
}

type Security

type Security struct {
	Auth     auth.Config
	Csrf     csrf.Csrf
	Firewall []firewall.Firewall
}

Jump to

Keyboard shortcuts

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