Documentation ¶
Overview ¶
Package db implements a very simple filesystem abstraction to save all as toml and instruct Git to commit/push.
Index ¶
- Constants
- Variables
- func Init(path string) error
- func Update(change Commit, fn Fn) error
- func View(fn Fn) error
- type Commit
- type CommitMessage
- type Fn
- type Pagination
- type PaginationHeader
- type Txn
- func (t *Txn) List(path []string, p Pagination, mem interface{}, ...) (PaginationHeader, error)
- func (t *Txn) Logs(limit int, fn func(c *CommitMessage) error) error
- func (t *Txn) Move(from, to string) error
- func (t *Txn) Open(path string, out interface{}) error
- func (t *Txn) OpenFirst(paths []string, out interface{}) error
- func (t *Txn) OpenRaw(path string) (io.ReadCloser, error)
- func (t *Txn) RawList(path string) ([]fs.FileInfo, error)
- func (t *Txn) Remove(path string) error
- func (t *Txn) Save(file string, isNew bool, in interface{}) error
Constants ¶
View Source
const DEADLINE = "5s"
View Source
const MAX_FILES = 1000
Variables ¶
View Source
var ( Repo *git.Repository Path string AlwaysLowercase bool // Force disk I/O in lowercase for better OSX compatibility )
Functions ¶
Types ¶
type CommitMessage ¶
type Pagination ¶
type PaginationHeader ¶
type PaginationHeader struct {
Total int
}
Click to show internal directories.
Click to hide internal directories.