config

package
v0.0.0-...-187b2eb Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ServerConfig      *Server
	DatabaseConfig    *Database
	MeiliSearchConfig *MeiliSearch
	RedisConfig       *Redis
	SentryConfig      *Sentry
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Server      *Server      `yaml:"server"`
	Database    *Database    `yaml:"database"`
	MeiliSearch *MeiliSearch `yaml:"meilisearch"`
	Redis       *Redis       `yaml:"redis"`
	Sentry      *Sentry      `yaml:"sentry"`
}

type Database

type Database struct {
	Dsn string `yaml:"dsn"`
}

type MeiliSearch

type MeiliSearch struct {
	Server    string `yaml:"server"`
	MasterKey string `yaml:"masterKey"`
	BatchSize int    `yaml:"batchSize"`
}

type Redis

type Redis struct {
	Addr     string `yaml:"addr"`
	Password string `yaml:"password"`
	DB       int    `yaml:"db"`
}

type Sentry

type Sentry struct {
	Dsn         string `yaml:"dsn"`
	Environment string `yaml:"environment"`
}

type Server

type Server struct {
	Listen        string `yaml:"listen"`
	Timezone      string `yaml:"timezone"`
	LogTimeFormat string `yaml:"logTimeFormat"`
}

Jump to

Keyboard shortcuts

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