Documentation ¶
Index ¶
- func PopulateSharedBlockedList(list *commentapi.SharedBlockedList, modelList *model.BlockedList) error
- type Service
- func (s Service) Accept(r *http.Request, args *commentapi.SharedBlockedListInviteAcceptArgs, ...) error
- func (s Service) Get(r *http.Request, args *commentapi.SharedBlockedListGetArgs, ...) error
- func (s Service) Invite(r *http.Request, args *commentapi.SharedBlockedListInviteArgs, ...) error
- func (s Service) ListInvites(r *http.Request, args *commentapi.SharedBlockedListListInvitesArgs, ...) error
- func (s Service) Rescind(r *http.Request, args *commentapi.SharedBlockedListRescindArgs, ...) error
- func (s Service) Update(r *http.Request, args *commentapi.SharedBlockedListUpdateArgs, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PopulateSharedBlockedList ¶
func PopulateSharedBlockedList(list *commentapi.SharedBlockedList, modelList *model.BlockedList) error
PopulateSharedBlockedList populates the information from a blocked list into a an api response format
Types ¶
type Service ¶
type Service struct{}
Service is the service struct defined for the comment package for rpc service "blockedlist.*"
func (Service) Accept ¶
func (s Service) Accept(r *http.Request, args *commentapi.SharedBlockedListInviteAcceptArgs, reply *commentapi.SharedBlockedListInviteResponse) error
Accept accepts the invite and merges the users blocked entries into the shared blocked list.
func (Service) Get ¶
func (s Service) Get(r *http.Request, args *commentapi.SharedBlockedListGetArgs, reply *commentapi.SharedBlockedListGetResponse) error
Get accepts the invite and merges the users blocked entries into the shared blocked list.
func (Service) Invite ¶
func (s Service) Invite(r *http.Request, args *commentapi.SharedBlockedListInviteArgs, reply *commentapi.SharedBlockedListInviteResponse) error
Invite invites a user to contribute to a shared blocked list.
func (Service) ListInvites ¶
func (s Service) ListInvites(r *http.Request, args *commentapi.SharedBlockedListListInvitesArgs, reply *commentapi.SharedBlockedListListInvitesResponse) error
ListInvites returns a list of all invites a user has been sent for acceptance or rejection.
func (Service) Rescind ¶
func (s Service) Rescind(r *http.Request, args *commentapi.SharedBlockedListRescindArgs, reply *commentapi.SharedBlockedListRescindResponse) error
Rescind removes the association if already accepted of the invite and deletes it.
func (Service) Update ¶
func (s Service) Update(r *http.Request, args *commentapi.SharedBlockedListUpdateArgs, reply *commentapi.SharedBlockedList) error
Update updates a users shared block list, and returns it adjusted