MCPcopy
hub / github.com/benbjohnson/litestream / TargetTime

Method TargetTime

vfs.go:990–998  ·  view source on GitHub ↗

TargetTime returns the current target time for the VFS file (nil for latest).

()

Source from the content-addressed store, hash-verified

988
989// TargetTime returns the current target time for the VFS file (nil for latest).
990func (f *VFSFile) TargetTime() *time.Time {
991 f.mu.Lock()
992 defer f.mu.Unlock()
993 if f.targetTime == nil {
994 return nil
995 }
996 t := *f.targetTime
997 return &t
998}
999
1000// LatestLTXTime returns the timestamp of the most recent LTX file.
1001func (f *VFSFile) LatestLTXTime() time.Time {

Callers 1

currentTimeStringMethod · 0.95

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected