Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ErrKindUnmarshalConfigErr ... ErrKindUnmarshalConfigErr = "unmarshal config err" // ErrKindRegisterErr ... ErrKindRegisterErr = "register err" // ErrKindUriErr ... ErrKindURIErr = "uri err" // ErrKindRequestErr ... ErrKindRequestErr = "request err" // ErrKindFlagErr ... ErrKindFlagErr = "flag err" // ErrKindListenErr ... ErrKindListenErr = "listen err" // ErrKindAny ... ErrKindAny = "any" )
ErrKindUnmarshalConfigErr 统一 Err Kind
View Source
const ( // MsgRegisterParseConfigErr1 ... MsgRegisterParseConfigErr1 = "register parse config err1" // MsgRegisterParseConfigErr2 ... MsgRegisterParseConfigErr2 = "register parse config err2" // MsgRegisterETCDErr ... MsgRegisterETCDErr = "register service err" // MsgRegisterETCDOk ... MsgRegisterETCDOk = "register service ok" // MsgDeleteParseProviderURIErr ... MsgDeleteParseProviderURIErr = "delete parse provider uri err" // MsgDeleteParseConfiguratorsUriErr ... MsgDeleteParseConfiguratorsURIErr = "delete parse configurators uri err" // MsgUpdateParseProviderUriErr ... MsgUpdateParseProviderURIErr = "update parse provider uri err" // MsgUpdateParseConfiguratorsUriErr ... MsgUpdateParseConfiguratorsURIErr = "update parse configurators uri err" // MsgUpdateParseConfigErr ... MsgUpdateParseConfigErr = "update parse config err" // MsgUpdateResolverOk ... MsgUpdateResolverOk = "update resolver ok" // MsgWatchRequestErr ... MsgWatchRequestErr = "watch request err" // MsgDeregisterETCDOk ... MsgDeregisterETCDOk = "deregister etcd service ok" // MsgDeregisterETCDErr ... MsgDeregisterETCDErr = "deregister etcd service err" // MsgRegistryResolverOk ... MsgRegistryResolverOk = "resolver build ok" // MsgRegistryResolverNow ... MsgRegistryResolverNow = "resolver now" // MsgRegistryResolverClose ... MsgRegistryResolverClose = "resolver close" // config msg MsgConfigParseFlagPanic = "parse flag panic" // MsgConfigLoadFromRemoteDataSourcePanic ... MsgConfigLoadFromRemoteDataSourcePanic = "load from remote datasource panic" // MsgConfigLoadFromRemoteDataSourceOK ... MsgConfigLoadFromRemoteDataSourceOK = "load from remote datasource ok" // MsgConfigLoadFromFilePanic ... MsgConfigLoadFromFilePanic = "load from file panic" // MsgConfigLoadFromFileOK ... MsgConfigLoadFromFileOK = "load from file ok" // app msg MsgAppStartServerOk = "server start" // MsgAppStartGovernorOk ... MsgAppStartGovernorOk = "governor start" // proc msg MsgProcSetPanic = "set max procs panic" // MsgProcSetOk ... MsgProcSetOk = "set max procs ok" // grpc server MsgGrpcServerNewErr = "new grpc server err" // MsgGrpcServerRecover ... MsgGrpcServerRecover = "grpc server recover" // client mysql MsgClientMysqlOpenStart = "client mysql start" // MsgClientMysqlOpenPanic ... MsgClientMysqlOpenPanic = "mysql open panic" // MsgClientMysqlPingPanic ... MsgClientMysqlPingPanic = "mysql ping panic" )
MsgRegisterParseConfigErr1 统一 Msg信息,模块内信息唯一
View Source
const ( // ModConfig ... ModConfig = "config" // ModApp ... ModApp = "app" // ModProc ... ModProc = "proc" // ModGrpcServer ... ModGrpcServer = "server.grpc" // ModRegistryETCD ... ModRegistryETCD = "registry.etcd" // ModClientETCD ... ModClientETCD = "client.etcd" // ModClientGrpc ... ModClientGrpc = "client.grpc" // ModClientMySQL ... ModClientMySQL = "client.mysql" // ModXcronETCD ... ModXcronETCD = "xcron.etcd" )
ModConfig 统一模块信息
View Source
const EcodeNum int32 = 9999
EcodeNum 低于10000均为系统错误码,业务错误码请使用10000以上
Variables ¶
View Source
var ( // OK ... OK = add(int(codes.OK), "OK") )
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.