config

package
v0.0.0-...-6480b7a Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: MIT Imports: 4 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 {
	DB      DBConfig
	Redis   RedisConfig
	ELastic ElasticConfig
}

Config is the struct for the config

func NewConfig

func NewConfig() *Config

NewConfig creates a new Config struct

type DBConfig

type DBConfig struct {
	DSN string
}

DBConfig represents DB configuration.

func LoadDBConfig

func LoadDBConfig() DBConfig

LoadDBConfig loads DB configuration from file.

type ElasticConfig

type ElasticConfig struct {
	ElasticConfig *elasticsearch.Config
	IndexContent  string
}

func LoadElasticConfig

func LoadElasticConfig() ElasticConfig

LoadElasticConfig loads the elasticsearch configuration

type MailConfig

type MailConfig struct {
	SMTPHost     string
	SMTPPort     string
	SenderName   string
	ReceiverName string
	AuthEmail    string
	AuthPassword string
}

SentryConfig is the sentry configuration

func LoadMailConfig

func LoadMailConfig() MailConfig

LoadMailConfig loads the sentry configuration

type RedisConfig

type RedisConfig struct {
	Host string
	Port int
}

func LoadRedisConfig

func LoadRedisConfig() RedisConfig

Jump to

Keyboard shortcuts

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