Documentation ¶
Index ¶
- func DepersistMany(db *bolt.DB, bucketName []byte, keys map[string]bool) error
- func DepersistManyBoltTx(bucket *bolt.Bucket, keys map[string]bool) error
- func DepersistOne(db *bolt.DB, bucketName []byte, key string) error
- func DepersistOneBoltTx(bucket *bolt.Bucket, key string) error
- func LoadAll(db *bolt.DB, bucket []byte, factory UnmarshalerFactory) (map[string]proto.Unmarshaler, error)
- func LoadMany(db *bolt.DB, bucketName []byte, objs map[string]proto.Unmarshaler) error
- func LoadManyBoltTx(bucket *bolt.Bucket, objs map[string]proto.Unmarshaler) error
- func LoadOne(db *bolt.DB, bucketName []byte, key string, obj proto.Unmarshaler) error
- func LoadOneBoltTx(bucket *bolt.Bucket, key string, obj proto.Unmarshaler) error
- func PersistMany(db *bolt.DB, bucketName []byte, objs map[string]proto.Marshaler) error
- func PersistManyBoltTx(bucket *bolt.Bucket, objs map[string]proto.Marshaler) error
- func PersistOne(db *bolt.DB, bucketName []byte, key string, obj proto.Marshaler) error
- func PersistOneBoltTx(bucket *bolt.Bucket, key string, obj proto.Marshaler) error
- type UnmarshalerFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DepersistManyBoltTx ¶
func LoadAll ¶
func LoadAll(db *bolt.DB, bucket []byte, factory UnmarshalerFactory) (map[string]proto.Unmarshaler, error)
func LoadManyBoltTx ¶
func LoadOneBoltTx ¶
func PersistMany ¶
func PersistManyBoltTx ¶
func PersistOne ¶
Types ¶
type UnmarshalerFactory ¶
type UnmarshalerFactory interface {
New() proto.Unmarshaler
}
Click to show internal directories.
Click to hide internal directories.