repomap

package
v1.5.6 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package repomap provides a thread safe map of repositories for caches

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SafeRepoMap

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

func (*SafeRepoMap) Load

func (*SafeRepoMap) LoadAndDelete

func (s *SafeRepoMap) LoadAndDelete(key repository.RepositoryKey) (repository.Repository, bool)

func (*SafeRepoMap) LoadOrCreate

func (s *SafeRepoMap) LoadOrCreate(key repository.RepositoryKey, create func() (repository.Repository, error)) (repository.Repository, error)

func (*SafeRepoMap) Range

func (s *SafeRepoMap) Range(f func(key, value any) bool)

Jump to

Keyboard shortcuts

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