mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
19 lines
336 B
Go
19 lines
336 B
Go
|
package backupsink
|
||
|
|
||
|
import (
|
||
|
"github.com/chrislusf/seaweedfs/weed/replication/sink"
|
||
|
"github.com/chrislusf/seaweedfs/weed/replication/sink/localsink"
|
||
|
)
|
||
|
|
||
|
type BackupSink struct {
|
||
|
localsink.LocalSink
|
||
|
}
|
||
|
|
||
|
func (backupsink *BackupSink) GetName() string {
|
||
|
return "backup"
|
||
|
}
|
||
|
|
||
|
func init() {
|
||
|
sink.Sinks = append(sink.Sinks, &BackupSink{})
|
||
|
}
|