Documentation
¶
Index ¶
- func Goroutine(fn func())
- func GoroutineWithRestart(fn func())
- func InitGin(server graphql.ExecutableSchema, ginInitHandler GinInitHandler, ...) *gin.Engine
- func Validate(ctx context.Context, callback func() bool) bool
- func ValidateDirective() ...
- type BackgroundProcessor
- func (processor *BackgroundProcessor) RunAsyncMetricsCleaner()
- func (processor *BackgroundProcessor) RunAsyncMetricsCollector()
- func (processor *BackgroundProcessor) RunAsyncOrmConsumer()
- func (processor *BackgroundProcessor) RunAsyncRequestLoggerCleaner()
- func (processor *BackgroundProcessor) RunScript(s app.IScript)
- type GQLServerInitHandler
- type GinInitHandler
- type Hitrix
- type Registry
- func (r *Registry) Build() (*Hitrix, func())
- func (r *Registry) RegisterDIGlobalService(service ...*service.DefinitionGlobal) *Registry
- func (r *Registry) RegisterDIRequestService(service ...*service.DefinitionRequest) *Registry
- func (r *Registry) RegisterDevPanel(devPanelUserEntity app.IDevPanelUserEntity, router func(ginEngine *gin.Engine)) *Registry
- func (r *Registry) RegisterRedisPools(pools *app.RedisPools) *Registry
- func (r *Registry) SetParallelTestID(parallelTestID string) *Registry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GoroutineWithRestart ¶ added in v0.8.77
func GoroutineWithRestart(fn func())
func InitGin ¶
func InitGin(server graphql.ExecutableSchema, ginInitHandler GinInitHandler, gqlServerInitHandler GQLServerInitHandler) *gin.Engine
Types ¶
type BackgroundProcessor ¶ added in v0.8.5
type BackgroundProcessor struct {
Server *Hitrix
}
func (*BackgroundProcessor) RunAsyncMetricsCleaner ¶ added in v1.3.48
func (processor *BackgroundProcessor) RunAsyncMetricsCleaner()
func (*BackgroundProcessor) RunAsyncMetricsCollector ¶ added in v1.3.48
func (processor *BackgroundProcessor) RunAsyncMetricsCollector()
func (*BackgroundProcessor) RunAsyncOrmConsumer ¶ added in v0.8.5
func (processor *BackgroundProcessor) RunAsyncOrmConsumer()
func (*BackgroundProcessor) RunAsyncRequestLoggerCleaner ¶ added in v1.1.59
func (processor *BackgroundProcessor) RunAsyncRequestLoggerCleaner()
func (*BackgroundProcessor) RunScript ¶ added in v0.8.5
func (processor *BackgroundProcessor) RunScript(s app.IScript)
type GQLServerInitHandler ¶ added in v0.3.1
type GinInitHandler ¶
type Hitrix ¶
type Hitrix struct {
// contains filtered or unexported fields
}
func (*Hitrix) RunBackgroundProcess ¶ added in v0.8.5
func (h *Hitrix) RunBackgroundProcess(callback func(b *BackgroundProcessor))
func (*Hitrix) RunServer ¶
func (h *Hitrix) RunServer( defaultPort uint, server graphql.ExecutableSchema, ginInitHandler GinInitHandler, gqlServerInitHandler GQLServerInitHandler, )
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func (*Registry) RegisterDIGlobalService ¶ added in v0.8.35
func (r *Registry) RegisterDIGlobalService(service ...*service.DefinitionGlobal) *Registry
func (*Registry) RegisterDIRequestService ¶ added in v0.8.35
func (r *Registry) RegisterDIRequestService(service ...*service.DefinitionRequest) *Registry
func (*Registry) RegisterDevPanel ¶
func (*Registry) RegisterRedisPools ¶ added in v0.9.19
func (r *Registry) RegisterRedisPools(pools *app.RedisPools) *Registry
func (*Registry) SetParallelTestID ¶ added in v0.8.82
Source Files
¶
Click to show internal directories.
Click to hide internal directories.