Documentation ¶
Index ¶
- Variables
- func Health(ctx *fiber.Ctx) error
- func NotFoundHandler(ctx *fiber.Ctx) error
- type AddComponentRes
- type ApiHandler
- func (h *ApiHandler) AddComponent(ctx *fiber.Ctx) error
- func (h *ApiHandler) AddConnetion(ctx *fiber.Ctx) error
- func (h *ApiHandler) DeleteBot(ctx *fiber.Ctx) error
- func (h *ApiHandler) DeleteBotToken(ctx *fiber.Ctx) error
- func (h *ApiHandler) DeleteComponent(ctx *fiber.Ctx) error
- func (h *ApiHandler) DeleteConnection(ctx *fiber.Ctx) error
- func (h *ApiHandler) GetBotComponents(ctx *fiber.Ctx) error
- func (h *ApiHandler) GetBotToken(ctx *fiber.Ctx) error
- func (h *ApiHandler) GetBots(ctx *fiber.Ctx) error
- func (h *ApiHandler) NewBot(ctx *fiber.Ctx) error
- func (h *ApiHandler) SetBotToken(ctx *fiber.Ctx) error
- func (h *ApiHandler) SetComponentPosition(ctx *fiber.Ctx) error
- func (h *ApiHandler) StartBot(ctx *fiber.Ctx) error
- func (h *ApiHandler) StopBot(ctx *fiber.Ctx) error
- func (h *ApiHandler) UpdateComponentData(ctx *fiber.Ctx) error
- func (h *ApiHandler) UpdateComponentPath(ctx *fiber.Ctx) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrUserIDConvertation = errors.New("userId convertation to int64")
)
Functions ¶
func NotFoundHandler ¶
func NotFoundHandler(ctx *fiber.Ctx) error
Types ¶
type AddComponentRes ¶
type AddComponentRes struct {
Id int64 `json:"id"`
}
type ApiHandler ¶
type ApiHandler struct {
// contains filtered or unexported fields
}
func NewApiHandler ¶
func NewApiHandler( db *pgsql.Db, log *zap.SugaredLogger, bs *bot.BotService, b mb.Broker, r *rdb.Rdb, ) *ApiHandler
func (*ApiHandler) AddComponent ¶
func (h *ApiHandler) AddComponent(ctx *fiber.Ctx) error
func (*ApiHandler) AddConnetion ¶
func (h *ApiHandler) AddConnetion(ctx *fiber.Ctx) error
func (*ApiHandler) DeleteBot ¶
func (h *ApiHandler) DeleteBot(ctx *fiber.Ctx) error
func (*ApiHandler) DeleteBotToken ¶
func (h *ApiHandler) DeleteBotToken(ctx *fiber.Ctx) error
func (*ApiHandler) DeleteComponent ¶
func (h *ApiHandler) DeleteComponent(ctx *fiber.Ctx) error
func (*ApiHandler) DeleteConnection ¶
func (h *ApiHandler) DeleteConnection(ctx *fiber.Ctx) error
func (*ApiHandler) GetBotComponents ¶
func (h *ApiHandler) GetBotComponents(ctx *fiber.Ctx) error
func (*ApiHandler) GetBotToken ¶
func (h *ApiHandler) GetBotToken(ctx *fiber.Ctx) error
func (*ApiHandler) GetBots ¶
func (h *ApiHandler) GetBots(ctx *fiber.Ctx) error
func (*ApiHandler) NewBot ¶
func (h *ApiHandler) NewBot(ctx *fiber.Ctx) error
func (*ApiHandler) SetBotToken ¶
func (h *ApiHandler) SetBotToken(ctx *fiber.Ctx) error
func (*ApiHandler) SetComponentPosition ¶
func (h *ApiHandler) SetComponentPosition(ctx *fiber.Ctx) error
func (*ApiHandler) StartBot ¶
func (h *ApiHandler) StartBot(ctx *fiber.Ctx) error
func (*ApiHandler) StopBot ¶
func (h *ApiHandler) StopBot(ctx *fiber.Ctx) error
func (*ApiHandler) UpdateComponentData ¶
func (h *ApiHandler) UpdateComponentData(ctx *fiber.Ctx) error
func (*ApiHandler) UpdateComponentPath ¶
func (h *ApiHandler) UpdateComponentPath(ctx *fiber.Ctx) error
Click to show internal directories.
Click to hide internal directories.