sync

package
v0.0.0-...-5af6bcd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2024 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// templateFilePattern should be "<type>/<name>_<version>.<ext>
	TemplateFilePattern = "(\\./)?([a-zA-Z]+)/([a-zA-Z0-9-]+)_v([0-9\\.]+)(-(alpha|beta))?\\.(zip|tgz|tar\\.gz)"
)

Variables

This section is empty.

Functions

func NewHttpSynchronizer

func NewHttpSynchronizer(cfg Config, storePath string, logger log.Logger) *httpSync

Types

type Config

type Config struct {
	Enabled   bool          `yaml:"enabled"`
	Address   string        `yaml:"address"`
	IndexFile string        `yaml:"index"`
	Interval  time.Duration `yaml:"interval"`
}

Config holds configuration for accessing long-term storage.

func (*Config) RegisterFlags

func (c *Config) RegisterFlags(f *flag.FlagSet)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL