config

package
v0.0.0-...-cb1d88c Latest Latest
Warning

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

Go to latest
Published: Nov 25, 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 {
	TelegramToken    string `json:"TELEGRAM_TOKEN"`
	AllowedIDs       string `json:"ALLOWED_IDS"`
	NotifyTelegramID string `json:"NOTIFY_TELEGRAM_ID"`

	GitlabToken         string `json:"GITLAB_TOKEN"`
	GitlabURL           string `json:"GITLAB_URL"`
	GitlabUsername      string `json:"GITLAB_USERNAME"`
	GitlabTrackProjects string `json:"GITLAB_TRACK_PROJECTS"`
	GitlabTrackOnlySelf bool   `json:"GITLAB_TRACK_ONLY_SELF"`

	GitlabTrackProjectsList []string
	AllowedIDsList          []string
}

Config ...

func InitConfig

func InitConfig(args []string, fileSystem fs.FS, filename string) (*Config, error)

Jump to

Keyboard shortcuts

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