app

package
v0.0.0-...-5f49e88 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2025 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Application

func Application(rootCtx context.Context, bots map[string]BotConfig, tgAPIOrigin, build string) error

func LoadConfigs

func LoadConfigs(files ...string) (map[string]BotConfig, string, error)

func MainVersion

func MainVersion() string

func SetupLogging

func SetupLogging()

func ShowVersionInfo

func ShowVersionInfo()

Types

type BotConfig

type BotConfig struct {
	ControlAddr       string
	Token             string
	Script            string
	LongRunningScript string
	ConfigFileDir     string
}

Jump to

Keyboard shortcuts

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