server

package
v0.0.0-...-8e63756 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

func New

func New(addr string) *Server

func (*Server) Connect

func (s *Server) Connect(pattern string, h http.HandlerFunc)

func (*Server) Delete

func (s *Server) Delete(pattern string, h http.HandlerFunc)

func (*Server) Get

func (s *Server) Get(pattern string, h http.HandlerFunc)

func (*Server) Handle

func (s *Server) Handle(pattern string, h http.Handler)

func (*Server) HandleFunc

func (s *Server) HandleFunc(pattern string, h http.HandlerFunc)

func (*Server) Head

func (s *Server) Head(pattern string, h http.HandlerFunc)

func (*Server) Method

func (s *Server) Method(method, pattern string, h http.Handler)

func (*Server) MethodFunc

func (s *Server) MethodFunc(method, pattern string, h http.HandlerFunc)

func (*Server) Options

func (s *Server) Options(pattern string, h http.HandlerFunc)

func (*Server) Patch

func (s *Server) Patch(pattern string, h http.HandlerFunc)

func (*Server) Post

func (s *Server) Post(pattern string, h http.HandlerFunc)

func (*Server) Put

func (s *Server) Put(pattern string, h http.HandlerFunc)

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*Server) Shutdown

func (s *Server) Shutdown(ctx context.Context) error

func (*Server) Start

func (s *Server) Start() error

func (*Server) Trace

func (s *Server) Trace(pattern string, h http.HandlerFunc)

Jump to

Keyboard shortcuts

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