Documentation ¶
Index ¶
- Constants
- Variables
- func Dprintf(format string, a ...interface{}) (n int, err error)
- func FindDumpPath(d DumpDate, roots Roots) string
- func IsDump(path string, roots Roots) bool
- func RdRoots(roots *Roots)
- type DumpDate
- func (d *DumpDate) IsAfter(d2 DumpDate) bool
- func (d *DumpDate) IsBefore(d2 DumpDate) bool
- func (d *DumpDate) IsBeforeSparse(d2 DumpDate) bool
- func (d *DumpDate) SameDay(d2 *DumpDate) bool
- func (d *DumpDate) SameHour(d2 *DumpDate) bool
- func (d *DumpDate) SameMonth(d2 *DumpDate) bool
- func (d *DumpDate) SameYear(d2 *DumpDate) bool
- func (d *DumpDate) String() string
- type Roots
Constants ¶
View Source
const ( MainRootVar = "MAINROOT" MainDumpVar = "DUMPROOT" DefaultRoot = "/newage/NEWAGE" DefaultRootName = "NEWAGE" DefaultDump = "/dump" )
Variables ¶
View Source
var Debug bool
Functions ¶
func FindDumpPath ¶
FindDumpPath looks for a path as close as possible to the date, but which may be equal or smaller
Types ¶
type DumpDate ¶
type DumpDate struct {
// contains filtered or unexported fields
}
A DumpDate represents a path in the Dump in an abstract way, by a description of the time. It is an opaque type without exported fields
func NewDumpDate ¶
NewDumpDate creates a new DumpDate from the description.
func ParseDumpPath ¶
ParseDumpPath interprets a dump path as a date (years, months, days, hours). The smallest values may be missing and interpeted as zero.
func TimeAddDate ¶
Add DumpDate to a time to obtain a DumpDate
func (*DumpDate) IsBeforeSparse ¶
ignoring zeros
Click to show internal directories.
Click to hide internal directories.