handlers

package
v0.0.0-...-d934cc3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUserIDConvertation = errors.New("userId convertation to int64")
)

Functions

func Health

func Health(ctx *fiber.Ctx) error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL