Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CoreComponentFactory = &ComponentFactory{ Services: Services, Middleware: Middleware, Modules: Modules, }
View Source
var Middleware = middleware.Factory{ stats.Name: stats.New, authn.Name: authn.New, validate.Name: validate.New, }
View Source
var Modules = module.Factory{ assetsmod.Name: assetsmod.New, authnmod.Name: authnmod.New, healthcheckmod.Name: healthcheckmod.New, appmod.Name: appmod.New, }
TODO: Modules is a terrible name
View Source
var Services = service.Factory{ authnservice.Name: authnservice.New, authnservice.StorageName: authnservice.NewStorage, awsservice.Name: awsservice.New, pgservice.Name: pgservice.New, appservice.Name: appservice.New, temporalservice.Name: temporalservice.New, }
Functions ¶
func Run ¶
func Run(f *Flags, cf *ComponentFactory, assets http.FileSystem)
func RunWithConfig ¶
func RunWithConfig(f *Flags, cfg *gatewayv1.Config, cf *ComponentFactory, assets http.FileSystem)
Types ¶
type ComponentFactory ¶
type ComponentFactory struct { Services service.Factory Middleware middleware.Factory Modules module.Factory }
All available components supply their factory here. Whether or not they are used at runtime is dependent on the configuration passed to the Gateway.
Click to show internal directories.
Click to hide internal directories.