http

package
v0.0.0-...-fb92606 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {
	InitRoutes(engine *gin.Engine)
}

type Logger

type Logger interface {
	Error(err error)
	Info(msg string)
}

type Server

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

func NewServer

func NewServer(logger Logger, handler Handler) *Server

func (*Server) Serve

func (s *Server) Serve(ctx context.Context, g *errgroup.Group, address string)

Directories

Path Synopsis
Package mock_http is a generated GoMock package.
Package mock_http is a generated GoMock package.

Jump to

Keyboard shortcuts

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