Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppPlugins ¶
type AppPlugins struct { LogPlugins *[]LogPlugin RouterPlugins *[]RouterPlugin LoggerPlugins *[]LoggerPlugin Plugins *[]BasePlugin }
type AppRepos ¶
type AppRepos struct { Log domain.LogRepository LogStream domain.LogStreamRepository Clients domain.ClientsRepository Subscriptions domain.SubscriptionsRepository }
type AppUseCases ¶
type AppUseCases struct { Log domain.LogUseCase LogStream domain.LogStreamUseCase Clients domain.ClientsUseCase }
type AppendLogger ¶
type BasePlugin ¶
type Context ¶
type Context struct { Config Config Server *fiber.App Logger *domain.Logger Plugins *AppPlugins UseCases *AppUseCases Repos *AppRepos }
func NewAppContext ¶
func (Context) RequireModule ¶
type LogPlugin ¶
type LogPlugin interface { BasePlugin HandleLog(log domain.Log) }
type LoggerPlugin ¶
type LoggerPlugin interface { BasePlugin AppendLogger(context *Context) domain.Logger }
type RouterPlugin ¶
type RouterPlugin interface { BasePlugin SetupRouter(router fiber.Router, context *Context) }
type SetupRouter ¶
type SetupRouter = func(router fiber.Router, context *Context)
Click to show internal directories.
Click to hide internal directories.