persist

package
v0.0.0-...-72a54ad Latest Latest
Warning

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

Go to latest
Published: May 13, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DepersistMany

func DepersistMany(db *bolt.DB, bucketName []byte, keys map[string]bool) error

func DepersistManyBoltTx

func DepersistManyBoltTx(bucket *bolt.Bucket, keys map[string]bool) error

func DepersistOne

func DepersistOne(db *bolt.DB, bucketName []byte, key string) error

func DepersistOneBoltTx

func DepersistOneBoltTx(bucket *bolt.Bucket, key string) error

func LoadAll

func LoadAll(db *bolt.DB, bucket []byte, factory UnmarshalerFactory) (map[string]proto.Unmarshaler, error)

func LoadMany

func LoadMany(db *bolt.DB, bucketName []byte, objs map[string]proto.Unmarshaler) error

func LoadManyBoltTx

func LoadManyBoltTx(bucket *bolt.Bucket, objs map[string]proto.Unmarshaler) error

func LoadOne

func LoadOne(db *bolt.DB, bucketName []byte, key string, obj proto.Unmarshaler) error

func LoadOneBoltTx

func LoadOneBoltTx(bucket *bolt.Bucket, key string, obj proto.Unmarshaler) error

func PersistMany

func PersistMany(db *bolt.DB, bucketName []byte, objs map[string]proto.Marshaler) error

func PersistManyBoltTx

func PersistManyBoltTx(bucket *bolt.Bucket, objs map[string]proto.Marshaler) error

func PersistOne

func PersistOne(db *bolt.DB, bucketName []byte, key string, obj proto.Marshaler) error

func PersistOneBoltTx

func PersistOneBoltTx(bucket *bolt.Bucket, key string, obj proto.Marshaler) error

Types

type UnmarshalerFactory

type UnmarshalerFactory interface {
	New() proto.Unmarshaler
}

Jump to

Keyboard shortcuts

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