Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dependency ¶
Dependency contains the dependency injection struct for the badwords package.
func (*Dependency) AddBadWord ¶
func (d *Dependency) AddBadWord(ctx context.Context, word string) error
AddBadWords will add a new word into the MongoDB database.
func (*Dependency) Authenticate ¶
func (d *Dependency) Authenticate(id string) bool
Authenticate will check if the user is allowed to add a new badword into the database.
Click to show internal directories.
Click to hide internal directories.