partial

package
v0.15.18 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PartialBucket

type PartialBucket[K, K2, V any, KS key.Serializer[K], VS PartialSerializer[K2, V]] struct {
	db.Bucket
}

func NewPartialBucket

func NewPartialBucket[
	K, K2, V, V2 any,
	KS key.Serializer[K],
	VS value.Serializer[V],
	V2S PartialSerializer[K2, V2],
](
	bucket typed.Bucket[K, V, KS, VS],
	valueSerializer V2S,
) PartialBucket[K, K2, V2, KS, V2S]

func (PartialBucket[K, K2, V, KS, VS]) Get

func (b PartialBucket[K, K2, V, KS, VS]) Get(
	database db.KeyValueReader,
	key K,
	subKey K2,
) (V, error)

type PartialSerializer

type PartialSerializer[K, V any] interface {
	~struct{}
	UnmarshalPartial(subKey K, data []byte, value *V) error
}

Jump to

Keyboard shortcuts

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