mirror

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2026 License: 0BSD Imports: 10 Imported by: 0

Documentation

Overview

Package mirror synchronizes repositories with foreign remotes: push mirrors propagate local refs outward after each receive, pull mirrors keep a local copy fresh from an upstream. Sync runs in a background worker, never in the push path; outcomes are recorded per mirror so `repo mirror list` shows failure states like webhook deliveries do.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Worker

type Worker struct {
	St   *store.Store
	Cfg  config.Config
	Tick time.Duration
}

func New

func New(st *store.Store, cfg config.Config) *Worker

func (*Worker) Run

func (w *Worker) Run(ctx context.Context)

Source Files

  • mirror.go

Jump to

Keyboard shortcuts

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