http

package
v0.0.0-...-7e7c3a5 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 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 {
	Init(*gin.Engine)
}

type Logger

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

type Server

type Server struct {
	Engine *gin.Engine
	// 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, port 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