xm-golang-exercise

command module
v0.0.0-...-1de268a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2023 License: MIT Imports: 19 Imported by: 0

README

xm-golang-exercise

Go Reference Go Report Card Maintainability Test Coverage

XM Golang Exercise - v21.0.0

How to run

go run main.go

Configuration

Enviroment Variable Description Default
HOST application host 127.0.0.1
PORT application port 9090
DATABASE_DSN MySQL database DSN (data shource name) u:p@tcp(127.0.0.1:3306)/db?charset=utf8mb4
CACHE_SIZE_MB applicaiton cache size, in MB 100
IPAPI_BASE_URL base URL for the ipapi.co service https://ipapi.co
IPAPI_TTL_SECONDS how long to cache information about IP address, in seconds 10
IPAPI_TIMEOUT_SECONDS HTTP client timeout, in seconds 10
IPAPI_ALLOWED_COUNTRIES list of allowed countries (comma separated) CY

Authors

License

MIT License

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL