Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GeoIpLookup ¶
type GeoIpLookup interface {
Reopen() error
GetAll(ipAddr string) (*GeoData, error)
IsValid(ipAddr string) bool
}
func NewGeoIpLookup ¶
func NewGeoIpLookup(path string, logger *slog.Logger) (GeoIpLookup, error)
type IpinfoUpdater ¶ added in v0.2.0
type IpinfoUpdater struct {
// contains filtered or unexported fields
}
func NewIpinfoUpdaterCronJob ¶ added in v0.2.0
func NewIpinfoUpdaterCronJob(logger *slog.Logger, fileName string, geoIpLookup GeoIpLookup) *IpinfoUpdater
func (*IpinfoUpdater) Run ¶ added in v0.2.0
func (job *IpinfoUpdater) Run()
Click to show internal directories.
Click to hide internal directories.