config

package
v0.0.0-...-8bd38d8 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const ConfigFileName = "/data/options.json"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	TelegramTarget string `json:"TELEGRAM_TARGET"`
	TelegramToken  string `json:"TELEGRAM_TOKEN"`
	TelegramAdmin  string `json:"TELEGRAM_ADMIN_ID"`

	ListenHost string `json:"LISTEN_HOST"`
	ListenPort string `json:"LISTEN_PORT"`

	VkConfirmation string `json:"VK_CONFIRMATION"`
	VkSecret       string `json:"VK_SECRET"`

	TelegramTargetID int64
	TelegramAdminID  int64

	Debug bool `json:"DEBUG"`
}

Config ...

func InitConfig

func InitConfig(args []string) (*Config, error)

Jump to

Keyboard shortcuts

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