config

package
v0.0.0-...-9a938bf Latest Latest
Warning

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

Go to latest
Published: Feb 19, 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 {
	Database            DatabaseConfig
	Telegram            TelegramConfig
	Notion              NotionConfig
	GigaChat            GigaChatConfig
	Salutespeech        SalutespeechConfig
	VoicesFileDirectory string
	BatchSize           int
}

func New

func New() (*Config, error)

type DatabaseConfig

type DatabaseConfig struct {
	Host        string
	Port        int
	User        string
	Password    string
	DbName      string
	DSNTemplate string
}

type GigaChatConfig

type GigaChatConfig struct {
	Host        string
	APIBasePath string
	Token       string
	Auth        string
}

type NotionConfig

type NotionConfig struct {
	Host             string
	APIBasePath      string
	Version          string
	IntegrationToken string
}

type SalutespeechConfig

type SalutespeechConfig struct {
	Host        string
	APIBasePath string
	Token       string
	Auth        string
}

type TelegramConfig

type TelegramConfig struct {
	Host  string
	Token string
}

Jump to

Keyboard shortcuts

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