Documentation
¶
Index ¶
- type Handler
- func (h *Handler) AcceptRequest(c *gin.Context)
- func (h *Handler) DeclineRequest(c *gin.Context)
- func (h *Handler) ListFriendIDs(ctx context.Context, accountID uuid.UUID) ([]uuid.UUID, error)
- func (h *Handler) ListFriends(c *gin.Context)
- func (h *Handler) ListRequests(c *gin.Context)
- func (h *Handler) RemoveFriend(c *gin.Context)
- func (h *Handler) RemoveFriendship(ctx context.Context, accountA, accountB uuid.UUID) error
- func (h *Handler) SendRequest(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func (*Handler) AcceptRequest ¶
func (*Handler) DeclineRequest ¶
func (*Handler) ListFriendIDs ¶ added in v0.2.0
ListFriendIDs returns just the account IDs of accepted friends. Used by the presence hub to know who to notify.
func (*Handler) ListFriends ¶
func (*Handler) ListRequests ¶
func (*Handler) RemoveFriend ¶
func (*Handler) RemoveFriendship ¶
RemoveFriendship is called internally by the blocks handler. It removes any friendship between two users regardless of direction.
func (*Handler) SendRequest ¶
Click to show internal directories.
Click to hide internal directories.