store

package
v0.3.1-beta.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: MPL-2.0 Imports: 3 Imported by: 1

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].

Jump to

Keyboard shortcuts

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