Documentation ¶
Index ¶
- type Endpoints
- func (e Endpoints) AcceptInvite(w http.ResponseWriter, r *http.Request)
- func (e Endpoints) ChangeGroupName(w http.ResponseWriter, r *http.Request)
- func (e Endpoints) CheckIfSharedWithFollowers(w http.ResponseWriter, r *http.Request)
- func (e Endpoints) CreateGroup(w http.ResponseWriter, r *http.Request)
- func (e Endpoints) DeepCopyDeck(w http.ResponseWriter, r *http.Request)
- func (e Endpoints) DeleteGroup(w http.ResponseWriter, r *http.Request)
- func (e Endpoints) DeleteGroupDeck(w http.ResponseWriter, r *http.Request)
- func (e Endpoints) Feed(w http.ResponseWriter, r *http.Request)
- func (e Endpoints) Follow(w http.ResponseWriter, r *http.Request)
- func (e Endpoints) Followers(w http.ResponseWriter, r *http.Request)
- func (e Endpoints) Followings(w http.ResponseWriter, r *http.Request)
- func (e Endpoints) GetCreatedGroupsByUserId(w http.ResponseWriter, r *http.Request)
- func (e Endpoints) GetDecksByGroupId(w http.ResponseWriter, r *http.Request)
- func (e Endpoints) GetFollowersNotJoinedGroup(w http.ResponseWriter, r *http.Request)
- func (e Endpoints) GetGroupsByUserId(w http.ResponseWriter, r *http.Request)
- func (e Endpoints) GetGroupsDeckShared(w http.ResponseWriter, r *http.Request)
- func (e Endpoints) GetParticipantsByGroupId(w http.ResponseWriter, r *http.Request)
- func (e Endpoints) QuitGroup(w http.ResponseWriter, r *http.Request)
- func (e Endpoints) SearchGroupByName(w http.ResponseWriter, r *http.Request)
- func (e Endpoints) SearchUser(w http.ResponseWriter, r *http.Request)
- func (e Endpoints) SendInvite(w http.ResponseWriter, r *http.Request)
- func (e Endpoints) ShareGroupDeck(w http.ResponseWriter, r *http.Request)
- func (e Endpoints) ShareWithFollowers(w http.ResponseWriter, r *http.Request)
- func (e Endpoints) Unfollow(w http.ResponseWriter, r *http.Request)
- type IService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Endpoints ¶
type Endpoints struct {
// contains filtered or unexported fields
}
func (Endpoints) AcceptInvite ¶
func (e Endpoints) AcceptInvite(w http.ResponseWriter, r *http.Request)
AcceptInvite /api/invite/accept POST
func (Endpoints) ChangeGroupName ¶
func (e Endpoints) ChangeGroupName(w http.ResponseWriter, r *http.Request)
ChangeGroupName PUT /api/groups/change_name
func (Endpoints) CheckIfSharedWithFollowers ¶
func (e Endpoints) CheckIfSharedWithFollowers(w http.ResponseWriter, r *http.Request)
CheckIfSharedWithFollowers /api/social/is_shared
func (Endpoints) CreateGroup ¶
func (e Endpoints) CreateGroup(w http.ResponseWriter, r *http.Request)
swagger:route PUT /api/groups/create CreateGroup Create a new group.
Consumes: - application/json Produces: - application/json Schemes: http Parameters: + name: request in: body required: true type: createGroupRequest Responses: 200: createGroupOkResponse 400: createGroupBadRequestResponse 500: createGroupInternalServerErrorResponse
func (Endpoints) DeepCopyDeck ¶
func (e Endpoints) DeepCopyDeck(w http.ResponseWriter, r *http.Request)
DeepCopyDeck /api/social/copy
func (Endpoints) DeleteGroup ¶
func (e Endpoints) DeleteGroup(w http.ResponseWriter, r *http.Request)
DeleteGroup DELETE /api/groups/delete
func (Endpoints) DeleteGroupDeck ¶
func (e Endpoints) DeleteGroupDeck(w http.ResponseWriter, r *http.Request)
DeleteGroupDeck /api/groups/delete_deck
func (Endpoints) Feed ¶
func (e Endpoints) Feed(w http.ResponseWriter, r *http.Request)
swagger:route POST /api/social/feed Feed Returns user's feed.
Consumes: - application/json Produces: - application/json Scheme: http Parameters: + name: request in: body description: request body required: true type: feedRequest Responses: 200: feedOkResponse 400: feedBadRequestResponse 500: feedInternalServerErrorResponse
func (Endpoints) Follow ¶
func (e Endpoints) Follow(w http.ResponseWriter, r *http.Request)
swagger:route POST /api/social/follow follow Follows the user.
Consumes: - application/json Produces: - application/json Scheme: http Parameters: + name: request in: body description: request body required: true type: followRequest Responses: 204: followNoContentResponse 400: followBadRequestResponse 500: followInternalServerErrorResponse
func (Endpoints) Followers ¶
func (e Endpoints) Followers(w http.ResponseWriter, r *http.Request)
swagger:route POST /api/social/followers getFollowers Returns a list of followers of the user.
Consumes: - application/json Produces: - application/json Scheme: http Parameters: + name: request in: body description: request body required: true type: getFollowersRequest Responses: 200: getFollowersOkResponse 400: getFollowersBadRequestResponse 500: getFollowersInternalServerErrorResponse
func (Endpoints) Followings ¶
func (e Endpoints) Followings(w http.ResponseWriter, r *http.Request)
swagger:route POST /api/social/followings getFollowings Returns a list of followings of the user.
Consumes: - application/json Produces: - application/json Scheme: http Parameters: + name: request in: body description: request body required: true type: getFollowingsRequest Responses: 200: getFollowingsOkResponse 400: getFollowingsBadRequestResponse 500: getFollowingsInternalServerErrorResponse
func (Endpoints) GetCreatedGroupsByUserId ¶
func (e Endpoints) GetCreatedGroupsByUserId(w http.ResponseWriter, r *http.Request)
GetCreatedGroupsByUserId POST /api/groups/created_groups
func (Endpoints) GetDecksByGroupId ¶
func (e Endpoints) GetDecksByGroupId(w http.ResponseWriter, r *http.Request)
swagger:route POST /api/group/decks GetDecksByGroupId Get decks by group id.
Consumes: - application/json Produces: - application/json Schemes: http Parameters: + name: request in: body required: true type: getDecksByGroupIdRequest Responses: 200: getDecksByGroupIdOkResponse 400: getDecksByGroupIdBadRequestResponse 500: getDecksByGroupIdInternalServerErrorResponse
func (Endpoints) GetFollowersNotJoinedGroup ¶
func (e Endpoints) GetFollowersNotJoinedGroup(w http.ResponseWriter, r *http.Request)
func (Endpoints) GetGroupsByUserId ¶
func (e Endpoints) GetGroupsByUserId(w http.ResponseWriter, r *http.Request)
swagger:route POST /api/groups/groups GetGroupsByUserId Get groups by user id.
Consumes: - application/json Produces: - application/json Schemes: http Parameters: + name: request in: body required: true type: getGroupsByUserIdRequest Responses: 200: getGroupsByUserIdOkResponse 400: getGroupsByUserIdBadRequestResponse 500: getGroupsByUserIdInternalServerErrorResponse
func (Endpoints) GetGroupsDeckShared ¶
func (e Endpoints) GetGroupsDeckShared(w http.ResponseWriter, r *http.Request)
func (Endpoints) GetParticipantsByGroupId ¶
func (e Endpoints) GetParticipantsByGroupId(w http.ResponseWriter, r *http.Request)
func (Endpoints) QuitGroup ¶
func (e Endpoints) QuitGroup(w http.ResponseWriter, r *http.Request)
QuitGroup DELETE /api/groups/quit
func (Endpoints) SearchGroupByName ¶
func (e Endpoints) SearchGroupByName(w http.ResponseWriter, r *http.Request)
SearchGroupByName GET /api/groups/search?q=...
func (Endpoints) SearchUser ¶
func (e Endpoints) SearchUser(w http.ResponseWriter, r *http.Request)
swagger:route GET /api/social/search search Returns a list of users by name.
Consumes: - application/json Produces: - application/json Scheme: http Parameters: + name: q in: query description: search query required: true type: string Responses: 200: searchUserOkResponse 500: searchUserInternalServerErrorResponse
func (Endpoints) SendInvite ¶
func (e Endpoints) SendInvite(w http.ResponseWriter, r *http.Request)
SendInvite /api/invite/send POST
func (Endpoints) ShareGroupDeck ¶
func (e Endpoints) ShareGroupDeck(w http.ResponseWriter, r *http.Request)
swagger:route POST /api/group/share ShareGroupDeck Share a deck with a group.
Consumes: - application/json Produces: - application/json Schemes: http Parameters: + name: request in: body required: true type: shareGroupDeckRequest Responses: 204: shareGroupDeckNoContentResponse 400: shareGroupDeckBadRequestResponse 500: shareGroupDeckInternalServerErrorResponse
func (Endpoints) ShareWithFollowers ¶
func (e Endpoints) ShareWithFollowers(w http.ResponseWriter, r *http.Request)
ShareWithFollowers /api/social/share
func (Endpoints) Unfollow ¶
func (e Endpoints) Unfollow(w http.ResponseWriter, r *http.Request)
swagger:route POST /api/social/unfollow unfollow Unfollows the user.
Consumes: - application/json Produces: - application/json Scheme: http Parameters: + name: request in: body description: request body required: true type: followRequest Responses: 204: unfollowNoContentResponse 400: unfollowBadRequestResponse 500: unfollowInternalServerErrorResponse