package
0.0.4
Repository: https://github.com/botchris/go-auditrail.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

AddToContext adds the network details to the context.
Decorator returns a new audit.Logger that appends client details to the log entry before logging it.
EchoMiddleware is an Echo middleware that injects into request's context a [networkd.Details] object holding the client's IP address.
FromContext extracts the network details from the context.
GinMiddleware is a Gin middleware that injects into request's context a [networkd.Details] object holding the client's IP address.
GRPCStreamInterceptor is a gRPC stream server interceptor that injects [networkd.Details] into the context.
GRPCUnaryInterceptor is a gRPC unary call interceptor that injects [networkd.Details] into the context.
NewCachedIPResolver returns a new [IPResolver] that caches the results of the inner [IPResolver] so that subsequent calls to Resolve are faster.

# Structs

AS autonomous system details.
CachedIPResolver is an IPResolver that caches the results of the inner IPResolver so that subsequent calls to Resolve for the same IP address are faster.
City represents the city from which the connection was originated.
Client capture details of the client connecting to the system.
Continent represents the continent from which the connection was originated.
Country represents the country from which the connection was originated.
Details represents the details of a network connection.
GeoIP capture details of the location of the connection.
Location represents GPS coordinates of the connection.
Subdivision represents a subdivision of a country.

# Interfaces

IPResolver is capable of resolving geoip information from a given IP address.