Documentation ¶
Overview ¶
Package apiserver provides the freegeoip web server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Version = "3.1.5"
Version tag.
Functions ¶
func NewHandler ¶
NewHandler creates an http handler for the freegeoip server that can be embedded in other servers.
Types ¶
type Config ¶
type Config struct { ServerAddr string TLSServerAddr string TLSCertFile string TLSKeyFile string APIPrefix string CORSOrigin string ReadTimeout time.Duration WriteTimeout time.Duration PublicDir string DB string UpdateInterval time.Duration RetryInterval time.Duration UseXForwardedFor bool Silent bool LogToStdout bool LogTimestamp bool RedisAddr string RedisTimeout time.Duration MemcacheAddr string MemcacheTimeout time.Duration RateLimitBackend string RateLimitLimit uint64 RateLimitInterval time.Duration InternalServerAddr string UpdatesHost string LicenseKey string UserID string ProductID string // contains filtered or unexported fields }
Config is the configuration of the freegeoip server.
Click to show internal directories.
Click to hide internal directories.