Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SatelliteStore ¶
type SatelliteStore struct {
// contains filtered or unexported fields
}
SatelliteStore is a helper that allows atomically writing satellite scoped files into a directory.
func NewSatelliteStore ¶
func NewSatelliteStore(dir, ext string) *SatelliteStore
NewSatelliteStore returns a SatelliteStore rooted at the given directory and will append the files with the given extension. The files will be named like `<dir>/<satellite id>.<ext>`.
func (*SatelliteStore) Get ¶
Get returns the data for the given satellite returning any errors. There will be an error if the satellite does not exist.
Click to show internal directories.
Click to hide internal directories.