Files
Archive/geoip/plugin/maxmind/ipinfo_country_mmdb_in.go
2025-02-01 19:32:25 +01:00

27 lines
728 B
Go

package maxmind
import (
"encoding/json"
"github.com/Loyalsoldier/geoip/lib"
)
/*
The types in this file extend the type `typeMaxmindMMDBIn`,
which make it possible to support more formats for the project.
*/
const (
TypeIPInfoCountryMMDBIn = "ipinfoCountryMMDB"
DescIPInfoCountryMMDBIn = "Convert IPInfo country mmdb database to other formats"
)
func init() {
lib.RegisterInputConfigCreator(TypeIPInfoCountryMMDBIn, func(action lib.Action, data json.RawMessage) (lib.InputConverter, error) {
return newGeoLite2CountryMMDBIn(TypeIPInfoCountryMMDBIn, DescIPInfoCountryMMDBIn, action, data)
})
lib.RegisterInputConverter(TypeIPInfoCountryMMDBIn, &GeoLite2CountryMMDBIn{
Description: DescIPInfoCountryMMDBIn,
})
}