Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogFormatter ¶
func LogFormatter(cfg *ProxyConfig) handlers.LogFormatter
func SetupGateway ¶
func SetupViper ¶
SetupViper returns a viper configuration object
Types ¶
type ProxyConfig ¶
type ProxyConfig struct { // The JWT signing key to validate Bearer tokens JWTKey string // The Backend gRPC service to listen to. Endpoint string // The log level to use LogLevel string // Whether to log request headers LogHeaders bool // Value to set for Access-Control-Allow-Origin header. CorsAllowOrigin string // Value to set for Access-Control-Allow-Credentials header. CorsAllowCredentials string // Value to set for Access-Control-Allow-Methods header. CorsAllowMethods string // Value to set for Access-Control-Allow-Headers header. CorsAllowHeaders string // Prefix that this gateway is running on. For example, if your API endpoint // was "/foo/bar" in your protofile, and you wanted to run APIs under "/api", // set this to "/api/". ApiPrefix string }
Click to show internal directories.
Click to hide internal directories.