Documentation ¶
Index ¶
- type Local
- func (storage *Local) BucketNameFor(e frameless.Entity) []byte
- func (storage *Local) Close() error
- func (storage *Local) Create(ctx context.Context, ptr interface{}) error
- func (storage *Local) DeleteByID(ctx context.Context, Type interface{}, ID string) error
- func (storage *Local) Deserialize(CompressedAndSerialized []byte, ptr interface{}) error
- func (storage *Local) FindAll(ctx context.Context, Type interface{}) frameless.Iterator
- func (storage *Local) FindByID(ctx context.Context, ptr interface{}, ID string) (bool, error)
- func (storage *Local) IDToBytes(ID string) ([]byte, error)
- func (storage *Local) Serialize(e frameless.Entity) ([]byte, error)
- func (storage *Local) Truncate(ctx context.Context, Type interface{}) error
- func (storage *Local) Update(ctx context.Context, ptr interface{}) error
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Local ¶
func NewLocal ¶
Example ¶
package main import ( "github.com/adamluzsi/frameless/resources/storages/localstorage" ) func main() { localstorage.NewLocal("path/to/local/db/file") }
Output:
func (*Local) DeleteByID ¶
func (*Local) Deserialize ¶
Click to show internal directories.
Click to hide internal directories.