Allow URLs for replica config path

This commit is contained in:
Ben Johnson
2021-01-15 12:04:23 -07:00
parent 0655bf420a
commit 43dda4315f
3 changed files with 84 additions and 2 deletions

View File

@@ -141,6 +141,11 @@ func (r *FileReplica) Type() string {
return "file"
}
// Path returns the path the replica was initialized with.
func (r *FileReplica) Path() string {
return r.dst
}
// LastPos returns the last successfully replicated position.
func (r *FileReplica) LastPos() Pos {
r.mu.RLock()