syncrepo

package
v0.0.0-...-6f15a46 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Topic     string `json:"topic"                 required:"true"`
	UserAgent string `json:"user_agent"            required:"true"`

	// The unit is Gbyte
	SizeOfWorspace int `json:"size_of_workspace"   required:"true"`

	// The unit is Gbyte
	AverageRepoSize int `json:"average_repo_size"  required:"true"`

	// kfk
	Kafka kfklib.Config `json:"kafka"`
}

func (*Config) Validate

func (cfg *Config) Validate() error

type SyncRepo

type SyncRepo struct {
	// contains filtered or unexported fields
}

func NewSyncRepo

func NewSyncRepo(cfg *Config, service app.SyncService) *SyncRepo

func (*SyncRepo) Run

func (d *SyncRepo) Run(ctx context.Context, cfg *Config, log *logrus.Entry) error

Jump to

Keyboard shortcuts

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