Documentation ¶
Overview ¶
Package store provides support for in-memory backing store implementations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Marshaler ¶
type Marshaler interface { MarshalResource(resource.Resource) ([]byte, error) UnmarshalResource([]byte) (resource.Resource, error) }
Marshaler provides marshal/unmarshal for resources and backing store.
type ProtobufMarshaler ¶
type ProtobufMarshaler struct{}
ProtobufMarshaler implements Marshaler using resources protobuf representation.
Resources should implement protobuf marshaling.
func (ProtobufMarshaler) MarshalResource ¶
func (ProtobufMarshaler) MarshalResource(r resource.Resource) ([]byte, error)
MarshalResource implements Marshaler interface.
func (ProtobufMarshaler) UnmarshalResource ¶
func (ProtobufMarshaler) UnmarshalResource(b []byte) (resource.Resource, error)
UnmarshalResource implements Marshaler interface.
Directories ¶
Path | Synopsis |
---|---|
Package bolt implements inmem resource collection backing store in BoltDB (github.com/etcd-io/bbolt).
|
Package bolt implements inmem resource collection backing store in BoltDB (github.com/etcd-io/bbolt). |
Package compression provides compression support for [store.Marshaler].
|
Package compression provides compression support for [store.Marshaler]. |
Package encryption provides encryption support for [store.Marshaler].
|
Package encryption provides encryption support for [store.Marshaler]. |
Click to show internal directories.
Click to hide internal directories.