Documentation ¶
Index ¶
Constants ¶
View Source
const ( UpdateStatusPropertyName = "update_status" GetConfirmationPropertyName = "get_confirmation" ReceiveNotificationsDuringMeetingName = "receive_notifications_during_meetings" SubscribePropertyName = "subscribe" ReceiveUpcomingEventReminderName = "receive_reminder" )
View Source
const ( UpdateStatusSettingID = "update_status" GetConfirmationSettingID = "get_confirmation" ReceiveNotificationsDuringMeetingID = "receive_notification" ReceiveRemindersSettingID = "get_reminders" DailySummarySettingID = "summary_setting" )
View Source
const ( UserKeyPrefix = "user_" UserIndexKeyPrefix = "userindex_" MattermostUserIDKeyPrefix = "mmuid_" OAuth2KeyPrefix = "oauth2_" SubscriptionKeyPrefix = "sub_" EventKeyPrefix = "ev_" WelcomeKeyPrefix = "welcome_" SettingsPanelPrefix = "settings_panel_" )
View Source
const OAuth2KeyExpiration = 15 * time.Minute
Variables ¶
View Source
var ErrNotFound = kvstore.ErrNotFound
Functions ¶
This section is empty.
Types ¶
type DailySummaryUserSettings ¶
type DailySummaryUserSettings struct { PostTime string `json:"post_time"` // Kitchen format, i.e. 8:30AM Timezone string `json:"tz"` // Timezone in MSCal when PostTime is set/updated LastPostTime string `json:"last_post_time"` Enable bool `json:"enable"` }
func DefaultDailySummaryUserSettings ¶
func DefaultDailySummaryUserSettings() *DailySummaryUserSettings
type EventStore ¶
type OAuth2StateStore ¶
type OAuth2StateStore interface { VerifyOAuth2State(state string) error StoreOAuth2State(state string) error }
OAuth2StateStore manages OAuth2 state
type Settings ¶
type Store ¶
type Store interface { UserStore OAuth2StateStore SubscriptionStore EventStore WelcomeStore flow.Store settingspanel.SettingStore settingspanel.PanelStore }
type Subscription ¶
type Subscription struct { PluginVersion string Remote *remote.Subscription MattermostCreatorID string }
type SubscriptionStore ¶
type SubscriptionStore interface { LoadSubscription(subscriptionID string) (*Subscription, error) StoreUserSubscription(user *User, subscription *Subscription) error DeleteUserSubscription(user *User, subscriptionID string) error }
type User ¶
type UserIndex ¶
type UserIndex []*UserShort
func (UserIndex) ByMattermostID ¶
func (UserIndex) ByRemoteID ¶
func (UserIndex) GetMattermostUserIDs ¶
type UserStore ¶
type UserStore interface { LoadUser(mattermostUserID string) (*User, error) LoadMattermostUserID(remoteUserID string) (string, error) LoadUserIndex() (UserIndex, error) StoreUser(user *User) error LoadUserFromIndex(mattermostUserID string) (*UserShort, error) DeleteUser(mattermostUserID string) error ModifyUserIndex(modify func(userIndex UserIndex) (UserIndex, error)) error StoreUserInIndex(user *User) error DeleteUserFromIndex(mattermostUserID string) error StoreUserActiveEvents(mattermostUserID string, events []string) error }
type WelcomeFlowStatus ¶
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package mock_store is a generated GoMock package.
|
Package mock_store is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.