Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddStandupChannel ¶
AddStandupChannel adds the specified channel to the list of standup channels. This is later user for iterating over all standup channels.
func GetStandupChannels ¶
GetStandupChannels fetches all channels where standup is configured. Returns a map of channel ID to channel ID for maintaining uniqueness.
func SaveUserStandup ¶
func SaveUserStandup(userStandup *UserStandup) error
SaveUserStandup saves a user's standup for a channel
Types ¶
type StandupConfig ¶
type StandupConfig struct { ChannelId string `json:"channelId"` WindowOpenTime otime.OTime `json:"windowOpenTime"` WindowCloseTime otime.OTime `json:"windowCloseTime"` ReportFormat string `json:"reportFormat"` Members []string `json:"members"` Sections []string `json:"sections"` Enabled bool `json:"enabled"` Timezone string `json:"timezone"` WindowOpenReminderEnabled bool `json:"windowOpenReminderEnabled"` WindowCloseReminderEnabled bool `json:"windowCloseReminderEnabled"` ScheduleEnabled bool `json:"scheduleEnabled"` }
func GetStandupConfig ¶
func GetStandupConfig(channelID string) (*StandupConfig, error)
GetStandupConfig fetches standup config for the specified channel
func SaveStandupConfig ¶
func SaveStandupConfig(standupConfig *StandupConfig) (*StandupConfig, error)
TODO this should return the set config SaveStandupConfig saves standup config for the specified channel
func (*StandupConfig) GenerateScheduleString ¶
func (sc *StandupConfig) GenerateScheduleString() string
GenerateScheduleString generates a user-friendly, string representation of standup schedule.
func (*StandupConfig) IsValid ¶
func (sc *StandupConfig) IsValid() error
func (*StandupConfig) ToJson ¶
func (sc *StandupConfig) ToJson() string
type UserStandup ¶
type UserStandup struct { UserID string `json:"userId"` ChannelID string `json:"channelId"` Standup map[string]*[]string `json:"standup"` }
func GetUserStandup ¶
func GetUserStandup(userID, channelID string, date otime.OTime) (*UserStandup, error)
GetUserStandup fetches a user's standup for the specified channel and date.
func (*UserStandup) IsValid ¶
func (us *UserStandup) IsValid() error