server

package
v0.0.0-...-08ad29a Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRouter

func NewRouter(conf *config.Conf) domain.Router

func Serve

func Serve(c *config.Conf, r domain.Router) <-chan bool

Serve start the http server in background and return a closer func this server config.PORT in order to run

Types

type Router

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

func (*Router) Route

func (ro *Router) Route() http.Handler

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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