Documentation
¶
Index ¶
- type Application
- type Option
- func WithConfigurator(provider abstract.ConfigProvider) Option
- func WithHandler(handlers ...abstract.Handler) Option
- func WithLicenseChecker(checker abstract.LicenseChecker) Option
- func WithLogger(provider abstract.LoggerProvider) Option
- func WithStarter(starters ...abstract.Starter) Option
- func WithWorkerDir(dir string) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct {
Env *runtime.Env
LicenseChecker abstract.LicenseChecker // 证书校验器
LoggerProvider abstract.LoggerProvider
ConfigProvider abstract.ConfigProvider
Starters []abstract.Starter
Handlers []abstract.Handler
}
func (Application) Print ¶
func (app Application) Print()
type Option ¶
type Option func(app *Application)
func WithConfigurator ¶
func WithConfigurator(provider abstract.ConfigProvider) Option
func WithHandler ¶
func WithLicenseChecker ¶
func WithLicenseChecker(checker abstract.LicenseChecker) Option
func WithLogger ¶
func WithLogger(provider abstract.LoggerProvider) Option
func WithStarter ¶
func WithWorkerDir ¶
Click to show internal directories.
Click to hide internal directories.