Documentation ¶
Index ¶
- type Filter
- func (rf *Filter[K]) Add(item K) filter.Filter[K]
- func (rf *Filter[K]) AddAll(other filter.Filter[K]) filter.Filter[K]
- func (rf *Filter[K]) Capacity() int
- func (rf *Filter[K]) Clear() filter.Filter[K]
- func (rf *Filter[K]) Copy() filter.Filter[K]
- func (rf *Filter[K]) Count() int
- func (rf *Filter[K]) DoesNotContain(item K) bool
- func (sf *Filter[K]) Dump(log *zap.SugaredLogger, prefix string)
- func (sf *Filter[K]) Equal(other filter.Filter[K]) bool
- func (sf *Filter[K]) MarshalCBOR() ([]byte, error)
- func (sf *Filter[K]) MarshalJSON() ([]byte, error)
- func (rf *Filter[K]) TryAddAll(other filter.Filter[K]) error
- func (sf *Filter[K]) UnmarshalCBOR(bytes []byte) error
- func (sf *Filter[K]) UnmarshalJSON(bytes []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Filter ¶
type Filter[K comparable] struct { // contains filtered or unexported fields }
func (*Filter[K]) DoesNotContain ¶
DoesNotContain returns true if the item is not in the filter.
func (*Filter[K]) Dump ¶
func (sf *Filter[K]) Dump(log *zap.SugaredLogger, prefix string)
Dump dumps the filter to the log.
func (*Filter[K]) MarshalCBOR ¶
MarshalCBOR marshals the Filter into the CBOR-encoded wire format.
func (*Filter[K]) MarshalJSON ¶
MarshalJSON marshals the Filter into the JSON-encoded wire format.
func (*Filter[K]) UnmarshalCBOR ¶
UnmarshalCBOR unmarshals the CBOR-encoded wire format into the Filter.
func (*Filter[K]) UnmarshalJSON ¶
UnmarshalJSON unmarshals the JSON-encoded wire format into the Filter.
Click to show internal directories.
Click to hide internal directories.