httpserver

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMux

func NewMux(svc service.Service) http.Handler

Types

type HttpServer

type HttpServer struct {
	*http.Server
}

func NewHttpServer

func NewHttpServer(mux http.Handler) *HttpServer

func (*HttpServer) Run

func (hs *HttpServer) Run(ctx context.Context, port int, logger log.Logger) error

Directories

Path Synopsis
handler
api

Jump to

Keyboard shortcuts

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