handler

package
v0.0.0-...-7ec0da2 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Link struct {
	// contains filtered or unexported fields
}
func NewLink(sql *sql.DB) Link

func (Link) Add

func (l Link) Add(c echo.Context) error

PUT /add to create a short link !secure

func (Link) Delete

func (l Link) Delete(c echo.Context) error

DELETE /:id a link !secure

func (Link) List

func (l Link) List(c echo.Context) error

GET /list list all link by an user !secure

func (Link) Redirect

func (l Link) Redirect(c echo.Context) error

GET /:api_point redirect to the URL

type User

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

func NewUser

func NewUser(sql *sql.DB, str string) User

func (User) Login

func (u User) Login(c echo.Context) error

Jump to

Keyboard shortcuts

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