Documentation ¶
Overview ¶
gen for home toolset
Index ¶
- func GetAllProvider() []interface{}
- func GetServer(leaders []interface{}) constraint.KernelServer
- type Broadcast
- type Crontab
- type Election
- type Http
- type Msg
- type Queue
- func (q *Queue) AddJob(route string, handle constraint.Job)
- func (q *Queue) CloseBroadcast()
- func (q *Queue) Exit()
- func (q *Queue) HasBroadcast() bool
- func (q *Queue) Init()
- func (q *Queue) Listen(jobs []interface{})
- func (q *Queue) Publish(topic string, message interface{})
- func (q *Queue) Push(message interface{})
- func (q *Queue) Run()
- func (q *Queue) StartBroadcast()
- type Websocket
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAllProvider ¶
func GetAllProvider() []interface{}
func GetServer ¶
func GetServer(leaders []interface{}) constraint.KernelServer
GetServer 提供统一命名规范的独立服务
Types ¶
type Broadcast ¶
type Crontab ¶
type Crontab struct { Cron *cron.Cron // contains filtered or unexported fields }
Crontab @Bean
func NewCrontab ¶
func NewCrontab() *Crontab
type Election ¶
type Election struct { // 队列配置文件的所有配置 *services.Config `inject:"config, election"` // 连接 Connect *services.Redis // contains filtered or unexported fields }
Election @Bean("election")
func NewElection ¶
func NewElection() *Election
type Http ¶
type Http struct { *providers.RouteProvider `inject:""` *services.HttpServer `inject:""` *services.Config `inject:"config, app.servers.http"` *gin.Engine Middleware []gin.HandlerFunc MiddlewareGroup map[string][]gin.HandlerFunc Port string // contains filtered or unexported fields }
Http 提供者 @Bean("http")
type Queue ¶
Queue @Bean("queue")
func (*Queue) CloseBroadcast ¶ added in v0.0.3
func (q *Queue) CloseBroadcast()
func (*Queue) HasBroadcast ¶
func (*Queue) StartBroadcast ¶
func (q *Queue) StartBroadcast()
Click to show internal directories.
Click to hide internal directories.