censorservice

package
v0.0.0-...-7a5cd37 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CensorService

type CensorService interface {
	CheckComment(ctx context.Context, commentText string) (int, error)
}

func New

func New(URL string, logger *slog.Logger) CensorService

type Mock_client

type Mock_client struct {
}

func (*Mock_client) CheckComment

func (c *Mock_client) CheckComment(ctx context.Context, text string) (int, error)

Jump to

Keyboard shortcuts

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