Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitConfig ¶
func InitConfig(filename string)
Types ¶
type BirthdaysDirectMessageReminder ¶
type BirthdaysDirectMessageReminder struct { Enabled bool `mapstructure:"enabled"` MessageTemplate string `mapstructure:"message_template" validate:"required"` PreReminderDaysBefore int64 `mapstructure:"pre_reminder_days_before" validate:"required"` PreRemidnerMessageTemplate string `mapstructure:"pre_remidner_message_template" validate:"required"` AlwaysNotifySlackIds []string `mapstructure:"always_notify_slack_ids" validate:"required"` }
type Config ¶
type DownloadingUsers ¶
type MonthlyReport ¶
type Person ¶
type Person struct { SlackMemberID string `mapstructure:"slack_member_id" validate:"required"` BirthDate time.Time `mapstructure:"birth_date" validate:"required"` JoinDate time.Time `mapstructure:"join_date" validate:"required"` LeadSlackMemberID *string `mapstructure:"lead_slack_member_id" validate:"required"` }
type Slack ¶
type Slack struct { BotToken string UserToken string AnniversaryChannelReminder AnniversaryChannelReminder `mapstructure:"anniversary_channel_reminder" validate:"required"` BirthdaysChannelReminder BirthdaysChannelReminder `mapstructure:"birthdays_channel_reminder" validate:"required"` BirthdaysPersonalReminder BirthdaysPersonalReminder `mapstructure:"birthdays_personal_reminder" validate:"required"` BirthdaysDirectMessageReminder BirthdaysDirectMessageReminder `mapstructure:"birthdays_direct_message_reminder" validate:"required"` MonthlyReport MonthlyReport `mapstructure:"monthly_report" validate:"required"` DownloadingUsers DownloadingUsers `mapstructure:"downloading_users" validate:"required"` }
Click to show internal directories.
Click to hide internal directories.