2024-10-27 06:10:27 +01:00
|
|
|
package pkg
|
|
|
|
|
|
2024-11-09 05:34:23 +01:00
|
|
|
const ConfigDir = "/etc/goma/" // Default configuration file
|
2024-11-07 15:42:11 +01:00
|
|
|
const ConfigFile = "/etc/goma/goma.yml" // Default configuration file
|
2024-10-30 16:38:09 +01:00
|
|
|
const accessControlAllowOrigin = "Access-Control-Allow-Origin" // Cors
|
2024-11-02 11:55:37 +01:00
|
|
|
const gatewayName = "Goma Gateway"
|
2024-11-15 14:24:35 +01:00
|
|
|
const AccessMiddleware = "access" // access middlewares
|
|
|
|
|
const BasicAuth = "basic" // basic authentication middlewares
|
|
|
|
|
const JWTAuth = "jwt" // JWT authentication middlewares
|
|
|
|
|
const OAuth = "oauth" // OAuth authentication middlewares
|
2024-11-09 10:59:17 +01:00
|
|
|
// Round-robin counter
|
|
|
|
|
var counter uint32
|
2024-11-12 12:38:34 +01:00
|
|
|
|
2024-11-12 14:31:18 +01:00
|
|
|
var Routes *[]Route
|