server

package
v0.0.0-...-cb8f91d Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2020 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 HTTPServer

type HTTPServer struct {
	Ctx context.Context
	// contains filtered or unexported fields
}

func NewHTTPServer

func NewHTTPServer(cfg config.ServerConfig, logger *logger.Logger) *HTTPServer

func (*HTTPServer) AddRoutes

func (s *HTTPServer) AddRoutes(routes ...*Route)

func (*HTTPServer) Start

func (s *HTTPServer) Start()

func (*HTTPServer) Stop

func (s *HTTPServer) Stop() error

type Route

type Route struct {
	Method      string
	Path        string
	HandleFuncs []gin.HandlerFunc
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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