anonymity

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FloorMasker

type FloorMasker struct {
}

func NewFloorMasker

func NewFloorMasker() *FloorMasker

func (*FloorMasker) MaskFloat32

func (h *FloorMasker) MaskFloat32(in float32) (int32, error)

func (*FloorMasker) MaskFloat64

func (m *FloorMasker) MaskFloat64(in float64) (int64, error)

func (*FloorMasker) MaskTime

func (h *FloorMasker) MaskTime(in time.Time, level string) (time.Time, error)

type HidingMasker

type HidingMasker struct {
}

func NewHidingMasker

func NewHidingMasker() *HidingMasker

func (*HidingMasker) MaskBool

func (h *HidingMasker) MaskBool(in bool) (bool, error)

func (*HidingMasker) MaskFloat32

func (h *HidingMasker) MaskFloat32(in float32) (float32, error)

func (*HidingMasker) MaskFloat64

func (h *HidingMasker) MaskFloat64(in float64) (float64, error)

func (*HidingMasker) MaskInt

func (h *HidingMasker) MaskInt(in int) (int, error)

func (*HidingMasker) MaskInt64

func (h *HidingMasker) MaskInt64(in int64) (int64, error)

func (*HidingMasker) MaskString

func (h *HidingMasker) MaskString(in string, replace string) (string, error)

func (*HidingMasker) MaskString0

func (h *HidingMasker) MaskString0(in string, overlay string, start, end int) (string, error)

func (*HidingMasker) MaskTime

func (h *HidingMasker) MaskTime(in *time.Time) (time.Time, error)

func (*HidingMasker) MaskUint

func (h *HidingMasker) MaskUint(in uint) (uint, error)

func (*HidingMasker) MaskUint64

func (h *HidingMasker) MaskUint64(in uint64) (uint64, error)

type PrefixPreserveMasker

type PrefixPreserveMasker struct {
}

func NewPrefixPreserveMasker

func NewPrefixPreserveMasker() *PrefixPreserveMasker

func (PrefixPreserveMasker) MaskInteger

func (p PrefixPreserveMasker) MaskInteger(i int64, preserved int) (int64, error)

func (PrefixPreserveMasker) MaskString

func (p PrefixPreserveMasker) MaskString(in string, preserved int) (string, error)

Jump to

Keyboard shortcuts

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