httpserver

package
v0.0.0-...-58581c8 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Addr string
}

func (*Config) Equal

func (c *Config) Equal(other any) bool

type In

type In struct {
	fx.In

	LC     fx.Lifecycle
	Logger *zap.Logger
	Config *Config
}

type Server

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

func New

func New(in In) (*Server, error)

func (*Server) RegisterHandler

func (s *Server) RegisterHandler(path string, handler http.Handler)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳