mirror of
https://github.com/Luzifer/cloudbox.git
synced 2024-11-08 22:20:09 +00:00
29 lines
372 B
Go
29 lines
372 B
Go
|
package sync
|
||
|
|
||
|
import (
|
||
|
"database/sql"
|
||
|
|
||
|
"github.com/Luzifer/cloudbox/providers"
|
||
|
)
|
||
|
|
||
|
type Sync struct {
|
||
|
db *sql.DB
|
||
|
local, remote providers.CloudProvider
|
||
|
}
|
||
|
|
||
|
func New(local, remote providers.CloudProvider, db *sql.DB) *Sync {
|
||
|
return &Sync{
|
||
|
db: db,
|
||
|
local: local,
|
||
|
remote: remote,
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (s *Sync) Run() error {
|
||
|
for {
|
||
|
select {}
|
||
|
}
|
||
|
|
||
|
return nil
|
||
|
}
|