configs

package
v0.0.0-...-0329133 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Server struct {
		Host string `toml:"host"`

		Port int `toml:"port"`
	} `toml:"server"`

	Database struct {
		Host string `toml:"host"`

		Port int `toml:"port"`

		User string `toml:"user"`

		Password string `toml:"password"`

		DBName string `toml:"db_name"`
	} `toml:"database"`

	Redis struct {
		Host string `toml:"host"`

		Port int `toml:"port"`

		Username string `toml:"username"`

		Password string `toml:"password"`

		DB int `toml:"db"`
	} `toml:"redis"`

	SearchService struct {
		Host string `toml:"host"`
		Port int    `toml:"port"`
	} `toml:"search_service"`

	Compress struct {
		Level compress.Level `toml:"level"`
	} `toml:"compress"`

	Env struct {
		Type string `toml:"type"`
	} `toml:"env"`
}

func NewConfig

func NewConfig() (*Config, error)

Jump to

Keyboard shortcuts

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