xfieldmask

package
v0.0.0-...-a89d410 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MaskMode

type MaskMode uint32
const (
	// FiledMaskMode_Filter indicates that the only fields in fieldmask should be kept.
	MaskMode_Filter MaskMode = 0
	// FiledMaskMode_Prune indicates that the field in fieldmask should be removed.
	MaskMode_Prune MaskMode = 1
)

type NestedFieldMask

type NestedFieldMask map[string]NestedFieldMask

NestedFieldMask helps to build a nested field mask.

func New

func New(path []string) NestedFieldMask

New returns a new NestedFieldMask with the given field mask.

func NewWithPaths

func NewWithPaths(paths ...string) NestedFieldMask

NewWithPaths returns a new NestedFieldMask with the given paths.

func (NestedFieldMask) Filter

func (mask NestedFieldMask) Filter(m proto.Message)

func (NestedFieldMask) Masked

func (mask NestedFieldMask) Masked(path string) bool

func (NestedFieldMask) Prune

func (mask NestedFieldMask) Prune(m proto.Message)

Jump to

Keyboard shortcuts

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