Documentation ¶
Index ¶
- type FloorMasker
- type HidingMasker
- func (h *HidingMasker) MaskBool(in bool) (bool, error)
- func (h *HidingMasker) MaskFloat32(in float32) (float32, error)
- func (h *HidingMasker) MaskFloat64(in float64) (float64, error)
- func (h *HidingMasker) MaskInt(in int) (int, error)
- func (h *HidingMasker) MaskInt64(in int64) (int64, error)
- func (h *HidingMasker) MaskString(in string, replace string) (string, error)
- func (h *HidingMasker) MaskString0(in string, overlay string, start, end int) (string, error)
- func (h *HidingMasker) MaskTime(in *time.Time) (time.Time, error)
- func (h *HidingMasker) MaskUint(in uint) (uint, error)
- func (h *HidingMasker) MaskUint64(in uint64) (uint64, error)
- type PrefixPreserveMasker
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)
type HidingMasker ¶
type HidingMasker struct { }
func NewHidingMasker ¶
func NewHidingMasker() *HidingMasker
func (*HidingMasker) MaskFloat32 ¶
func (h *HidingMasker) MaskFloat32(in float32) (float32, error)
func (*HidingMasker) MaskFloat64 ¶
func (h *HidingMasker) MaskFloat64(in float64) (float64, error)
func (*HidingMasker) MaskString ¶
func (h *HidingMasker) MaskString(in string, replace string) (string, error)
func (*HidingMasker) MaskString0 ¶
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)
Click to show internal directories.
Click to hide internal directories.