constant

package
v0.0.0-...-4d51556 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	REDIS_CONF_PATH  = "conf/redis.yml"
	CONSUL_CONF_PATH = "conf/consul.yml"
)
View Source
const (
	SERVICE_NAME = "paster_facade"
)

Variables

View Source
var (
	SUCCESS              = &ErrorStatus{StatusCode: 0, StatusMsg: "Success"}
	ERR_WRONG_PASSWORD   = &ErrorStatus{StatusCode: 2, StatusMsg: "Wrong Password"}
	ERR_RECORD_NOT_FOUND = &ErrorStatus{StatusCode: 4, StatusMsg: "Record Not Found"}
	ERR_SERVICE_INTERNAL = &ErrorStatus{StatusCode: 6, StatusMsg: "Internal Error"}
)
View Source
var (
	HTTP_SUCCESS                  = &ErrorStatus{StatusCode: 0, StatusMsg: ""}
	HTTP_ERR_WRONG_PASSWORD       = &ErrorStatus{StatusCode: 2, StatusMsg: "密码错误"}
	HTTP_ERR_RECORD_NOT_FOUND     = &ErrorStatus{StatusCode: 4, StatusMsg: "找不到这条文本"}
	HTTP_ERR_SERVICE_INTERNAL     = &ErrorStatus{StatusCode: 6, StatusMsg: "服务器打瞌睡了"}
	HTTP_ERR_FREQUENCY_OVER_LIMIT = &ErrorStatus{StatusCode: 8, StatusMsg: "操作太快了,请稍后再试"}
	HTTP_ERR_WRONG_PARAMS         = &ErrorStatus{StatusCode: 10, StatusMsg: "参数有误"}
)

Functions

This section is empty.

Types

type ErrorStatus

type ErrorStatus struct {
	StatusCode int32
	StatusMsg  string
}

Jump to

Keyboard shortcuts

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