config

package
v0.0.0-...-bebbdda Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 5 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 {
	SlackUserToken                  string        `env:"SLACK_USER_TOKEN,required"`
	SlackAppToken                   string        `env:"SLACK_APP_TOKEN,required"`
	SlackBotToken                   string        `env:"SLACK_BOT_TOKEN,required"`
	SlackCacheDuration              time.Duration `env:"SLACK_CACHE_DURATION" envDefault:"5m"`
	SlackDetermineYearCacheDuration time.Duration `env:"SLACK_DETERMINE_YEAR_CACHE_DURATION" envDefault:"72h"`

	// MCG Joinを監視するチャンネル
	MCGJoinChannelRegex string `env:"MCG_JOIN_CHANNEL_REGEX" envDefault:"^([0-9]{4})-general$"`

	LogLevelString string `env:"LOG_LEVEL" envDefault:"info"`
	LogLevel       slog.Level
}

func Load

func Load() (Config, error)

Jump to

Keyboard shortcuts

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