Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CaptchaHandlers ¶
type CaptchaHandlers struct {
// contains filtered or unexported fields
}
func NewCaptchaHandlers ¶
func NewCaptchaHandlers(expiry time.Duration) *CaptchaHandlers
func (*CaptchaHandlers) Image ¶
func (h *CaptchaHandlers) Image(w http.ResponseWriter, r *http.Request)
func (*CaptchaHandlers) IsSolved ¶
func (h *CaptchaHandlers) IsSolved(w http.ResponseWriter, r *http.Request)
func (*CaptchaHandlers) New ¶
func (h *CaptchaHandlers) New(w http.ResponseWriter, r *http.Request)
func (*CaptchaHandlers) Solve ¶
func (h *CaptchaHandlers) Solve(w http.ResponseWriter, r *http.Request)
type HttpServer ¶
type HttpServer struct {
// contains filtered or unexported fields
}
func NewHttpServer ¶
func NewHttpServer() *HttpServer
func (*HttpServer) GET ¶
func (s *HttpServer) GET(path string, handler http.HandlerFunc)
func (*HttpServer) POST ¶
func (s *HttpServer) POST(path string, handler http.HandlerFunc)
func (*HttpServer) SetNotFoundHandler ¶
func (s *HttpServer) SetNotFoundHandler(handler http.HandlerFunc)
func (*HttpServer) Start ¶
func (s *HttpServer) Start(network, address string) error
func (*HttpServer) Stop ¶
func (s *HttpServer) Stop() error
Click to show internal directories.
Click to hide internal directories.