handler

package
v0.0.0-...-cdf5a79 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(dm *db_manager.DbManager, sch *service.Scheduler) *Handler

func (*Handler) CreateURL

func (h *Handler) CreateURL(c echo.Context) error

func (*Handler) FetchAlerts

func (h *Handler) FetchAlerts(c echo.Context) error

func (*Handler) FetchURLs

func (h *Handler) FetchURLs(c echo.Context) error

func (*Handler) GetURLStats

func (h *Handler) GetURLStats(c echo.Context) error

func (*Handler) Login

func (h *Handler) Login(c echo.Context) error

func (*Handler) SignUp

func (h *Handler) SignUp(c echo.Context) error

func (*Handler) Start

func (h *Handler) Start(address string)

type UserResponse

type UserResponse struct {
	Username string `json:"username"`
	Token    string `json:"token"`
}

func NewUserResponse

func NewUserResponse(user *model.User) *UserResponse

Jump to

Keyboard shortcuts

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