coveragezone

package
v5.1.2+incompatible Latest Latest
Warning

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

Go to latest
Published: May 6, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CoverageZone

type CoverageZone interface {
	Get(ip net.IP) (tc.CRConfigLatitudeLongitude, bool)
}

func Load

func Load(filename string) (CoverageZone, error)

func New

type JSONCoverageZoneCacheGroup

type JSONCoverageZoneCacheGroup struct {
	Coordinates tc.CRConfigLatitudeLongitude // TODO rename CRConfigLatitudeLongitude
	Network     []string                     // TODO change to IPNet with Unmarshal func
	Network6    []string
}

type JSONCoverageZones

type JSONCoverageZones struct {
	CoverageZones map[tc.CacheGroupName]JSONCoverageZoneCacheGroup `json:"coverageZones"`
	CustomerName  string                                           `json:"customerName"`
	Revision      string                                           `json:"revision"` // TODO change to Time with Marshal func?
}

TODO put in lib/go-tc

Jump to

Keyboard shortcuts

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