Documentation ¶
Index ¶
- type SampleUser
- func (u *SampleUser) AddChannelMember(channelId, userId string) error
- func (u *SampleUser) AddTeamMember(teamId, userId string) error
- func (u *SampleUser) AddTeamMemberFromInvite(token, inviteId string) error
- func (u *SampleUser) AutoCompleteUsersInChannel(teamId, channelId, username string, limit int) (map[string]bool, error)
- func (u *SampleUser) AutocompleteChannelsForTeam(teamId, name string) error
- func (u *SampleUser) ClearUserData()
- func (u *SampleUser) Connect() (<-chan error, error)
- func (u *SampleUser) CreateChannel(channel *model.Channel) (string, error)
- func (u *SampleUser) CreateDirectChannel(otherUserId string) (string, error)
- func (u *SampleUser) CreateGroupChannel(memberIds []string) (string, error)
- func (u *SampleUser) CreatePost(post *model.Post) (string, error)
- func (u *SampleUser) CreateTeam(team *model.Team) (string, error)
- func (u *SampleUser) CreateUser(user *model.User) (string, error)
- func (u *SampleUser) DeleteReaction(reaction *model.Reaction) error
- func (u *SampleUser) Disconnect() error
- func (u *SampleUser) Events() <-chan *model.WebSocketEvent
- func (u *SampleUser) FetchStaticAssets() error
- func (u *SampleUser) GetAllTeams(page, perPage int) ([]string, error)
- func (u *SampleUser) GetAnalytics() error
- func (u *SampleUser) GetChannel(channelId string) error
- func (u *SampleUser) GetChannelMember(channelId, userId string) error
- func (u *SampleUser) GetChannelMembers(channelId string, page, perPage int) error
- func (u *SampleUser) GetChannelMembersForUser(userId, teamId string) error
- func (u *SampleUser) GetChannelStats(channelId string) error
- func (u *SampleUser) GetChannelUnread(channelId string) (*model.ChannelUnread, error)
- func (u *SampleUser) GetChannelsForTeam(teamId string, includeDeleted bool) error
- func (u *SampleUser) GetChannelsForTeamForUser(teamId, userId string, includeDeleted bool) ([]*model.Channel, error)
- func (u *SampleUser) GetClientLicense() error
- func (u *SampleUser) GetClusterStatus() error
- func (u *SampleUser) GetConfig() error
- func (u *SampleUser) GetEmojiImage(emojiId string) error
- func (u *SampleUser) GetEmojiList(page, perPage int) error
- func (u *SampleUser) GetFileInfosForPost(postId string) ([]*model.FileInfo, error)
- func (u *SampleUser) GetFilePreview(fileId string) error
- func (u *SampleUser) GetFileThumbnail(fileId string) error
- func (u *SampleUser) GetLogs(page, perPage int) error
- func (u *SampleUser) GetMe() (string, error)
- func (u *SampleUser) GetPinnedPosts(channelId string) (*model.PostList, error)
- func (u *SampleUser) GetPluginStatuses() error
- func (u *SampleUser) GetPostsAfter(channelId, postId string, page, perPage int) error
- func (u *SampleUser) GetPostsAroundLastUnread(channelId string, limitBefore, limitAfter int) ([]string, error)
- func (u *SampleUser) GetPostsBefore(channelId, postId string, page, perPage int) error
- func (u *SampleUser) GetPostsForChannel(channelId string, page, perPage int) error
- func (u *SampleUser) GetPostsSince(channelId string, time int64) ([]string, error)
- func (u *SampleUser) GetPreferences() error
- func (u *SampleUser) GetProfileImage() error
- func (u *SampleUser) GetProfileImageForUser(userId string) error
- func (u *SampleUser) GetPublicChannelsForTeam(teamId string, page, perPage int) error
- func (u *SampleUser) GetReactions(postId string) error
- func (u *SampleUser) GetRolesByNames(roleNames []string) ([]string, error)
- func (u *SampleUser) GetTeam(teamId string) error
- func (u *SampleUser) GetTeamMembers(teamId string, page, perPage int) error
- func (u *SampleUser) GetTeamMembersForUser(userId string) error
- func (u *SampleUser) GetTeamStats(teamId string) error
- func (u *SampleUser) GetTeams() ([]string, error)
- func (u *SampleUser) GetTeamsForUser(userId string) ([]string, error)
- func (u *SampleUser) GetTeamsUnread(teamIdToExclude string) ([]*model.TeamUnread, error)
- func (u *SampleUser) GetUserStatus() error
- func (u *SampleUser) GetUsers(page, perPage int) ([]string, error)
- func (u *SampleUser) GetUsersByIds(userIds []string) ([]string, error)
- func (u *SampleUser) GetUsersByUsernames(usernames []string) ([]string, error)
- func (u *SampleUser) GetUsersInChannel(channelId string, page, perPage int) error
- func (u *SampleUser) GetUsersStatusesByIds(userIds []string) error
- func (u *SampleUser) GetWebappPlugins() error
- func (u *SampleUser) IsSysAdmin() (bool, error)
- func (u *SampleUser) IsTeamAdmin() (bool, error)
- func (u *SampleUser) Login() error
- func (u *SampleUser) Logout() (bool, error)
- func (u *SampleUser) PatchPost(postId string, patch *model.PostPatch) (string, error)
- func (u *SampleUser) PatchUser(userId string, patch *model.UserPatch) error
- func (u *SampleUser) RemoveTeamMember(teamId, userId string) error
- func (u *SampleUser) RemoveUserFromChannel(channelId, userId string) (bool, error)
- func (u *SampleUser) SaveReaction(reaction *model.Reaction) error
- func (u *SampleUser) SearchChannels(teamId string, search *model.ChannelSearch) ([]*model.Channel, error)
- func (u *SampleUser) SearchPosts(teamId, terms string, isOrSearch bool) (*model.PostList, error)
- func (u *SampleUser) SearchUsers(search *model.UserSearch) ([]*model.User, error)
- func (u *SampleUser) SendTypingEvent(channelId, parentId string) error
- func (u *SampleUser) SetCurrentChannel(channel *model.Channel) error
- func (u *SampleUser) SetCurrentTeam(team *model.Team) error
- func (u *SampleUser) SetProfileImage(data []byte) error
- func (u *SampleUser) SignUp(email, username, password string) error
- func (u *SampleUser) Store() store.UserStore
- func (u *SampleUser) UpdateConfig(*model.Config) error
- func (u *SampleUser) UpdatePreferences(pref *model.Preferences) error
- func (u *SampleUser) UpdateTeam(team *model.Team) error
- func (u *SampleUser) UpdateUser(user *model.User) error
- func (u *SampleUser) UpdateUserRoles(userId, roles string) error
- func (u *SampleUser) UploadFile(data []byte, channelId, filename string) (*model.FileUploadResponse, error)
- func (u *SampleUser) ViewChannel(view *model.ChannelView) (*model.ChannelViewResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SampleUser ¶
type SampleUser struct {
// contains filtered or unexported fields
}
func New ¶
func New(store store.MutableUserStore, serverURL string) *SampleUser
func (*SampleUser) AddChannelMember ¶
func (u *SampleUser) AddChannelMember(channelId, userId string) error
func (*SampleUser) AddTeamMember ¶
func (u *SampleUser) AddTeamMember(teamId, userId string) error
func (*SampleUser) AddTeamMemberFromInvite ¶
func (u *SampleUser) AddTeamMemberFromInvite(token, inviteId string) error
func (*SampleUser) AutoCompleteUsersInChannel ¶
func (*SampleUser) AutocompleteChannelsForTeam ¶
func (u *SampleUser) AutocompleteChannelsForTeam(teamId, name string) error
AutocompleteChannelsForTeam returns an ordered list of channels for a given name.
func (*SampleUser) ClearUserData ¶
func (u *SampleUser) ClearUserData()
func (*SampleUser) Connect ¶
func (u *SampleUser) Connect() (<-chan error, error)
func (*SampleUser) CreateChannel ¶
func (u *SampleUser) CreateChannel(channel *model.Channel) (string, error)
func (*SampleUser) CreateDirectChannel ¶
func (u *SampleUser) CreateDirectChannel(otherUserId string) (string, error)
func (*SampleUser) CreateGroupChannel ¶
func (u *SampleUser) CreateGroupChannel(memberIds []string) (string, error)
func (*SampleUser) CreatePost ¶
func (u *SampleUser) CreatePost(post *model.Post) (string, error)
func (*SampleUser) CreateTeam ¶
func (u *SampleUser) CreateTeam(team *model.Team) (string, error)
func (*SampleUser) CreateUser ¶
func (u *SampleUser) CreateUser(user *model.User) (string, error)
func (*SampleUser) DeleteReaction ¶
func (u *SampleUser) DeleteReaction(reaction *model.Reaction) error
func (*SampleUser) Disconnect ¶
func (u *SampleUser) Disconnect() error
func (*SampleUser) Events ¶
func (u *SampleUser) Events() <-chan *model.WebSocketEvent
func (*SampleUser) FetchStaticAssets ¶
func (u *SampleUser) FetchStaticAssets() error
func (*SampleUser) GetAllTeams ¶
func (u *SampleUser) GetAllTeams(page, perPage int) ([]string, error)
GetAllTeams returns all teams based on permissions.
func (*SampleUser) GetAnalytics ¶
func (u *SampleUser) GetAnalytics() error
func (*SampleUser) GetChannel ¶
func (u *SampleUser) GetChannel(channelId string) error
func (*SampleUser) GetChannelMember ¶
func (u *SampleUser) GetChannelMember(channelId, userId string) error
func (*SampleUser) GetChannelMembers ¶
func (u *SampleUser) GetChannelMembers(channelId string, page, perPage int) error
func (*SampleUser) GetChannelMembersForUser ¶
func (u *SampleUser) GetChannelMembersForUser(userId, teamId string) error
GetChannelMembersForUser gets all the channel members for a user on a team.
func (*SampleUser) GetChannelStats ¶
func (u *SampleUser) GetChannelStats(channelId string) error
func (*SampleUser) GetChannelUnread ¶
func (u *SampleUser) GetChannelUnread(channelId string) (*model.ChannelUnread, error)
func (*SampleUser) GetChannelsForTeam ¶
func (u *SampleUser) GetChannelsForTeam(teamId string, includeDeleted bool) error
func (*SampleUser) GetChannelsForTeamForUser ¶
func (*SampleUser) GetClientLicense ¶
func (u *SampleUser) GetClientLicense() error
GetClientLicense returns the client license in the old format.
func (*SampleUser) GetClusterStatus ¶
func (u *SampleUser) GetClusterStatus() error
func (*SampleUser) GetConfig ¶
func (u *SampleUser) GetConfig() error
func (*SampleUser) GetEmojiImage ¶
func (u *SampleUser) GetEmojiImage(emojiId string) error
func (*SampleUser) GetEmojiList ¶
func (u *SampleUser) GetEmojiList(page, perPage int) error
func (*SampleUser) GetFileInfosForPost ¶
func (u *SampleUser) GetFileInfosForPost(postId string) ([]*model.FileInfo, error)
func (*SampleUser) GetFilePreview ¶
func (u *SampleUser) GetFilePreview(fileId string) error
func (*SampleUser) GetFileThumbnail ¶
func (u *SampleUser) GetFileThumbnail(fileId string) error
func (*SampleUser) GetLogs ¶
func (u *SampleUser) GetLogs(page, perPage int) error
func (*SampleUser) GetMe ¶
func (u *SampleUser) GetMe() (string, error)
func (*SampleUser) GetPinnedPosts ¶
func (u *SampleUser) GetPinnedPosts(channelId string) (*model.PostList, error)
func (*SampleUser) GetPluginStatuses ¶
func (u *SampleUser) GetPluginStatuses() error
func (*SampleUser) GetPostsAfter ¶
func (u *SampleUser) GetPostsAfter(channelId, postId string, page, perPage int) error
func (*SampleUser) GetPostsAroundLastUnread ¶
func (u *SampleUser) GetPostsAroundLastUnread(channelId string, limitBefore, limitAfter int) ([]string, error)
GetPostsAroundLastUnread returns the list of posts around last unread post by the current user in a channel.
func (*SampleUser) GetPostsBefore ¶
func (u *SampleUser) GetPostsBefore(channelId, postId string, page, perPage int) error
func (*SampleUser) GetPostsForChannel ¶
func (u *SampleUser) GetPostsForChannel(channelId string, page, perPage int) error
func (*SampleUser) GetPostsSince ¶
func (u *SampleUser) GetPostsSince(channelId string, time int64) ([]string, error)
func (*SampleUser) GetPreferences ¶
func (u *SampleUser) GetPreferences() error
func (*SampleUser) GetProfileImage ¶
func (u *SampleUser) GetProfileImage() error
func (*SampleUser) GetProfileImageForUser ¶
func (u *SampleUser) GetProfileImageForUser(userId string) error
func (*SampleUser) GetPublicChannelsForTeam ¶
func (u *SampleUser) GetPublicChannelsForTeam(teamId string, page, perPage int) error
func (*SampleUser) GetReactions ¶
func (u *SampleUser) GetReactions(postId string) error
func (*SampleUser) GetRolesByNames ¶
func (u *SampleUser) GetRolesByNames(roleNames []string) ([]string, error)
func (*SampleUser) GetTeam ¶
func (u *SampleUser) GetTeam(teamId string) error
func (*SampleUser) GetTeamMembers ¶
func (u *SampleUser) GetTeamMembers(teamId string, page, perPage int) error
func (*SampleUser) GetTeamMembersForUser ¶
func (u *SampleUser) GetTeamMembersForUser(userId string) error
func (*SampleUser) GetTeamStats ¶
func (u *SampleUser) GetTeamStats(teamId string) error
func (*SampleUser) GetTeams ¶
func (u *SampleUser) GetTeams() ([]string, error)
func (*SampleUser) GetTeamsForUser ¶
func (u *SampleUser) GetTeamsForUser(userId string) ([]string, error)
func (*SampleUser) GetTeamsUnread ¶
func (u *SampleUser) GetTeamsUnread(teamIdToExclude string) ([]*model.TeamUnread, error)
func (*SampleUser) GetUserStatus ¶
func (u *SampleUser) GetUserStatus() error
func (*SampleUser) GetUsersByIds ¶
func (u *SampleUser) GetUsersByIds(userIds []string) ([]string, error)
func (*SampleUser) GetUsersByUsernames ¶
func (u *SampleUser) GetUsersByUsernames(usernames []string) ([]string, error)
func (*SampleUser) GetUsersInChannel ¶
func (u *SampleUser) GetUsersInChannel(channelId string, page, perPage int) error
func (*SampleUser) GetUsersStatusesByIds ¶
func (u *SampleUser) GetUsersStatusesByIds(userIds []string) error
func (*SampleUser) GetWebappPlugins ¶
func (u *SampleUser) GetWebappPlugins() error
func (*SampleUser) IsSysAdmin ¶
func (u *SampleUser) IsSysAdmin() (bool, error)
func (*SampleUser) IsTeamAdmin ¶
func (u *SampleUser) IsTeamAdmin() (bool, error)
func (*SampleUser) Login ¶
func (u *SampleUser) Login() error
func (*SampleUser) Logout ¶
func (u *SampleUser) Logout() (bool, error)
func (*SampleUser) PatchUser ¶
func (u *SampleUser) PatchUser(userId string, patch *model.UserPatch) error
func (*SampleUser) RemoveTeamMember ¶
func (u *SampleUser) RemoveTeamMember(teamId, userId string) error
func (*SampleUser) RemoveUserFromChannel ¶
func (u *SampleUser) RemoveUserFromChannel(channelId, userId string) (bool, error)
func (*SampleUser) SaveReaction ¶
func (u *SampleUser) SaveReaction(reaction *model.Reaction) error
func (*SampleUser) SearchChannels ¶
func (u *SampleUser) SearchChannels(teamId string, search *model.ChannelSearch) ([]*model.Channel, error)
func (*SampleUser) SearchPosts ¶
func (*SampleUser) SearchUsers ¶
func (u *SampleUser) SearchUsers(search *model.UserSearch) ([]*model.User, error)
func (*SampleUser) SendTypingEvent ¶
func (u *SampleUser) SendTypingEvent(channelId, parentId string) error
func (*SampleUser) SetCurrentChannel ¶
func (u *SampleUser) SetCurrentChannel(channel *model.Channel) error
func (*SampleUser) SetCurrentTeam ¶
func (u *SampleUser) SetCurrentTeam(team *model.Team) error
func (*SampleUser) SetProfileImage ¶
func (u *SampleUser) SetProfileImage(data []byte) error
func (*SampleUser) SignUp ¶
func (u *SampleUser) SignUp(email, username, password string) error
func (*SampleUser) Store ¶
func (u *SampleUser) Store() store.UserStore
func (*SampleUser) UpdateConfig ¶
func (u *SampleUser) UpdateConfig(*model.Config) error
func (*SampleUser) UpdatePreferences ¶
func (u *SampleUser) UpdatePreferences(pref *model.Preferences) error
func (*SampleUser) UpdateTeam ¶
func (u *SampleUser) UpdateTeam(team *model.Team) error
func (*SampleUser) UpdateUser ¶
func (u *SampleUser) UpdateUser(user *model.User) error
func (*SampleUser) UpdateUserRoles ¶
func (u *SampleUser) UpdateUserRoles(userId, roles string) error
func (*SampleUser) UploadFile ¶
func (u *SampleUser) UploadFile(data []byte, channelId, filename string) (*model.FileUploadResponse, error)
func (*SampleUser) ViewChannel ¶
func (u *SampleUser) ViewChannel(view *model.ChannelView) (*model.ChannelViewResponse, error)
Click to show internal directories.
Click to hide internal directories.