Documentation ¶
Overview ¶
package synchronizer uploads missing MRT archives to the gRPC archive server. It is only compatible with RouteViews files currently.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Synchronizer ¶
type Synchronizer struct {
// contains filtered or unexported fields
}
func New ¶
func New(cfg *Config) (*Synchronizer, error)
func (*Synchronizer) Sync ¶
Sync syncs MRT archives with the GCS backup. It uses FTP to find all missing files from the given time span, check if any of them are missing, download the missing ones through HTTP (better stability), and upload them through the gRPC upload server. Files are uploaded in order of time per collector.
Click to show internal directories.
Click to hide internal directories.