Documentation
¶
Index ¶
Constants ¶
View Source
const ( ModGeo = "mod_geo" GeoDBDefaultPath = "mod_geo/geo.db" )
Variables ¶
View Source
var ( CtxCountryIsoCode = "mod_geo.country_iso_code" CtxSubdivisionIsoCode = "mod_geo.subdivision_iso_code" CtxCityName = "mod_geo.city_name" CtxLatitude = "mod_geo.latitude" CtxLongitude = "mod_geo.longitude" )
Functions ¶
func ConfModBlockCheck ¶
func ConfModBlockCheck(cfg *ConfModGeo, confRoot string) error
Types ¶
type ConfModGeo ¶
type ConfModGeo struct { Basic struct { GeoDBPath string // path of geolocation database } Log struct { OpenDebug bool } }
func ConfLoad ¶
func ConfLoad(filePath string, confRoot string) (*ConfModGeo, error)
ConfLoad loads config of geo module from file.
func (*ConfModGeo) Check ¶
func (cfg *ConfModGeo) Check(confRoot string) error
Check validates module config
type ModuleGeo ¶
type ModuleGeo struct {
// contains filtered or unexported fields
}
func NewModuleGeo ¶
func NewModuleGeo() *ModuleGeo
func (*ModuleGeo) Init ¶
func (m *ModuleGeo) Init(cbs *bfe_module.BfeCallbacks, whs *web_monitor.WebHandlers, cr string) error
Click to show internal directories.
Click to hide internal directories.