http

package
v0.0.0-...-399f02e Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(errChan chan<- error)

Types

type HttpResponse

type HttpResponse struct {
	ErrCode int         `json:"err_code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data"`
}

func DefError

func DefError(code int, msg string) *HttpResponse

func DefSuccess

func DefSuccess(data interface{}) *HttpResponse

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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