Documentation ¶
Index ¶
- func NopReader[T any]() *prefixMatcher[T]
- type Builder
- type Reader
- type StringSetBuilder
- type StringSetMatchBuilder
- func (m *StringSetMatchBuilder) Add(key string, items map[string]struct{})
- func (m *StringSetMatchBuilder) Empty() bool
- func (m *StringSetMatchBuilder) Get(parent string) (map[string]struct{}, bool)
- func (m *StringSetMatchBuilder) Keys() []string
- func (m *StringSetMatchBuilder) LongestPrefix(parent string) (string, map[string]struct{}, bool)
- func (m *StringSetMatchBuilder) ToReader() *StringSetMatcher
- type StringSetMatcher
- type StringSetReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Builder ¶
type Builder[T any] interface { // Add adds or updates the item with key to have value value. Add(key string, value T) Reader[T] }
func NewMatcher ¶
type StringSetBuilder ¶
StringSetReader is a builder designed specifially to contain a set of string values (ie: Builder[map[string]struct{}]). This is a quality-of-life typecast for the generic Builder.
type StringSetMatchBuilder ¶
type StringSetMatchBuilder struct {
// contains filtered or unexported fields
}
Items that should be excluded when sourcing data from the base backup. Parent Path -> item ID -> {}
func NewStringSetBuilder ¶
func NewStringSetBuilder() *StringSetMatchBuilder
func (*StringSetMatchBuilder) Add ¶
func (m *StringSetMatchBuilder) Add(key string, items map[string]struct{})
copies all items into the key's bucket.
func (*StringSetMatchBuilder) Empty ¶
func (m *StringSetMatchBuilder) Empty() bool
func (*StringSetMatchBuilder) Get ¶
func (m *StringSetMatchBuilder) Get(parent string) (map[string]struct{}, bool)
func (*StringSetMatchBuilder) Keys ¶
func (m *StringSetMatchBuilder) Keys() []string
func (*StringSetMatchBuilder) LongestPrefix ¶
func (m *StringSetMatchBuilder) LongestPrefix(parent string) (string, map[string]struct{}, bool)
func (*StringSetMatchBuilder) ToReader ¶
func (m *StringSetMatchBuilder) ToReader() *StringSetMatcher
type StringSetMatcher ¶
type StringSetMatcher struct {
// contains filtered or unexported fields
}
Items that should be excluded when sourcing data from the base backup. Parent Path -> item ID -> {}
func (*StringSetMatcher) Empty ¶
func (m *StringSetMatcher) Empty() bool
func (*StringSetMatcher) Get ¶
func (m *StringSetMatcher) Get(parent string) (map[string]struct{}, bool)
func (*StringSetMatcher) Keys ¶
func (m *StringSetMatcher) Keys() []string
func (*StringSetMatcher) LongestPrefix ¶
func (m *StringSetMatcher) LongestPrefix(parent string) (string, map[string]struct{}, bool)
type StringSetReader ¶
StringSetReader is a reader designed specifially to contain a set of string values (ie: Reader[map[string]struct{}]). This is a quality-of-life typecast for the generic Reader.
Click to show internal directories.
Click to hide internal directories.