Documentation
¶
Overview ¶
Package storage intends to provide a unified storage layer for Golang.
Goals ¶
- Production ready: high test coverage, enterprise storage software adaptation, semantic versioning, well documented.
- High performance: more code generation, less runtime reflect.
- Vendor agnostic: more generic abstraction, less internal details.
Examples ¶
The most common case to use a Storager service could be following:
1. Init a storager.
store, err := fs.NewStorager(pairs.WithWorkDir("/tmp")) if err != nil { log.Fatalf("service init failed: %v", err) }
2. Use Storager API to maintain data.
var buf bytes.Buffer n, err := store.Read("path/to/file", &buf) if err != nil { log.Printf("storager read: %v", err) }
Directories
¶
Path | Synopsis |
---|---|
cmd
|
|
Package pairs intend to provide all available pairs.
|
Package pairs intend to provide all available pairs. |
pkg
|
|
Package types intends to provide all types used in storage layer.
|
Package types intends to provide all types used in storage layer. |
Click to show internal directories.
Click to hide internal directories.