controler

package
v0.0.0-...-b1f8b11 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBclient

type DBclient struct {
	DB *sql.DB
}

func (*DBclient) DeleteShortURL

func (driver *DBclient) DeleteShortURL(w http.ResponseWriter, r *http.Request)

func (*DBclient) GenerateShortURL

func (driver *DBclient) GenerateShortURL(w http.ResponseWriter, r *http.Request)

func (*DBclient) GetOriginalURL

func (driver *DBclient) GetOriginalURL(w http.ResponseWriter, r *http.Request)

type Record

type Record struct {
	ID  int    `json:"id"`
	URL string `json:"url"`
}

Jump to

Keyboard shortcuts

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