Documentation ¶
Index ¶
Constants ¶
View Source
const ( ErrorCode1 ErrorCode2 ErrorCode3 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommonResult ¶
CommonResult http接口通用返回结果
func Fail ¶
func Fail(errCode int, msg string) *CommonResult
func FailWithMsg ¶
func FailWithMsg(msg string) *CommonResult
func Suc ¶
func Suc() *CommonResult
func SucWithData ¶
func SucWithData(data interface{}, msg ...string) *CommonResult
func SucWithMsg ¶
func SucWithMsg(msg string) *CommonResult
type RedisAgentServer ¶
type RedisAgentServer struct {
// contains filtered or unexported fields
}
func NewRedisAgentServer ¶
func NewRedisAgentServer(addr string, cleaner *cleaner.SystemDataCleaner) *RedisAgentServer
func (*RedisAgentServer) ListenAndServe ¶
func (agentServer *RedisAgentServer) ListenAndServe() (<-chan error, error)
Click to show internal directories.
Click to hide internal directories.