Documentation
¶
Index ¶
Constants ¶
View Source
const RunnerQueue = "default"
View Source
const RunnerTask = "bot-runner"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func NewRepository ¶
func NewRepository(in *do.Injector) (*Repository, error)
func (*Repository) UpdateBotInfo ¶
func (r *Repository) UpdateBotInfo(ctx context.Context, info Info) error
type TaskClient ¶
func NewTaskClient ¶
func NewTaskClient(in *do.Injector) (*TaskClient, error)
func (*TaskClient) Shutdown ¶
func (c *TaskClient) Shutdown() error
type TaskInspector ¶
func NewTaskInspector ¶
func NewTaskInspector(in *do.Injector) (*TaskInspector, error)
func (*TaskInspector) Shutdown ¶
func (i *TaskInspector) Shutdown() error
type TaskPayload ¶
type TaskPayload struct {
BotID int64 `json:"bot_id"`
}
type TaskServer ¶
type TaskServer struct {
// contains filtered or unexported fields
}
func NewTaskServer ¶
func NewTaskServer(in *do.Injector) (*TaskServer, error)
func (*TaskServer) Shutdown ¶
func (s *TaskServer) Shutdown() error
func (*TaskServer) Start ¶
func (s *TaskServer) Start() error
type WebhookServer ¶
type WebhookServer struct {
// contains filtered or unexported fields
}
func NewWebhookServer ¶
func NewWebhookServer(in *do.Injector) (*WebhookServer, error)
func (*WebhookServer) RegisterBot ¶
func (w *WebhookServer) RegisterBot(path string, handler telego.WebhookHandler) error
func (*WebhookServer) Shutdown ¶
func (w *WebhookServer) Shutdown() error
func (*WebhookServer) Start ¶
func (w *WebhookServer) Start() error
func (*WebhookServer) UnregisterBot ¶
func (w *WebhookServer) UnregisterBot(botID int64)
Click to show internal directories.
Click to hide internal directories.