Documentation ¶
Index ¶
Constants ¶
View Source
const (
Version = "0.1.0"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RegexpHandler ¶
type RegexpHandler struct {
// contains filtered or unexported fields
}
RegexpHandler holds a set of routing pattern.
func (*RegexpHandler) HandleFunc ¶
func (rh *RegexpHandler) HandleFunc(pattern string, handler func(http.ResponseWriter, *http.Request))
func (*RegexpHandler) Handler ¶
func (rh *RegexpHandler) Handler(pattern string, handler http.Handler)
func (*RegexpHandler) ServeHTTP ¶
func (rh *RegexpHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type URLRequest ¶
type URLRequest struct {
URL string `json:"url"`
}
URLRequest is a struct to request URL shortening to the server.
Click to show internal directories.
Click to hide internal directories.