config

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2025 License: MIT Imports: 6 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 {
	EnvCI               string `validate:"required" env:"ENV_CI" example:"dev"`
	ServiceName         string `default:"downloaderbot" validate:"required"`
	Log                 logger.Config
	Ops                 ops.Config
	Redis               dragonfly.Config
	Grpc                grpc_transport.Config
	Limiter             limiter.Config
	S3                  s3.Config `env:"S3"`
	S3BaseUrl           string    `env:"S3_BASE_URL" validate:"required" default:"http://localhost:9050"`
	TelegramBotApiToken string    `validate:"required" secret:"true" usage:"use token for your telegram bot"`
	ProxyHttpEnabled    bool      `default:"false" usage:"enable proxy server for downloading media from youtube"`
	ProxyHttpBaseUrl    string    `validate:"required" default:"http://localhost:9020"`
}

Config ...

Jump to

Keyboard shortcuts

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