services

package
v0.0.0-...-2c675d4 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GC

type GC struct {
	Ctx  context.Context
	Log  logger.Logger
	Cfg  config.Config
	Repo string
	// Mu guards the on-disk repo at Repo: Source() takes a write lock while
	// cloning/fetching, Mirror() takes a read lock while serving a request,
	// so a client fetch never races a background git fetch into the same repo.
	Mu sync.RWMutex
}

func NewGitCache

func NewGitCache(ctx context.Context, cfg config.Config, log *logger.Logger) *GC

func (*GC) Mirror

func (gc *GC) Mirror()

func (*GC) Source

func (gc *GC) Source()

Jump to

Keyboard shortcuts

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