cacher

package
v0.0.0-...-5e9c659 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package cache provides a registry cache

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultTTL = time.Minute
)

Functions

This section is empty.

Types

type ICacher

type ICacher interface {
	// embed the registry interface
	registry.IRegistry
	Match(endpoint string) ([]*registry.Service, error)
	// stop the cache watcher
	Stop()
}

Cache is the registry cache interface

func New

func New(r registry.IRegistry, opts ...registry.Option) ICacher

New returns a new cache

Jump to

Keyboard shortcuts

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