package
5.0.2+incompatible
Repository: https://github.com/meateam/api-gateway.git
Documentation: pkg.go.dev
# Packages
Package auth is used to handle authorization using a gin.HandlerFunc defined by Middleware.
# Functions
GetExternalNetworksConfiguration get network object configuration.
NewHealthChecker creates a new Health with default to false.
NewMetricsLogger initializes the metrics middleware.
NewRouter creates new gin.Engine for the api-gateway server and sets it up.
NewServer creates a Server of the api-gateway.
# Constants
ClientNameLabel is the claim name of the client name of the requesting external application.
NoAuthType states thate no auth type was declared in the headers.
UnknownAppID is the app id given to unknown app ids.
# Structs
ExternalNetworkDest configuration of external network.
Server is a structure that holds the http server of the api-gateway.
# Type aliases
Health is an atomic Boolean Its methods are all atomic, thus safe to be called by multiple goroutines simultaneously Note: When embedding into a struct, one should always use *Health to avoid copy.