Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppComponentCtor ¶
type AppComponentCtor = func(app IApp) IAppComponent
type AppControllerCtor ¶
type AppControllerCtor = func(component IAppComponent) IAppController
type IAccessPolicy ¶
type IAccessPolicy string
const ( AccessPolicyPublic IAccessPolicy = "public" AccessPolicyAuthenticated IAccessPolicy = "authenticated" AccessPolicyAdmin IAccessPolicy = "admin" )
type IAppComponent ¶
type IAppComponent interface { ILoggable GetName() string GetOrder() int GetApp() IApp GetConfig() *embed.FS GetDocs() *swag.Spec GetUI() *embed.FS GetAccessPolicy() IAccessPolicy GetControllers() []IAppController GetController(name string) IAppController Init() error Register(r *gin.RouterGroup) error Start() error Stop() error }
type IAppController ¶
type IKernel ¶
type IKernel interface { ILoggable GetApp() IApp GetRunDirectory() string GetRootContext() context.Context GetService(key KernelServiceContextKey) IKernelService SetService(service IKernelService) Init() error Register() error Start() error ListenAndServe() error }
type IKernelService ¶
type ILogger ¶
type ILogger interface { GetName() string CreateSubLogger(name string) ILogger Scope(name string, handler func(log ILogger) error) error ScopeWithReturn(name string, handler func(log ILogger) (any, error)) (any, error) GetBaseLogger() *logrus.Entry Trace(message string) TraceF(format string, args ...interface{}) Debug(message string) DebugF(format string, args ...interface{}) Info(message string) InfoF(format string, args ...interface{}) Warn(message string) WarnF(format string, args ...interface{}) Error(message string) ErrorF(format string, args ...interface{}) Panic(message string) PanicF(format string, args ...interface{}) }
type KernelServiceContextKey ¶
type KernelServiceContextKey string
Click to show internal directories.
Click to hide internal directories.