Documentation ¶
Index ¶
- Variables
- type Storage
- func (d *Storage) AcceptInvite(ctx context.Context, id models.UserId, groupId models.GroupId) error
- func (d *Storage) ChangeGroupName(ctx context.Context, creatorId models.UserId, groupId models.GroupId, ...) error
- func (d *Storage) CheckIfCopied(ctx context.Context, copier models.UserId, deckId models.DeckId) (bool, error)
- func (d *Storage) CheckIfSharedFollowers(ctx context.Context, userId models.UserId, deckId models.DeckId) (bool, error)
- func (d *Storage) CreateGroup(ctx context.Context, id models.UserId, name string) (models.GroupId, error)
- func (d *Storage) DeepCopyDeck(ctx context.Context, copier models.UserId, deckId models.DeckId) (models.DeckId, error)
- func (d *Storage) DeleteDeckFromGroup(ctx context.Context, owner models.UserId, groupId models.GroupId, ...) error
- func (d *Storage) DeleteGroup(ctx context.Context, id models.UserId, groupId models.GroupId) error
- func (d *Storage) Feed(ctx context.Context, userId models.UserId, page int) (data []models.Post, err error)
- func (d *Storage) Follow(ctx context.Context, follower models.UserId, author models.UserId) error
- func (d *Storage) GetCreatedGroupsByUserId(ctx context.Context, id models.UserId) ([]models.GroupConfig, error)
- func (d *Storage) GetDecksByGroupId(ctx context.Context, id models.GroupId) ([]cardmodels.DeckConfig, error)
- func (d *Storage) GetFollowersByUserId(ctx context.Context, id models.UserId) ([]usermodels.UserInfo, error)
- func (d *Storage) GetFollowersNotJoinedGroup(ctx context.Context, userId models.UserId, groupId models.GroupId) ([]models.GroupsFollowed, error)
- func (d *Storage) GetFollowingsByUserId(ctx context.Context, id models.UserId) ([]usermodels.UserInfo, error)
- func (d *Storage) GetGroupByGroupId(ctx context.Context, id models.GroupId) (models.GroupConfig, error)
- func (d *Storage) GetGroupsByName(ctx context.Context, name string) ([]models.GroupConfig, error)
- func (d *Storage) GetGroupsByUserId(ctx context.Context, id models.UserId) ([]models.GroupConfig, error)
- func (d *Storage) GetGroupsDeckShared(ctx context.Context, userId models.UserId, deckId models.DeckId) ([]models.GroupsShared, error)
- func (d *Storage) GetInvitesByGroupId(ctx context.Context, id models.GroupId) (map[models.UserId]models.InviteInfo, error)
- func (d *Storage) GetInvitesByUserId(ctx context.Context, id models.UserId) (map[models.GroupId]models.InviteInfo, error)
- func (d *Storage) GetParticipantsByGroupId(ctx context.Context, id models.GroupId) ([]models.UserInfo, error)
- func (d *Storage) GetUsersByGroupId(ctx context.Context, id models.GroupId) (models.Members, error)
- func (d *Storage) GetUsersByName(ctx context.Context, name string) ([]usermodels.UserInfo, error)
- func (d *Storage) QuitGroup(ctx context.Context, userId models.UserId, groupId models.GroupId) error
- func (d *Storage) SendInvite(ctx context.Context, creatorId models.UserId, inviteeId models.UserId, ...) error
- func (d *Storage) ShareDeckGroup(ctx context.Context, owner models.UserId, groupId models.GroupId, ...) error
- func (d *Storage) ShareWithFollowers(ctx context.Context, userId models.UserId, deckId models.DeckId) error
- func (d *Storage) Unfollow(ctx context.Context, follower models.UserId, author models.UserId) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct {
Conn *db.PSQLDatabase
}
func (*Storage) AcceptInvite ¶
func (*Storage) ChangeGroupName ¶
func (*Storage) CheckIfCopied ¶
func (*Storage) CheckIfSharedFollowers ¶
func (*Storage) CreateGroup ¶
func (*Storage) DeepCopyDeck ¶
func (*Storage) DeleteDeckFromGroup ¶
func (*Storage) DeleteGroup ¶
func (*Storage) GetCreatedGroupsByUserId ¶
func (*Storage) GetDecksByGroupId ¶
func (d *Storage) GetDecksByGroupId(ctx context.Context, id models.GroupId) ([]cardmodels.DeckConfig, error)
func (*Storage) GetFollowersByUserId ¶
func (*Storage) GetFollowersNotJoinedGroup ¶
func (*Storage) GetFollowingsByUserId ¶
func (*Storage) GetGroupByGroupId ¶
func (*Storage) GetGroupsByName ¶
func (*Storage) GetGroupsByUserId ¶
func (*Storage) GetGroupsDeckShared ¶
func (*Storage) GetInvitesByGroupId ¶
func (*Storage) GetInvitesByUserId ¶
func (*Storage) GetParticipantsByGroupId ¶
func (*Storage) GetUsersByGroupId ¶
func (*Storage) GetUsersByName ¶
func (*Storage) SendInvite ¶
func (*Storage) ShareDeckGroup ¶
func (*Storage) ShareWithFollowers ¶
Click to show internal directories.
Click to hide internal directories.