ctxrootcache

package
v0.286.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadRoot

func LoadRoot(ctx context.Context, path string) (string, bool, error)

LoadRoot loads the modulePath that the provided path will lead to.

func StoreRoot

func StoreRoot(ctx context.Context, path, modulePath string) error

StoreRoot stores the path that leads to the modulePath to the map.

func WithRootCache

func WithRootCache(ctx context.Context) context.Context

WithRootCache adds a module root cache in the context. This is meant to avoid global sync.Map which breaks with parallelized tests.

Types

This section is empty.

Jump to

Keyboard shortcuts

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