http

package
v0.0.0-...-d9ad550 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// OK ok
	OK = 0
	// RequestErr request error
	RequestErr = -400
	// ServerErr server error
	ServerErr = -500
)

Variables

This section is empty.

Functions

func New

func New(c *conf.HTTPServer, l *logic.Server) *http.Server

New new a http server.

func Start

func Start(s *http.Server, errc chan error)

Types

type Ret

type Ret struct {
	Code int         `json:"code"`
	Data interface{} `json:"data,omitempty"`
}

Ret ret.

type Server

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

Server is http server.

Jump to

Keyboard shortcuts

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