server

package
v0.0.0-...-d16b773 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 License: MIT, MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHTTPServer

func NewHTTPServer(logger *log.Helper) *gin.Engine

NewHTTPServer new a HTTP server.

Types

type Option

type Option func(srv *Server)

func Addr

func Addr(addr string) Option

type Server

type Server struct {
	*http.Server
	Addr string
}

func New

func New(opts ...Option) *Server

func (*Server) Start

func (s *Server) Start()

func (*Server) Stop

func (s *Server) Stop()

Jump to

Keyboard shortcuts

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