handlers

package
v0.0.0-...-2a4de96 Latest Latest
Warning

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

Go to latest
Published: May 3, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Home

type Home struct {
}

func NewHome

func NewHome() *Home

func (*Home) Get

func (h *Home) Get(w http.ResponseWriter, r *http.Request)

type Redirect

type Redirect struct {
	Service shortner.Service
}

func NewRedirect

func NewRedirect(service shortner.Service) *Redirect

func (*Redirect) Get

func (rd *Redirect) Get(w http.ResponseWriter, r *http.Request)

type Shortner

type Shortner struct {
	Service shortner.Service
}

func NewShortner

func NewShortner(service shortner.Service) *Shortner

func (*Shortner) Post

func (s *Shortner) Post(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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