Documentation ¶
Index ¶
- type Handler
- func (h *Handler) CreateRoutes(api fiber.Router)
- func (h *Handler) GetAlerts(ctx *fiber.Ctx) error
- func (h *Handler) GetAllEndpoints(ctx *fiber.Ctx) error
- func (h *Handler) GetEndpointStatus(ctx *fiber.Ctx) error
- func (h *Handler) Health(ctx *fiber.Ctx) error
- func (h *Handler) Login(ctx *fiber.Ctx) error
- func (h *Handler) Register(ctx *fiber.Ctx) error
- func (h *Handler) RegisterEndpoint(ctx *fiber.Ctx) error
- func (h *Handler) RemoveUserEndpoint(ctx *fiber.Ctx) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct { JWT *auth.Auth Repositories repositories.Repositories Threshold int Limit int }
func (*Handler) CreateRoutes ¶
func (h *Handler) CreateRoutes(api fiber.Router)
CreateRoutes will generate endpoints of application
func (*Handler) GetAllEndpoints ¶
GetAllEndpoints for a user.
func (*Handler) GetEndpointStatus ¶
GetEndpointStatus will return one endpoint status.
func (*Handler) RegisterEndpoint ¶
RegisterEndpoint will add an endpoint to application. takes a endpoint info request.
func (*Handler) RemoveUserEndpoint ¶
RemoveUserEndpoint will remove and endpoint.
Click to show internal directories.
Click to hide internal directories.