pcsweb

package
v3.5.3+incompatible Latest Latest
Warning

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

Go to latest
Published: May 29, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package pcsweb web前端包

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartServer

func StartServer(port uint) error

StartServer 开启web服务

Types

type ErrInfo

type ErrInfo struct {
	ErrroCode int    `json:"error_code"`
	ErrorMsg  string `json:"error_msg"`
}

ErrInfo web 错误详情

func (*ErrInfo) Error

func (ei *ErrInfo) Error() string

func (*ErrInfo) JSON

func (ei *ErrInfo) JSON() (data []byte)

JSON 将错误信息打包成 json

Jump to

Keyboard shortcuts

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