config

package
v0.0.0-...-eedf098 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	BotToken            string `required:"true" split_words:"true"`
	Admins              []int  `required:"true" split_words:"true"`
	BroadcastChannel    int64  `required:"true" split_words:"true"`
	TwitterAPIKey       string `required:"true" split_words:"true"`
	TwitterAPISecret    string `required:"true" split_words:"true"`
	TwitterBearerToken  string `required:"true" split_words:"true"`
	TwitterAccessToken  string `required:"true" split_words:"true"`
	TwitterAccessSecret string `required:"true" split_words:"true"`
	Environment         string `required:"true" split_words:"true"`
	LogFile             string `split_words:"true"`
}

func NewAppConfig

func NewAppConfig() (AppConfig, error)

func (AppConfig) IsAdmin

func (ec AppConfig) IsAdmin(userID int) bool

func (AppConfig) IsProd

func (ec AppConfig) IsProd() bool

Jump to

Keyboard shortcuts

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