shortener

package
v0.0.0-...-2475dad Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Shortener

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

func NewShortener

func NewShortener(db db.Database) *Shortener

func (*Shortener) Redirect

func (s *Shortener) Redirect(w http.ResponseWriter, req *http.Request)

func (*Shortener) Shorten

func (s *Shortener) Shorten(w http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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