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
- 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 ¶
func GoroutineWithRestart(fn func())
func InitGin ¶
func InitGin(server graphql.ExecutableSchema, ginInitHandler GinInitHandler, gqlServerInitHandler GQLServerInitHandler) *gin.Engine
Types ¶
type BackgroundProcessor ¶
type BackgroundProcessor struct {
Server *Hitrix
}
func (*BackgroundProcessor) RunAsyncOrmConsumer ¶
func (processor *BackgroundProcessor) RunAsyncOrmConsumer()
func (*BackgroundProcessor) RunAsyncRequestLoggerCleaner ¶
func (processor *BackgroundProcessor) RunAsyncRequestLoggerCleaner()
func (*BackgroundProcessor) RunScript ¶
func (processor *BackgroundProcessor) RunScript(s app.IScript)
type GQLServerInitHandler ¶
type GinInitHandler ¶
type Hitrix ¶
type Hitrix struct {
// contains filtered or unexported fields
}
func (*Hitrix) RunBackgroundProcess ¶
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 ¶
func (r *Registry) RegisterDIGlobalService(service ...*service.DefinitionGlobal) *Registry
func (*Registry) RegisterDIRequestService ¶
func (r *Registry) RegisterDIRequestService(service ...*service.DefinitionRequest) *Registry
func (*Registry) RegisterDevPanel ¶
func (*Registry) RegisterRedisPools ¶
func (r *Registry) RegisterRedisPools(pools *app.RedisPools) *Registry
func (*Registry) SetParallelTestID ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.