Documentation ¶
Index ¶
Constants ¶
View Source
const ( // RouteConfigKey the config key name RouteConfigKey = "namespace-router" FiberRouteConfigKey = "fiber-router" FiberStageRouteConfigKey = "fiber-stage-router" )
Variables ¶
View Source
var NoDefaultError = errors.New("no default route configed")
Functions ¶
This section is empty.
Types ¶
type Router ¶
type Router interface { GetNamespace(appName string) (string, error) GetFiberId(app, az, region, stage, unit string) (string, error) }
Router routes a GroupPlan request from app to a kubernetes namespace.
func NewConfigRouter ¶
NewConfigRouter creates a config router which loads routing from configs.
func NewGlobalConfigRouter ¶
func NewGlobalConfigRouter() Router
Click to show internal directories.
Click to hide internal directories.