Versions in this module Expand all Collapse all v0 v0.1.1 Nov 1, 2023 Changes in this version type MattermostBackend + func (mm *MattermostBackend) ResetAllUserPrefernces() error + func (mm *MattermostBackend) ResetPreferences(user *model.User) error + func (mm *MattermostBackend) SetUserPreference(user *model.User, name string, newValue any) error v0.0.0 Jun 15, 2023 Changes in this version + func CreateTeam(mmTeam *mm_model.Team) *model.Team + func CreateTeamArray(array []*mm_model.Team) []*model.Team + type MANKVStore struct + LastNotifiedTimestamp int64 + UserPreferences map[string]model.MANUserPreferences + type MattermostBackend struct + func NewMattermostBackend(api plugin.API, db *sql.DB, cacheExpiryTime int, enableDebugLog bool, ...) (*MattermostBackend, error) + func (mm *MattermostBackend) GetChannel(channelID string) (*model.Channel, error) + func (mm *MattermostBackend) GetChannelMembersForUser(teamID string, userID string) ([]*model.ChannelMembership, error) + func (mm *MattermostBackend) GetChannelPosts(channelID string, fromt int64, tot int64) ([]*model.Post, error) + func (mm *MattermostBackend) GetLastNotifiedTimestamp() (time.Time, error) + func (mm *MattermostBackend) GetNotifiableUsers() ([]*model.User, error) + func (mm *MattermostBackend) GetPreferencesForUser(userID string) model.MANUserPreferences + func (mm *MattermostBackend) GetReadmeContent() string + func (mm *MattermostBackend) GetServerName() string + func (mm *MattermostBackend) GetServerURL() string + func (mm *MattermostBackend) GetTeams() ([]*model.Team, error) + func (mm *MattermostBackend) GetTeamsForUser(userID string) ([]*model.Team, error) + func (mm *MattermostBackend) GetTemplatesPath() string + func (mm *MattermostBackend) GetUser(userID string) (*model.User, error) + func (mm *MattermostBackend) GetUsersStatus() (map[string]string, error) + func (mm *MattermostBackend) IsEmailVerificationEnabled() bool + func (mm *MattermostBackend) IsUserFollowingPost(postID string, userID string) bool + func (mm *MattermostBackend) LogDebug(message string, a ...any) + func (mm *MattermostBackend) LogError(message string, a ...any) + func (mm *MattermostBackend) LogInfo(message string, a ...any) + func (mm *MattermostBackend) LogWarn(message string, a ...any) + func (mm *MattermostBackend) ResetPreferenceEnabled(user *model.User) error + func (mm *MattermostBackend) SendEmailToUser(user *model.User, subject string, body string) error + func (mm *MattermostBackend) SetLastNotifiedTimestamp(value time.Time) error + func (mm *MattermostBackend) SetPrefCountPreviouslyNotified(user *model.User, enabled bool) error + func (mm *MattermostBackend) SetPreferenceCountNotifiedByMM(user *model.User, enabled bool) error + func (mm *MattermostBackend) SetPreferenceCountRepliesNotFollowed(user *model.User, enabled bool) error + func (mm *MattermostBackend) SetPreferenceEnabled(user *model.User, enabled bool) error + func (mm *MattermostBackend) SetPreferenceNotifyRepliesNotFollowed(user *model.User, enabled bool) error + func (mm *MattermostBackend) SetPreferencesForUser(userID string, prefs model.MANUserPreferences) error