Documentation ¶
Index ¶
- type Container
- func (c *Container) Container(namespace []byte) *Container
- func (c *Container) Delete(key []byte) error
- func (c *Container) Get(key []byte) ([]byte, error)
- func (c *Container) GetObject(key []byte, dst any) error
- func (c *Container) Has(key []byte) bool
- func (c *Container) Iter(iterFunc func(key, value []byte) error) error
- func (c *Container) IterPrefix(prefix []byte, iterFunc func(key, value []byte) error) error
- func (c *Container) Set(key, value []byte) error
- func (c *Container) SetObject(key []byte, value any) error
- type DB
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Container ¶
type Container struct {
// contains filtered or unexported fields
}
func NewContainer ¶
func (*Container) IterPrefix ¶
type Option ¶
type Option struct { Version []byte Seperator []byte Marshaller func(any) ([]byte, error) Unmarshaler func([]byte, any) error }
func DefaultOption ¶
func DefaultOption() *Option
DefaultOption returns the default option, which uses CBOR as the marshaller and unmarshaller and ":" as the seperator.
Click to show internal directories.
Click to hide internal directories.