Documentation
¶
Index ¶
- func GetIpLocationDetails(ipAddress string) (city *geoip2.City, err error)
- func SetDebugging(flag bool)
- func SetExludeIPs(ips string)
- func SetGeoIPPath(path string)
- func SetPrometheusEndpointAndPort(path, port string)
- func Shutdown()
- func Start()
- type AuthLog
- type AuthLogLine
- type Exporter
- type GeoIPDatabase
- type RequestLog
- type RequestLogLine
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetIpLocationDetails ¶
func SetDebugging ¶
func SetDebugging(flag bool)
func SetExludeIPs ¶
func SetExludeIPs(ips string)
func SetGeoIPPath ¶
func SetGeoIPPath(path string)
func SetPrometheusEndpointAndPort ¶
func SetPrometheusEndpointAndPort(path, port string)
Types ¶
type AuthLog ¶
type AuthLog struct { LastLogTime time.Time LastLine *AuthLogLine Metrics metrics Debug bool // contains filtered or unexported fields }
func LoadAuthLog ¶
func (*AuthLog) AddMetrics ¶
func (a *AuthLog) AddMetrics()
func (*AuthLog) SetupMetrics ¶
func (a *AuthLog) SetupMetrics()
func (*AuthLog) StartExport ¶
type AuthLogLine ¶
type GeoIPDatabase ¶
type GeoIPDatabase struct {
// contains filtered or unexported fields
}
func (*GeoIPDatabase) Close ¶
func (db *GeoIPDatabase) Close()
type RequestLog ¶
type RequestLog struct { LastLogTime time.Time LastLine *RequestLogLine Metrics metrics Debug bool // contains filtered or unexported fields }
func LoadRequestLog ¶
func LoadRequestLog(filePath, lineParser string) (*RequestLog, error)
func (*RequestLog) AddMetrics ¶
func (a *RequestLog) AddMetrics()
func (*RequestLog) Close ¶
func (a *RequestLog) Close()
func (*RequestLog) ParseLine ¶
func (a *RequestLog) ParseLine(line *tail.Line)
func (*RequestLog) SetupMetrics ¶
func (a *RequestLog) SetupMetrics()
func (*RequestLog) StartExport ¶
func (a *RequestLog) StartExport() error
Click to show internal directories.
Click to hide internal directories.