Documentation ¶
Index ¶
- type GroupStore
- func (gs *GroupStore) AddMembersToGroupChat(userIDs []int64, groupID int64) *apperror.AppError
- func (gs *GroupStore) DeleteGroup(userID, groupID int64) *apperror.AppError
- func (gs *GroupStore) GetGroupsByUserID(userID int64) ([]model.Group, *apperror.AppError)
- func (gs *GroupStore) ListMessagesOfGroup(groupID int64, limit, offset int) ([]model.Message, *apperror.AppError)
- func (gs *GroupStore) RemoveMembersToGroupChat(userIDs []int64, groupID int64) *apperror.AppError
- func (gs *GroupStore) Save(group *model.Group) *apperror.AppError
- type IGroup
- type IMessage
- type IUser
- type MessageStore
- type Store
- type UserStore
- func (us *UserStore) GetUserFromEmail(email string) (*model.User, *apperror.AppError)
- func (us *UserStore) GetUserFromToken(token string) (*model.User, *apperror.AppError)
- func (us *UserStore) Login(email, password string) (*model.User, *apperror.AppError)
- func (us *UserStore) Save(user *model.User) *apperror.AppError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GroupStore ¶
type GroupStore struct {
*Store
}
func NewGroupStore ¶
func NewGroupStore(store *Store) *GroupStore
func (*GroupStore) AddMembersToGroupChat ¶
func (gs *GroupStore) AddMembersToGroupChat(userIDs []int64, groupID int64) *apperror.AppError
func (*GroupStore) DeleteGroup ¶
func (gs *GroupStore) DeleteGroup(userID, groupID int64) *apperror.AppError
func (*GroupStore) GetGroupsByUserID ¶
func (*GroupStore) ListMessagesOfGroup ¶
func (*GroupStore) RemoveMembersToGroupChat ¶
func (gs *GroupStore) RemoveMembersToGroupChat(userIDs []int64, groupID int64) *apperror.AppError
type IGroup ¶
type IGroup interface { GetGroupsByUserID(userID int64) ([]model.Group, *apperror.AppError) Save(group *model.Group) *apperror.AppError AddMembersToGroupChat(userIDs []int64, groupID int64) *apperror.AppError RemoveMembersToGroupChat(userIDs []int64, groupID int64) *apperror.AppError DeleteGroup(userID, groupID int64) *apperror.AppError ListMessagesOfGroup(groupID int64, limit, offset int) ([]model.Message, *apperror.AppError) }
type MessageStore ¶
type MessageStore struct {
*Store
}
func NewMessageStore ¶
func NewMessageStore(store *Store) *MessageStore
type UserStore ¶
type UserStore struct {
*Store
}
func NewUserStore ¶
func (*UserStore) GetUserFromEmail ¶
func (*UserStore) GetUserFromToken ¶
Click to show internal directories.
Click to hide internal directories.