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
}
Click to show internal directories.
Click to hide internal directories.