http

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRouter

func NewRouter(logger *zap.Logger) *chi.Mux

NewRouter returns *chi.Mux with base middlewares.

Types

type Server

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

Server implements a http server.

func NewServer

func NewServer(mux *chi.Mux, httpPort int, logger *zap.Logger) *Server

NewServer creates a new Server.

func (Server) Run

func (s Server) Run()

Run starts a http server.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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