sepweb

package
v0.0.0-...-b667aad Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpServer

type HttpServer struct {
	route.Router
	// contains filtered or unexported fields
}

func NewHttpServer

func NewHttpServer(opts ...ServerOption) *HttpServer

func (*HttpServer) Get

func (s *HttpServer) Get(path string, handle handler.Handle)

func (*HttpServer) Post

func (s *HttpServer) Post(path string, handle handler.Handle)

func (*HttpServer) ServeHTTP

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

func (*HttpServer) Start

func (s *HttpServer) Start(addr string) error

func (*HttpServer) Use

func (s *HttpServer) Use(mdls ...middleware.Middleware)

type Server

type Server interface {
	http.Handler
	Start(addr string) error
}

type ServerOption

type ServerOption func(server *HttpServer)

func ServerWithTemplateEngine

func ServerWithTemplateEngine(engine template.TemplateEngine) ServerOption

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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