Documentation ¶
Index ¶
- func BytesToMB(value interface{}) float64
- func Goroutine(fn func())
- func GoroutineWithRestart(fn func())
- func InitGin(server graphql.ExecutableSchema, ginInitHandler GinInitHandler, ...) *gin.Engine
- func NanoToMilli(value interface{}) float64
- func Validate(ctx context.Context, callback func() bool) bool
- func ValidateDirective() ...
- type BackgroundProcessor
- func (processor *BackgroundProcessor) RunAsyncMetricsCleaner()
- func (processor *BackgroundProcessor) RunAsyncMetricsCollector(fieldProcessor FieldProcessor)
- func (processor *BackgroundProcessor) RunAsyncOrmConsumer()
- func (processor *BackgroundProcessor) RunAsyncRequestLoggerCleaner()
- func (processor *BackgroundProcessor) RunScript(s app.IScript)
- type FieldProcessor
- 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) RegisterRedisDelayedQueues(queues []string) *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
func NanoToMilli ¶ added in v1.3.59
func NanoToMilli(value interface{}) float64
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(fieldProcessor FieldProcessor)
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 FieldProcessor ¶ added in v1.3.55
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) RegisterRedisDelayedQueues ¶ added in v1.3.69
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.