cache

package
v0.0.0-...-a361e5b Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

package contains Disco cache

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

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

func NewCache

func NewCache(yaml *url.URL) *Cache

func (*Cache) Get

func (s *Cache) Get(key string) (k8gb K8gb, err error)

func (*Cache) Info

func (s *Cache) Info() Info

func (*Cache) RestoreCache

func (s *Cache) RestoreCache() (err error)

type Info

type Info struct {
	ValidFrom    time.Time
	RefreshCount int
}

type K8gb

type K8gb struct {
	LastHit          time.Time
	ValidFrom        time.Time
	HitCount         int
	GeoTag           string   `yaml:"clusterGeoTag"`
	ExternalGeoTags  []string `yaml:"extGslbClustersGeoTags"`
	DNSZone          string   `yaml:"dnsZone"`
	EdgeDNSZone      string   `yaml:"edgeDNSZone"`
	EdgeDNSServer    string   `yaml:"edgeDNSServer"`
	IngressNamespace string   `yaml:"ingressNamespace"`
}

Jump to

Keyboard shortcuts

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