Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CacheRedirect ¶
func CacheRedirect(h http.HandlerFunc, ttl time.Duration, db *bolt.DB) http.HandlerFunc
func Handle ¶
func Handle(routes []Route) http.HandlerFunc
Types ¶
type Shortener ¶
type Shortener struct {
// contains filtered or unexported fields
}
func (*Shortener) HandlePost ¶
func (s *Shortener) HandlePost(w http.ResponseWriter, r *http.Request)
func (*Shortener) HandleRedirect ¶
func (s *Shortener) HandleRedirect(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.