Documentation ¶
Index ¶
- Variables
- func FromShort(id string) (redirect model.Redirect, err error)
- func FromURL(url string) (redirect model.Redirect, err error)
- func Handle(w http.ResponseWriter, r *http.Request)
- func Insert(url string) (redirect model.Redirect, err error)
- func InsertWithShort(redirect model.Redirect) (err error)
- func JSON(w http.ResponseWriter, r *http.Request)
- func New(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrIDTaken = fmt.Errorf("id already taken")
)
Functions ¶
func InsertWithShort ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.