core

package
v0.0.0-...-a774612 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: BSD-2-Clause-Patent Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const DEFAULT_TAG = "~"

Variables

This section is empty.

Functions

This section is empty.

Types

type Redactor

type Redactor struct {
	Dictionary model.Dictionary
	Tag        string
	Cipher     *feistel.FPECipher
	// contains filtered or unexported fields
}

Redactor ...

func NewDefaultRedactor

func NewDefaultRedactor(cipher *feistel.FPECipher) *Redactor

NewDefaultRedactor ...

func NewRedactor

func NewRedactor(dictionary model.Dictionary, tag string, cipher *feistel.FPECipher) (r *Redactor)

NewRedactor ...

func NewRedactorWithDictionary

func NewRedactorWithDictionary(dic model.Dictionary, cipher *feistel.FPECipher) *Redactor

NewRedactorWithDictionary ...

func NewRedactorWithTag

func NewRedactorWithTag(tag string, cipher *feistel.FPECipher) *Redactor

NewRedactorWithDictionary ...

func (Redactor) Clean

func (r Redactor) Clean(str string) string

Clean remove tags from the passed string

func (Redactor) Expand

func (r Redactor) Expand(line string) string

Expand deciphers the passed line

func (Redactor) Redact

func (r Redactor) Redact(line string, delimiters ...string) string

Redact transforms the passed line

Jump to

Keyboard shortcuts

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