Documentation ¶
Index ¶
- type Service
- func (s *Service) BlockWord(r *http.Request, args *commentapi.BlockWordArgs, ...) error
- func (s *Service) Get(r *http.Request, args *commentapi.ListSettingsArgs, ...) error
- func (s *Service) List(r *http.Request, args *commentapi.ListSettingsArgs, ...) error
- func (s *Service) ListBlockedWords(r *http.Request, args *commentapi.ListBlockedWordsArgs, ...) error
- func (s *Service) UnBlockWord(r *http.Request, args *commentapi.UnBlockWordArgs, ...) error
- func (s *Service) Update(r *http.Request, args *commentapi.UpdateSettingsArgs, ...) 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) BlockWord ¶
func (s *Service) BlockWord(r *http.Request, args *commentapi.BlockWordArgs, reply *commentapi.BlockWordRespose) error
BlockWord takes a list of words to block comments containing these words. These words are added to the existing list
func (*Service) Get ¶
func (s *Service) Get(r *http.Request, args *commentapi.ListSettingsArgs, reply *commentapi.ListSettingsResponse) error
Get returns the list of creator settings for users
func (*Service) List ¶
func (s *Service) List(r *http.Request, args *commentapi.ListSettingsArgs, reply *commentapi.ListSettingsResponse) error
List returns the list of user settings applicable to them for the creator to manage
func (*Service) ListBlockedWords ¶
func (s *Service) ListBlockedWords(r *http.Request, args *commentapi.ListBlockedWordsArgs, reply *commentapi.BlockWordRespose) error
ListBlockedWords returns a list of all the current blocked words for a channel.
func (*Service) UnBlockWord ¶
func (s *Service) UnBlockWord(r *http.Request, args *commentapi.UnBlockWordArgs, reply *commentapi.BlockWordRespose) error
UnBlockWord takes a list of words to remove from the list of blocked words if they exist.
func (*Service) Update ¶
func (s *Service) Update(r *http.Request, args *commentapi.UpdateSettingsArgs, reply *commentapi.ListSettingsResponse) error
Update updates the different settings if passed.
Click to show internal directories.
Click to hide internal directories.