http

package
v0.0.0-...-fdb8233 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start()

func Stop

func Stop()

Types

type Handler

type Handler interface {
	Bind(router *chi.Mux)
}

type HelloHandler

type HelloHandler struct {
}

func (*HelloHandler) Bind

func (h *HelloHandler) Bind(router *chi.Mux)

type Middleware

type Middleware func(http.Handler) http.Handler

type Server

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

func NewServer

func NewServer() *Server

func (*Server) Add

func (s *Server) Add(handlers ...Handler) *Server

func (*Server) Start

func (s *Server) Start()

func (*Server) Stop

func (s *Server) Stop()

func (*Server) Use

func (s *Server) Use(middlewares ...Middleware) *Server

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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