package
Version:
v0.0.0-...-f3efba2
Opens a new window with list of versions in this module.
Published: Jul 13, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 16
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Context provides access to the data store.
Open the context using path as the data store location.
Close the resources associated with this context.
Del removes an existing file from the data store.
Get retreives a file from the data store.
GetAll gets everything in the db to dump it out for backup purposes
Put stores a new file in the data store.
type File struct {
Content []byte `json:"content"`
Time time.Time `json:"time"`
}
File is the value part of a shortcut.
type Flag struct {
Name string `json:"name"`
Value string `json:"value"`
}
type StoreRequest struct {
FileName string `json:"filename"`
Content []byte `json:"content"`
Flags []Flag `json:"flags"`
Service string `json:"service"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.