router

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2020 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetListen

func GetListen(mode define.RunMode) (net.Listener, error)

GetListen get listen addr by server or client

func NewHTTPRouter

func NewHTTPRouter() *http.Server

NewHTTPRouter create http.Server

func Run

func Run(mode define.RunMode, lis net.Listener) error

Run start run http or grpc Server

Types

This section is empty.

Directories

Path Synopsis
api

Jump to

Keyboard shortcuts

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