censor

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Module(
	"censor",
	fx.Decorate(func(logger *zap.Logger) *zap.Logger {
		return logger.Named("censor")
	}),
	fx.Provide(New),
)

Functions

This section is empty.

Types

type Censor

type Censor struct {
	// contains filtered or unexported fields
}

func New

func New(config config.Censor) *Censor

func (*Censor) IsAllow

func (c *Censor) IsAllow(text string) (bool, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳