Documentation ¶
Index ¶
- type Service
- func (s Service) ActOnClassification(r *http.Request, args *commentapi.ActOnClassificationArgs, ...) error
- func (s Service) AddDelegate(r *http.Request, args *commentapi.AddDelegateArgs, ...) error
- func (s Service) AdminAlgoCallbacks(r *http.Request, args *commentapi.AdminAlgoCallbacksArgs, ...) error
- func (s Service) AmI(r *http.Request, args *commentapi.AmIArgs, reply *commentapi.AmIResponse) error
- func (s Service) Block(r *http.Request, args *commentapi.BlockArgs, reply *commentapi.BlockResponse) error
- func (s Service) BlockedList(r *http.Request, args *commentapi.BlockedListArgs, ...) error
- func (s Service) ListDelegates(r *http.Request, args *commentapi.ListDelegatesArgs, ...) error
- func (s Service) RemoveDelegate(r *http.Request, args *commentapi.RemoveDelegateArgs, ...) error
- func (s Service) UnBlock(r *http.Request, args *commentapi.UnBlockArgs, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct{}
Service is the service struct defined for the comment package for rpc service "moderation.*"
func (Service) ActOnClassification ¶
func (s Service) ActOnClassification(r *http.Request, args *commentapi.ActOnClassificationArgs, reply *commentapi.ActOnClassificationResponse) error
ActOnClassification confirms or rejects a comment classification
func (Service) AddDelegate ¶
func (s Service) AddDelegate(r *http.Request, args *commentapi.AddDelegateArgs, reply *commentapi.ListDelegateResponse) error
AddDelegate return the list of blocked channels for a moderator
func (Service) AdminAlgoCallbacks ¶
func (s Service) AdminAlgoCallbacks(r *http.Request, args *commentapi.AdminAlgoCallbacksArgs, reply *commentapi.AdminAlgoCallbacksResponse) error
AdminAlgoCallbacks adds or deletes a ChannelAlgoCallback
func (Service) AmI ¶
func (s Service) AmI(r *http.Request, args *commentapi.AmIArgs, reply *commentapi.AmIResponse) error
AmI return whether or not the users is a moderator and the type. Also the channels they moderate
func (Service) Block ¶
func (s Service) Block(r *http.Request, args *commentapi.BlockArgs, reply *commentapi.BlockResponse) error
Block returns a list of reactions for the comments requested
func (Service) BlockedList ¶
func (s Service) BlockedList(r *http.Request, args *commentapi.BlockedListArgs, reply *commentapi.BlockedListResponse) error
BlockedList return the list of blocked channels for a moderator
func (Service) ListDelegates ¶
func (s Service) ListDelegates(r *http.Request, args *commentapi.ListDelegatesArgs, reply *commentapi.ListDelegateResponse) error
ListDelegates return the list of blocked channels for a moderator
func (Service) RemoveDelegate ¶
func (s Service) RemoveDelegate(r *http.Request, args *commentapi.RemoveDelegateArgs, reply *commentapi.ListDelegateResponse) error
RemoveDelegate return the list of blocked channels for a moderator
func (Service) UnBlock ¶
func (s Service) UnBlock(r *http.Request, args *commentapi.UnBlockArgs, reply *commentapi.UnBlockResponse) error
UnBlock return whether or not the users is a moderator and the type. Also the channels they moderate