{"modulePath":"github.com/gomodedev/gomode","version":"v0.7.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package v2\n\nPackage v2 defines version 2 of the on-disk named IP-origin cache.\n\n## Constants\n\n```go\nconst Version = 2\n```\nVersion is the cache format this package defines.\n\n## Variables\n\n```go\nvar Storage = apispec.Storage{\n\tFormat: apispec.JSON,\n\tTypes:  []reflect.Type{reflect.TypeFor[Cache]()},\n}\n```\nStorage is the schema specification of the IP-origin cache file.\n\nImmutable\n\n## Types\n\n```go\ntype Cache struct {\n\t// Version identifies the format; a reader discards a cache whose Version\n\t// differs and rebuilds it, with no migration.\n\tVersion int `json:\"version\"`\n\t// Origins holds the entry of each named IP origin.\n\tOrigins map[string]Entry `json:\"origins\"`\n}\n```\nCache is the cache file.\n\n```go\ntype Entry struct {\n\tUpdated  apidto.Time `json:\"updated\"`\n\tPrefixes []string    `json:\"prefixes\"`\n}\n```\nEntry contains the origin CIDRs and their refresh timestamp.\n\n","path":"github.com/gomodedev/gomode/httpserver/geoip/data/v2","name":"v2","synopsis":"Package v2 defines version 2 of the on-disk named IP-origin cache.","isRedistributable":true}
