server

package
v0.0.0-...-f1b9d74 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoggerMiddleware

func LoggerMiddleware(log *zerolog.Logger) func(next http.Handler) http.Handler

func NewRouter

func NewRouter(log *zerolog.Logger) *chi.Mux

NewRouter конструктор роутера.

Types

type Server

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

func NewServer

func NewServer(router *chi.Mux, log *zerolog.Logger) *Server

NewServer конструктор.

func (*Server) Start

func (s *Server) Start(_ context.Context) error

Start реализует интерфейс fx.Hook.OnStart.

func (*Server) Stop

func (s *Server) Stop(ctx context.Context) error

Stop реализует интерфейс fx.Hook.OnStop.

Jump to

Keyboard shortcuts

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