settings

package
v0.0.0-...-8aa1adc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

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

Get returns the list of creator settings for users

func (*Service) List

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

Update updates the different settings if passed.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL