http

package
v0.0.0-...-4f254db Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: MIT Imports: 12 Imported by: 0

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 (*CaptchaHandlers) IsSolved

func (h *CaptchaHandlers) IsSolved(w http.ResponseWriter, r *http.Request)

func (*CaptchaHandlers) New

func (*CaptchaHandlers) Solve

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

Jump to

Keyboard shortcuts

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