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 ¶
func New(jcz JSONCoverageZones) (CoverageZone, error)
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
Click to show internal directories.
Click to hide internal directories.