Documentation ¶
Index ¶
- Variables
- type App
- func (*App) Descriptor() ([]byte, []int)deprecated
- func (x *App) GetConfigMethod() string
- func (x *App) GetConfigPathForGeneral() string
- func (x *App) GetConfigPathForServer() string
- func (x *App) GetExternalDomains() []string
- func (x *App) GetId() string
- func (x *App) GetInternalDomains() []string
- func (x *App) GetMetadata() map[string]string
- func (x *App) GetProjectName() string
- func (x *App) GetRegistryEndpoints() []string
- func (x *App) GetServerEnv() string
- func (x *App) GetServerName() string
- func (x *App) GetServerVersion() string
- func (*App) ProtoMessage()
- func (x *App) ProtoReflect() protoreflect.Message
- func (x *App) Reset()
- func (x *App) String() string
- func (m *App) Validate() error
- func (m *App) ValidateAll() error
- type AppMultiError
- type AppValidationError
- type Bootstrap
- func (*Bootstrap) Descriptor() ([]byte, []int)deprecated
- func (x *Bootstrap) GetApp() *App
- func (x *Bootstrap) GetClusterServiceApi() []*ClusterServiceApi
- func (x *Bootstrap) GetConsul() *Consul
- func (x *Bootstrap) GetEncrypt() *Encrypt
- func (x *Bootstrap) GetEtcd() *Etcd
- func (x *Bootstrap) GetJaeger() *Jaeger
- func (x *Bootstrap) GetLog() *Log
- func (x *Bootstrap) GetMongo() *Mongo
- func (x *Bootstrap) GetMysql() *MySQL
- func (x *Bootstrap) GetPsql() *PSQL
- func (x *Bootstrap) GetRabbitmq() *Rabbitmq
- func (x *Bootstrap) GetRedis() *Redis
- func (x *Bootstrap) GetServer() *Server
- func (x *Bootstrap) GetSetting() *Setting
- func (x *Bootstrap) GetSnowflake() *Snowflake
- func (x *Bootstrap) GetThirdPartyApi() []*ThirdPartyApi
- func (*Bootstrap) ProtoMessage()
- func (x *Bootstrap) ProtoReflect() protoreflect.Message
- func (x *Bootstrap) Reset()
- func (x *Bootstrap) String() string
- func (m *Bootstrap) Validate() error
- func (m *Bootstrap) ValidateAll() error
- type BootstrapMultiError
- type BootstrapValidationError
- type ClusterServiceApi
- func (*ClusterServiceApi) Descriptor() ([]byte, []int)deprecated
- func (x *ClusterServiceApi) GetRegistryType() string
- func (x *ClusterServiceApi) GetServiceName() string
- func (x *ClusterServiceApi) GetServiceTarget() string
- func (x *ClusterServiceApi) GetTransportType() string
- func (*ClusterServiceApi) ProtoMessage()
- func (x *ClusterServiceApi) ProtoReflect() protoreflect.Message
- func (x *ClusterServiceApi) Reset()
- func (x *ClusterServiceApi) String() string
- func (m *ClusterServiceApi) Validate() error
- func (m *ClusterServiceApi) ValidateAll() error
- type ClusterServiceApiMultiError
- type ClusterServiceApiValidationError
- func (e ClusterServiceApiValidationError) Cause() error
- func (e ClusterServiceApiValidationError) Error() string
- func (e ClusterServiceApiValidationError) ErrorName() string
- func (e ClusterServiceApiValidationError) Field() string
- func (e ClusterServiceApiValidationError) Key() bool
- func (e ClusterServiceApiValidationError) Reason() string
- type Consul
- func (*Consul) Descriptor() ([]byte, []int)deprecated
- func (x *Consul) GetAddress() string
- func (x *Consul) GetAuthPassword() string
- func (x *Consul) GetAuthUsername() string
- func (x *Consul) GetDatacenter() string
- func (x *Consul) GetEnable() bool
- func (x *Consul) GetInsecureSkipVerify() bool
- func (x *Consul) GetNamespace() string
- func (x *Consul) GetPartition() string
- func (x *Consul) GetPathPrefix() string
- func (x *Consul) GetScheme() string
- func (x *Consul) GetTlsAddress() string
- func (x *Consul) GetTlsCaPem() string
- func (x *Consul) GetTlsCertPem() string
- func (x *Consul) GetTlsKeyPem() string
- func (x *Consul) GetToken() string
- func (x *Consul) GetWaitTime() *durationpb.Duration
- func (x *Consul) GetWithHttpBasicAuth() bool
- func (*Consul) ProtoMessage()
- func (x *Consul) ProtoReflect() protoreflect.Message
- func (x *Consul) Reset()
- func (x *Consul) String() string
- func (m *Consul) Validate() error
- func (m *Consul) ValidateAll() error
- type ConsulMultiError
- type ConsulValidationError
- type Encrypt
- func (*Encrypt) Descriptor() ([]byte, []int)deprecated
- func (x *Encrypt) GetServiceEncrypt() *Encrypt_ServiceEncrypt
- func (x *Encrypt) GetTokenEncrypt() *Encrypt_TokenEncrypt
- func (x *Encrypt) GetTransferEncrypt() *Encrypt_TransferEncrypt
- func (*Encrypt) ProtoMessage()
- func (x *Encrypt) ProtoReflect() protoreflect.Message
- func (x *Encrypt) Reset()
- func (x *Encrypt) String() string
- func (m *Encrypt) Validate() error
- func (m *Encrypt) ValidateAll() error
- type EncryptMultiError
- type EncryptValidationError
- type Encrypt_ServiceEncrypt
- func (*Encrypt_ServiceEncrypt) Descriptor() ([]byte, []int)deprecated
- func (x *Encrypt_ServiceEncrypt) GetPrivateKey() string
- func (x *Encrypt_ServiceEncrypt) GetPublicKey() string
- func (*Encrypt_ServiceEncrypt) ProtoMessage()
- func (x *Encrypt_ServiceEncrypt) ProtoReflect() protoreflect.Message
- func (x *Encrypt_ServiceEncrypt) Reset()
- func (x *Encrypt_ServiceEncrypt) String() string
- func (m *Encrypt_ServiceEncrypt) Validate() error
- func (m *Encrypt_ServiceEncrypt) ValidateAll() error
- type Encrypt_ServiceEncryptMultiError
- type Encrypt_ServiceEncryptValidationError
- func (e Encrypt_ServiceEncryptValidationError) Cause() error
- func (e Encrypt_ServiceEncryptValidationError) Error() string
- func (e Encrypt_ServiceEncryptValidationError) ErrorName() string
- func (e Encrypt_ServiceEncryptValidationError) Field() string
- func (e Encrypt_ServiceEncryptValidationError) Key() bool
- func (e Encrypt_ServiceEncryptValidationError) Reason() string
- type Encrypt_TokenEncrypt
- func (*Encrypt_TokenEncrypt) Descriptor() ([]byte, []int)deprecated
- func (x *Encrypt_TokenEncrypt) GetRefreshKey() string
- func (x *Encrypt_TokenEncrypt) GetSignKey() string
- func (*Encrypt_TokenEncrypt) ProtoMessage()
- func (x *Encrypt_TokenEncrypt) ProtoReflect() protoreflect.Message
- func (x *Encrypt_TokenEncrypt) Reset()
- func (x *Encrypt_TokenEncrypt) String() string
- func (m *Encrypt_TokenEncrypt) Validate() error
- func (m *Encrypt_TokenEncrypt) ValidateAll() error
- type Encrypt_TokenEncryptMultiError
- type Encrypt_TokenEncryptValidationError
- func (e Encrypt_TokenEncryptValidationError) Cause() error
- func (e Encrypt_TokenEncryptValidationError) Error() string
- func (e Encrypt_TokenEncryptValidationError) ErrorName() string
- func (e Encrypt_TokenEncryptValidationError) Field() string
- func (e Encrypt_TokenEncryptValidationError) Key() bool
- func (e Encrypt_TokenEncryptValidationError) Reason() string
- type Encrypt_TransferEncrypt
- func (*Encrypt_TransferEncrypt) Descriptor() ([]byte, []int)deprecated
- func (x *Encrypt_TransferEncrypt) GetPrivateKey() string
- func (x *Encrypt_TransferEncrypt) GetPublicKey() string
- func (*Encrypt_TransferEncrypt) ProtoMessage()
- func (x *Encrypt_TransferEncrypt) ProtoReflect() protoreflect.Message
- func (x *Encrypt_TransferEncrypt) Reset()
- func (x *Encrypt_TransferEncrypt) String() string
- func (m *Encrypt_TransferEncrypt) Validate() error
- func (m *Encrypt_TransferEncrypt) ValidateAll() error
- type Encrypt_TransferEncryptMultiError
- type Encrypt_TransferEncryptValidationError
- func (e Encrypt_TransferEncryptValidationError) Cause() error
- func (e Encrypt_TransferEncryptValidationError) Error() string
- func (e Encrypt_TransferEncryptValidationError) ErrorName() string
- func (e Encrypt_TransferEncryptValidationError) Field() string
- func (e Encrypt_TransferEncryptValidationError) Key() bool
- func (e Encrypt_TransferEncryptValidationError) Reason() string
- type Etcd
- func (*Etcd) Descriptor() ([]byte, []int)deprecated
- func (x *Etcd) GetCaCert() []byte
- func (x *Etcd) GetDialTimeout() *durationpb.Duration
- func (x *Etcd) GetEndpoints() []string
- func (x *Etcd) GetInsecureSkipVerify() bool
- func (x *Etcd) GetPassword() string
- func (x *Etcd) GetUsername() string
- func (*Etcd) ProtoMessage()
- func (x *Etcd) ProtoReflect() protoreflect.Message
- func (x *Etcd) Reset()
- func (x *Etcd) String() string
- func (m *Etcd) Validate() error
- func (m *Etcd) ValidateAll() error
- type EtcdMultiError
- type EtcdValidationError
- type Jaeger
- func (*Jaeger) Descriptor() ([]byte, []int)deprecated
- func (x *Jaeger) GetAddr() string
- func (x *Jaeger) GetEnable() bool
- func (x *Jaeger) GetIsInsecure() bool
- func (x *Jaeger) GetKind() string
- func (x *Jaeger) GetTimeout() *durationpb.Duration
- func (*Jaeger) ProtoMessage()
- func (x *Jaeger) ProtoReflect() protoreflect.Message
- func (x *Jaeger) Reset()
- func (x *Jaeger) String() string
- func (m *Jaeger) Validate() error
- func (m *Jaeger) ValidateAll() error
- type JaegerMultiError
- type JaegerValidationError
- type Log
- func (*Log) Descriptor() ([]byte, []int)deprecated
- func (x *Log) GetConsole() *Log_Console
- func (x *Log) GetFile() *Log_File
- func (*Log) ProtoMessage()
- func (x *Log) ProtoReflect() protoreflect.Message
- func (x *Log) Reset()
- func (x *Log) String() string
- func (m *Log) Validate() error
- func (m *Log) ValidateAll() error
- type LogMultiError
- type LogValidationError
- type Log_Console
- func (*Log_Console) Descriptor() ([]byte, []int)deprecated
- func (x *Log_Console) GetEnable() bool
- func (x *Log_Console) GetLevel() string
- func (*Log_Console) ProtoMessage()
- func (x *Log_Console) ProtoReflect() protoreflect.Message
- func (x *Log_Console) Reset()
- func (x *Log_Console) String() string
- func (m *Log_Console) Validate() error
- func (m *Log_Console) ValidateAll() error
- type Log_ConsoleMultiError
- type Log_ConsoleValidationError
- func (e Log_ConsoleValidationError) Cause() error
- func (e Log_ConsoleValidationError) Error() string
- func (e Log_ConsoleValidationError) ErrorName() string
- func (e Log_ConsoleValidationError) Field() string
- func (e Log_ConsoleValidationError) Key() bool
- func (e Log_ConsoleValidationError) Reason() string
- type Log_File
- func (*Log_File) Descriptor() ([]byte, []int)deprecated
- func (x *Log_File) GetDir() string
- func (x *Log_File) GetEnable() bool
- func (x *Log_File) GetFilename() string
- func (x *Log_File) GetLevel() string
- func (x *Log_File) GetRotateSize() int64
- func (x *Log_File) GetRotateTime() *durationpb.Duration
- func (x *Log_File) GetStorageAge() *durationpb.Duration
- func (x *Log_File) GetStorageCounter() uint32
- func (*Log_File) ProtoMessage()
- func (x *Log_File) ProtoReflect() protoreflect.Message
- func (x *Log_File) Reset()
- func (x *Log_File) String() string
- func (m *Log_File) Validate() error
- func (m *Log_File) ValidateAll() error
- type Log_FileMultiError
- type Log_FileValidationError
- type Mongo
- func (*Mongo) Descriptor() ([]byte, []int)deprecated
- func (x *Mongo) GetAddr() string
- func (x *Mongo) GetAppName() string
- func (x *Mongo) GetConnectTimeout() *durationpb.Duration
- func (x *Mongo) GetDatabase() string
- func (x *Mongo) GetDebug() bool
- func (x *Mongo) GetEnable() bool
- func (x *Mongo) GetHeartbeatInterval() *durationpb.Duration
- func (x *Mongo) GetHosts() []string
- func (x *Mongo) GetMaxConnIdleTime() *durationpb.Duration
- func (x *Mongo) GetMaxConnecting() uint32
- func (x *Mongo) GetMaxPoolSize() uint32
- func (x *Mongo) GetMinPoolSize() uint32
- func (x *Mongo) GetSlowThreshold() *durationpb.Duration
- func (x *Mongo) GetTimeout() *durationpb.Duration
- func (*Mongo) ProtoMessage()
- func (x *Mongo) ProtoReflect() protoreflect.Message
- func (x *Mongo) Reset()
- func (x *Mongo) String() string
- func (m *Mongo) Validate() error
- func (m *Mongo) ValidateAll() error
- type MongoMultiError
- type MongoValidationError
- type MySQL
- func (*MySQL) Descriptor() ([]byte, []int)deprecated
- func (x *MySQL) GetConnMaxActive() uint32
- func (x *MySQL) GetConnMaxIdle() uint32
- func (x *MySQL) GetConnMaxIdleTime() *durationpb.Duration
- func (x *MySQL) GetConnMaxLifetime() *durationpb.Duration
- func (x *MySQL) GetDsn() string
- func (x *MySQL) GetEnable() bool
- func (x *MySQL) GetLoggerColorful() bool
- func (x *MySQL) GetLoggerEnable() bool
- func (x *MySQL) GetLoggerLevel() string
- func (x *MySQL) GetSlowThreshold() *durationpb.Duration
- func (*MySQL) ProtoMessage()
- func (x *MySQL) ProtoReflect() protoreflect.Message
- func (x *MySQL) Reset()
- func (x *MySQL) String() string
- func (m *MySQL) Validate() error
- func (m *MySQL) ValidateAll() error
- type MySQLMultiError
- type MySQLValidationError
- type PSQL
- func (*PSQL) Descriptor() ([]byte, []int)deprecated
- func (x *PSQL) GetConnMaxActive() uint32
- func (x *PSQL) GetConnMaxIdle() uint32
- func (x *PSQL) GetConnMaxIdleTime() *durationpb.Duration
- func (x *PSQL) GetConnMaxLifetime() *durationpb.Duration
- func (x *PSQL) GetDsn() string
- func (x *PSQL) GetEnable() bool
- func (x *PSQL) GetLoggerColorful() bool
- func (x *PSQL) GetLoggerEnable() bool
- func (x *PSQL) GetLoggerLevel() string
- func (x *PSQL) GetSlowThreshold() *durationpb.Duration
- func (*PSQL) ProtoMessage()
- func (x *PSQL) ProtoReflect() protoreflect.Message
- func (x *PSQL) Reset()
- func (x *PSQL) String() string
- func (m *PSQL) Validate() error
- func (m *PSQL) ValidateAll() error
- type PSQLMultiError
- type PSQLValidationError
- type Rabbitmq
- func (*Rabbitmq) Descriptor() ([]byte, []int)deprecated
- func (x *Rabbitmq) GetEnable() bool
- func (x *Rabbitmq) GetTlsAddress() string
- func (x *Rabbitmq) GetTlsCaPem() string
- func (x *Rabbitmq) GetTlsCertPem() string
- func (x *Rabbitmq) GetTlsKeyPem() string
- func (x *Rabbitmq) GetUrl() string
- func (*Rabbitmq) ProtoMessage()
- func (x *Rabbitmq) ProtoReflect() protoreflect.Message
- func (x *Rabbitmq) Reset()
- func (x *Rabbitmq) String() string
- func (m *Rabbitmq) Validate() error
- func (m *Rabbitmq) ValidateAll() error
- type RabbitmqMultiError
- type RabbitmqValidationError
- type Redis
- func (*Redis) Descriptor() ([]byte, []int)deprecated
- func (x *Redis) GetAddresses() []string
- func (x *Redis) GetConnMaxActive() uint32
- func (x *Redis) GetConnMaxIdle() uint32
- func (x *Redis) GetConnMaxIdleTime() *durationpb.Duration
- func (x *Redis) GetConnMaxLifetime() *durationpb.Duration
- func (x *Redis) GetConnMinIdle() uint32
- func (x *Redis) GetDb() uint32
- func (x *Redis) GetDialTimeout() *durationpb.Duration
- func (x *Redis) GetEnable() bool
- func (x *Redis) GetPassword() string
- func (x *Redis) GetReadTimeout() *durationpb.Duration
- func (x *Redis) GetUsername() string
- func (x *Redis) GetWriteTimeout() *durationpb.Duration
- func (*Redis) ProtoMessage()
- func (x *Redis) ProtoReflect() protoreflect.Message
- func (x *Redis) Reset()
- func (x *Redis) String() string
- func (m *Redis) Validate() error
- func (m *Redis) ValidateAll() error
- type RedisMultiError
- type RedisValidationError
- type RegistryTypeEnum
- func (*RegistryTypeEnum) Descriptor() ([]byte, []int)deprecated
- func (*RegistryTypeEnum) ProtoMessage()
- func (x *RegistryTypeEnum) ProtoReflect() protoreflect.Message
- func (x *RegistryTypeEnum) Reset()
- func (x *RegistryTypeEnum) String() string
- func (m *RegistryTypeEnum) Validate() error
- func (m *RegistryTypeEnum) ValidateAll() error
- type RegistryTypeEnumMultiError
- type RegistryTypeEnumValidationError
- func (e RegistryTypeEnumValidationError) Cause() error
- func (e RegistryTypeEnumValidationError) Error() string
- func (e RegistryTypeEnumValidationError) ErrorName() string
- func (e RegistryTypeEnumValidationError) Field() string
- func (e RegistryTypeEnumValidationError) Key() bool
- func (e RegistryTypeEnumValidationError) Reason() string
- type RegistryTypeEnum_RegistryType
- func (RegistryTypeEnum_RegistryType) Descriptor() protoreflect.EnumDescriptor
- func (x RegistryTypeEnum_RegistryType) Enum() *RegistryTypeEnum_RegistryType
- func (RegistryTypeEnum_RegistryType) EnumDescriptor() ([]byte, []int)deprecated
- func (x RegistryTypeEnum_RegistryType) Number() protoreflect.EnumNumber
- func (x RegistryTypeEnum_RegistryType) String() string
- func (RegistryTypeEnum_RegistryType) Type() protoreflect.EnumType
- type Server
- func (*Server) Descriptor() ([]byte, []int)deprecated
- func (x *Server) GetGrpc() *Server_GRPC
- func (x *Server) GetHttp() *Server_HTTP
- func (*Server) ProtoMessage()
- func (x *Server) ProtoReflect() protoreflect.Message
- func (x *Server) Reset()
- func (x *Server) String() string
- func (m *Server) Validate() error
- func (m *Server) ValidateAll() error
- type ServerMultiError
- type ServerValidationError
- type Server_GRPC
- func (*Server_GRPC) Descriptor() ([]byte, []int)deprecated
- func (x *Server_GRPC) GetAddr() string
- func (x *Server_GRPC) GetEnable() bool
- func (x *Server_GRPC) GetNetwork() string
- func (x *Server_GRPC) GetTimeout() *durationpb.Duration
- func (*Server_GRPC) ProtoMessage()
- func (x *Server_GRPC) ProtoReflect() protoreflect.Message
- func (x *Server_GRPC) Reset()
- func (x *Server_GRPC) String() string
- func (m *Server_GRPC) Validate() error
- func (m *Server_GRPC) ValidateAll() error
- type Server_GRPCMultiError
- type Server_GRPCValidationError
- func (e Server_GRPCValidationError) Cause() error
- func (e Server_GRPCValidationError) Error() string
- func (e Server_GRPCValidationError) ErrorName() string
- func (e Server_GRPCValidationError) Field() string
- func (e Server_GRPCValidationError) Key() bool
- func (e Server_GRPCValidationError) Reason() string
- type Server_HTTP
- func (*Server_HTTP) Descriptor() ([]byte, []int)deprecated
- func (x *Server_HTTP) GetAddr() string
- func (x *Server_HTTP) GetEnable() bool
- func (x *Server_HTTP) GetNetwork() string
- func (x *Server_HTTP) GetTimeout() *durationpb.Duration
- func (*Server_HTTP) ProtoMessage()
- func (x *Server_HTTP) ProtoReflect() protoreflect.Message
- func (x *Server_HTTP) Reset()
- func (x *Server_HTTP) String() string
- func (m *Server_HTTP) Validate() error
- func (m *Server_HTTP) ValidateAll() error
- type Server_HTTPMultiError
- type Server_HTTPValidationError
- func (e Server_HTTPValidationError) Cause() error
- func (e Server_HTTPValidationError) Error() string
- func (e Server_HTTPValidationError) ErrorName() string
- func (e Server_HTTPValidationError) Field() string
- func (e Server_HTTPValidationError) Key() bool
- func (e Server_HTTPValidationError) Reason() string
- type Setting
- func (*Setting) Descriptor() ([]byte, []int)deprecated
- func (x *Setting) GetCaptcha() *Setting_Captcha
- func (x *Setting) GetEnableAuthMiddleware() bool
- func (x *Setting) GetEnableConsulRegistry() bool
- func (x *Setting) GetEnableJaegerTracer() bool
- func (x *Setting) GetEnableMigrateDb() bool
- func (x *Setting) GetEnableScheduleTask() bool
- func (x *Setting) GetEnableSnowflakeWorker() bool
- func (x *Setting) GetLogin() *Setting_Login
- func (*Setting) ProtoMessage()
- func (x *Setting) ProtoReflect() protoreflect.Message
- func (x *Setting) Reset()
- func (x *Setting) String() string
- func (m *Setting) Validate() error
- func (m *Setting) ValidateAll() error
- type SettingMultiError
- type SettingValidationError
- type Setting_Captcha
- func (*Setting_Captcha) Descriptor() ([]byte, []int)deprecated
- func (x *Setting_Captcha) GetCaptchaLen() uint32
- func (x *Setting_Captcha) GetCaptchaTtl() *durationpb.Duration
- func (*Setting_Captcha) ProtoMessage()
- func (x *Setting_Captcha) ProtoReflect() protoreflect.Message
- func (x *Setting_Captcha) Reset()
- func (x *Setting_Captcha) String() string
- func (m *Setting_Captcha) Validate() error
- func (m *Setting_Captcha) ValidateAll() error
- type Setting_CaptchaMultiError
- type Setting_CaptchaValidationError
- func (e Setting_CaptchaValidationError) Cause() error
- func (e Setting_CaptchaValidationError) Error() string
- func (e Setting_CaptchaValidationError) ErrorName() string
- func (e Setting_CaptchaValidationError) Field() string
- func (e Setting_CaptchaValidationError) Key() bool
- func (e Setting_CaptchaValidationError) Reason() string
- type Setting_Login
- func (*Setting_Login) Descriptor() ([]byte, []int)deprecated
- func (x *Setting_Login) GetPasswordErrDailyLimitTimes() uint32
- func (x *Setting_Login) GetPasswordErrLockDuration() *durationpb.Duration
- func (x *Setting_Login) GetPasswordErrSerialDuration() *durationpb.Duration
- func (x *Setting_Login) GetPasswordErrSerialTimes() uint32
- func (*Setting_Login) ProtoMessage()
- func (x *Setting_Login) ProtoReflect() protoreflect.Message
- func (x *Setting_Login) Reset()
- func (x *Setting_Login) String() string
- func (m *Setting_Login) Validate() error
- func (m *Setting_Login) ValidateAll() error
- type Setting_LoginMultiError
- type Setting_LoginValidationError
- func (e Setting_LoginValidationError) Cause() error
- func (e Setting_LoginValidationError) Error() string
- func (e Setting_LoginValidationError) ErrorName() string
- func (e Setting_LoginValidationError) Field() string
- func (e Setting_LoginValidationError) Key() bool
- func (e Setting_LoginValidationError) Reason() string
- type Snowflake
- func (*Snowflake) Descriptor() ([]byte, []int)deprecated
- func (x *Snowflake) GetEnable() bool
- func (x *Snowflake) GetEndpoint() string
- func (x *Snowflake) GetPassword() string
- func (x *Snowflake) GetUsername() string
- func (x *Snowflake) GetWithDiscovery() bool
- func (x *Snowflake) GetWithHttpBasicAuth() bool
- func (*Snowflake) ProtoMessage()
- func (x *Snowflake) ProtoReflect() protoreflect.Message
- func (x *Snowflake) Reset()
- func (x *Snowflake) String() string
- func (m *Snowflake) Validate() error
- func (m *Snowflake) ValidateAll() error
- type SnowflakeMultiError
- type SnowflakeValidationError
- type TestingConfig
- func (*TestingConfig) Descriptor() ([]byte, []int)deprecated
- func (x *TestingConfig) GetTestdata() *TestingConfig_Testdata
- func (*TestingConfig) ProtoMessage()
- func (x *TestingConfig) ProtoReflect() protoreflect.Message
- func (x *TestingConfig) Reset()
- func (x *TestingConfig) String() string
- func (m *TestingConfig) Validate() error
- func (m *TestingConfig) ValidateAll() error
- type TestingConfigMultiError
- type TestingConfigValidationError
- func (e TestingConfigValidationError) Cause() error
- func (e TestingConfigValidationError) Error() string
- func (e TestingConfigValidationError) ErrorName() string
- func (e TestingConfigValidationError) Field() string
- func (e TestingConfigValidationError) Key() bool
- func (e TestingConfigValidationError) Reason() string
- type TestingConfig_Testdata
- func (*TestingConfig_Testdata) Descriptor() ([]byte, []int)deprecated
- func (x *TestingConfig_Testdata) GetKey() string
- func (x *TestingConfig_Testdata) GetValue() string
- func (*TestingConfig_Testdata) ProtoMessage()
- func (x *TestingConfig_Testdata) ProtoReflect() protoreflect.Message
- func (x *TestingConfig_Testdata) Reset()
- func (x *TestingConfig_Testdata) String() string
- func (m *TestingConfig_Testdata) Validate() error
- func (m *TestingConfig_Testdata) ValidateAll() error
- type TestingConfig_TestdataMultiError
- type TestingConfig_TestdataValidationError
- func (e TestingConfig_TestdataValidationError) Cause() error
- func (e TestingConfig_TestdataValidationError) Error() string
- func (e TestingConfig_TestdataValidationError) ErrorName() string
- func (e TestingConfig_TestdataValidationError) Field() string
- func (e TestingConfig_TestdataValidationError) Key() bool
- func (e TestingConfig_TestdataValidationError) Reason() string
- type ThirdPartyApi
- func (*ThirdPartyApi) Descriptor() ([]byte, []int)deprecated
- func (x *ThirdPartyApi) GetAccessId() string
- func (x *ThirdPartyApi) GetAccessSecret() string
- func (x *ThirdPartyApi) GetEncryptId() string
- func (x *ThirdPartyApi) GetEncryptSecret() string
- func (x *ThirdPartyApi) GetGrpcHost() string
- func (x *ThirdPartyApi) GetHttpHost() string
- func (x *ThirdPartyApi) GetIsDebug() bool
- func (x *ThirdPartyApi) GetName() string
- func (*ThirdPartyApi) ProtoMessage()
- func (x *ThirdPartyApi) ProtoReflect() protoreflect.Message
- func (x *ThirdPartyApi) Reset()
- func (x *ThirdPartyApi) String() string
- func (m *ThirdPartyApi) Validate() error
- func (m *ThirdPartyApi) ValidateAll() error
- type ThirdPartyApiMultiError
- type ThirdPartyApiValidationError
- func (e ThirdPartyApiValidationError) Cause() error
- func (e ThirdPartyApiValidationError) Error() string
- func (e ThirdPartyApiValidationError) ErrorName() string
- func (e ThirdPartyApiValidationError) Field() string
- func (e ThirdPartyApiValidationError) Key() bool
- func (e ThirdPartyApiValidationError) Reason() string
- type TransportTypeEnum
- func (*TransportTypeEnum) Descriptor() ([]byte, []int)deprecated
- func (*TransportTypeEnum) ProtoMessage()
- func (x *TransportTypeEnum) ProtoReflect() protoreflect.Message
- func (x *TransportTypeEnum) Reset()
- func (x *TransportTypeEnum) String() string
- func (m *TransportTypeEnum) Validate() error
- func (m *TransportTypeEnum) ValidateAll() error
- type TransportTypeEnumMultiError
- type TransportTypeEnumValidationError
- func (e TransportTypeEnumValidationError) Cause() error
- func (e TransportTypeEnumValidationError) Error() string
- func (e TransportTypeEnumValidationError) ErrorName() string
- func (e TransportTypeEnumValidationError) Field() string
- func (e TransportTypeEnumValidationError) Key() bool
- func (e TransportTypeEnumValidationError) Reason() string
- type TransportTypeEnum_TransportType
- func (TransportTypeEnum_TransportType) Descriptor() protoreflect.EnumDescriptor
- func (x TransportTypeEnum_TransportType) Enum() *TransportTypeEnum_TransportType
- func (TransportTypeEnum_TransportType) EnumDescriptor() ([]byte, []int)deprecated
- func (x TransportTypeEnum_TransportType) Number() protoreflect.EnumNumber
- func (x TransportTypeEnum_TransportType) String() string
- func (TransportTypeEnum_TransportType) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
var ( TransportTypeEnum_TransportType_name = map[int32]string{ 0: "UNSPECIFIED", 1: "HTTP", 2: "GRPC", } TransportTypeEnum_TransportType_value = map[string]int32{ "UNSPECIFIED": 0, "HTTP": 1, "GRPC": 2, } )
Enum value maps for TransportTypeEnum_TransportType.
var ( RegistryTypeEnum_RegistryType_name = map[int32]string{ 0: "UNSPECIFIED", 1: "ENDPOINT", 2: "CONSUL", 3: "ETCD", } RegistryTypeEnum_RegistryType_value = map[string]int32{ "UNSPECIFIED": 0, "ENDPOINT": 1, "CONSUL": 2, "ETCD": 3, } )
Enum value maps for RegistryTypeEnum_RegistryType.
var File_api_config_config_proto protoreflect.FileDescriptor
var File_api_config_config_testdata_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct { ProjectName string `protobuf:"bytes,1,opt,name=project_name,json=projectName,proto3" json:"project_name,omitempty"` // ServerName string `protobuf:"bytes,2,opt,name=server_name,json=serverName,proto3" json:"server_name,omitempty"` // ServerEnv string `protobuf:"bytes,3,opt,name=server_env,json=serverEnv,proto3" json:"server_env,omitempty"` // 开发环境;值:DEVELOP、TESTING、PREVIEW、PRODUCTION ServerVersion string `protobuf:"bytes,4,opt,name=server_version,json=serverVersion,proto3" json:"server_version,omitempty"` // Id string `protobuf:"bytes,5,opt,name=id,proto3" json:"id,omitempty"` // 服务注册名称 ConfigMethod string `protobuf:"bytes,40,opt,name=config_method,json=configMethod,proto3" json:"config_method,omitempty"` // 配置方式;值:LOCAL、CONSUL ConfigPathForGeneral string `` // 配置中心:基本配置路径 /* 126-byte string literal not displayed */ ConfigPathForServer string `protobuf:"bytes,42,opt,name=config_path_for_server,json=configPathForServer,proto3" json:"config_path_for_server,omitempty"` // 配置中心:本服务的配置路径 RegistryEndpoints []string `protobuf:"bytes,60,rep,name=registry_endpoints,json=registryEndpoints,proto3" json:"registry_endpoints,omitempty"` // 服务注册;如:http://192.168.100.200:10001、grpc://192.168.100.200:10002 InternalDomains []string `protobuf:"bytes,61,rep,name=internal_domains,json=internalDomains,proto3" json:"internal_domains,omitempty"` // 服务内部域名;;如:http://xxx-service.namespace.svc.cluster.local:10001、grpc://xxx-service.namespace:10002 ExternalDomains []string `protobuf:"bytes,62,rep,name=external_domains,json=externalDomains,proto3" json:"external_domains,omitempty"` // 服务外部域名;;如:http://xxx-service.namespace.svc.cluster.local:10001、grpc://xxx-service.namespace:10002 Metadata map[string]string `` // 元数据 /* 159-byte string literal not displayed */ // contains filtered or unexported fields }
App application
func (*App) Descriptor
deprecated
func (*App) GetConfigMethod ¶
func (*App) GetConfigPathForGeneral ¶
func (*App) GetConfigPathForServer ¶
func (*App) GetExternalDomains ¶
func (*App) GetInternalDomains ¶
func (*App) GetMetadata ¶
func (*App) GetProjectName ¶
func (*App) GetRegistryEndpoints ¶
func (*App) GetServerEnv ¶
func (*App) GetServerName ¶
func (*App) GetServerVersion ¶
func (*App) ProtoMessage ¶
func (*App) ProtoMessage()
func (*App) ProtoReflect ¶
func (x *App) ProtoReflect() protoreflect.Message
func (*App) Validate ¶
Validate checks the field values on App with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*App) ValidateAll ¶
ValidateAll checks the field values on App with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AppMultiError, or nil if none found.
type AppMultiError ¶
type AppMultiError []error
AppMultiError is an error wrapping multiple validation errors returned by App.ValidateAll() if the designated constraints aren't met.
func (AppMultiError) AllErrors ¶
func (m AppMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AppMultiError) Error ¶
func (m AppMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AppValidationError ¶
type AppValidationError struct {
// contains filtered or unexported fields
}
AppValidationError is the validation error returned by App.Validate if the designated constraints aren't met.
func (AppValidationError) Cause ¶
func (e AppValidationError) Cause() error
Cause function returns cause value.
func (AppValidationError) Error ¶
func (e AppValidationError) Error() string
Error satisfies the builtin error interface
func (AppValidationError) ErrorName ¶
func (e AppValidationError) ErrorName() string
ErrorName returns error name.
func (AppValidationError) Field ¶
func (e AppValidationError) Field() string
Field function returns field value.
func (AppValidationError) Key ¶
func (e AppValidationError) Key() bool
Key function returns key value.
func (AppValidationError) Reason ¶
func (e AppValidationError) Reason() string
Reason function returns reason value.
type Bootstrap ¶
type Bootstrap struct { App *App `protobuf:"bytes,1,opt,name=app,proto3" json:"app,omitempty"` Setting *Setting `protobuf:"bytes,2,opt,name=setting,proto3" json:"setting,omitempty"` Server *Server `protobuf:"bytes,101,opt,name=server,proto3" json:"server,omitempty"` Log *Log `protobuf:"bytes,201,opt,name=log,proto3" json:"log,omitempty"` Mysql *MySQL `protobuf:"bytes,301,opt,name=mysql,proto3" json:"mysql,omitempty"` Psql *PSQL `protobuf:"bytes,302,opt,name=psql,proto3" json:"psql,omitempty"` Redis *Redis `protobuf:"bytes,303,opt,name=redis,proto3" json:"redis,omitempty"` Rabbitmq *Rabbitmq `protobuf:"bytes,304,opt,name=rabbitmq,proto3" json:"rabbitmq,omitempty"` Consul *Consul `protobuf:"bytes,305,opt,name=consul,proto3" json:"consul,omitempty"` Etcd *Etcd `protobuf:"bytes,306,opt,name=etcd,proto3" json:"etcd,omitempty"` Jaeger *Jaeger `protobuf:"bytes,307,opt,name=jaeger,proto3" json:"jaeger,omitempty"` Mongo *Mongo `protobuf:"bytes,308,opt,name=mongo,proto3" json:"mongo,omitempty"` Encrypt *Encrypt `protobuf:"bytes,401,opt,name=encrypt,proto3" json:"encrypt,omitempty"` ClusterServiceApi []*ClusterServiceApi `protobuf:"bytes,501,rep,name=cluster_service_api,json=clusterServiceApi,proto3" json:"cluster_service_api,omitempty"` // 应用程序接口 ThirdPartyApi []*ThirdPartyApi `protobuf:"bytes,502,rep,name=third_party_api,json=thirdPartyApi,proto3" json:"third_party_api,omitempty"` // 应用程序接口 Snowflake *Snowflake `protobuf:"bytes,602,opt,name=snowflake,proto3" json:"snowflake,omitempty"` // contains filtered or unexported fields }
Bootstrap 配置引导
func (*Bootstrap) Descriptor
deprecated
func (*Bootstrap) GetClusterServiceApi ¶
func (x *Bootstrap) GetClusterServiceApi() []*ClusterServiceApi
func (*Bootstrap) GetEncrypt ¶
func (*Bootstrap) GetRabbitmq ¶
func (*Bootstrap) GetSetting ¶
func (*Bootstrap) GetSnowflake ¶
func (*Bootstrap) GetThirdPartyApi ¶
func (x *Bootstrap) GetThirdPartyApi() []*ThirdPartyApi
func (*Bootstrap) ProtoMessage ¶
func (*Bootstrap) ProtoMessage()
func (*Bootstrap) ProtoReflect ¶
func (x *Bootstrap) ProtoReflect() protoreflect.Message
func (*Bootstrap) Validate ¶
Validate checks the field values on Bootstrap with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Bootstrap) ValidateAll ¶
ValidateAll checks the field values on Bootstrap with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in BootstrapMultiError, or nil if none found.
type BootstrapMultiError ¶
type BootstrapMultiError []error
BootstrapMultiError is an error wrapping multiple validation errors returned by Bootstrap.ValidateAll() if the designated constraints aren't met.
func (BootstrapMultiError) AllErrors ¶
func (m BootstrapMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (BootstrapMultiError) Error ¶
func (m BootstrapMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type BootstrapValidationError ¶
type BootstrapValidationError struct {
// contains filtered or unexported fields
}
BootstrapValidationError is the validation error returned by Bootstrap.Validate if the designated constraints aren't met.
func (BootstrapValidationError) Cause ¶
func (e BootstrapValidationError) Cause() error
Cause function returns cause value.
func (BootstrapValidationError) Error ¶
func (e BootstrapValidationError) Error() string
Error satisfies the builtin error interface
func (BootstrapValidationError) ErrorName ¶
func (e BootstrapValidationError) ErrorName() string
ErrorName returns error name.
func (BootstrapValidationError) Field ¶
func (e BootstrapValidationError) Field() string
Field function returns field value.
func (BootstrapValidationError) Key ¶
func (e BootstrapValidationError) Key() bool
Key function returns key value.
func (BootstrapValidationError) Reason ¶
func (e BootstrapValidationError) Reason() string
Reason function returns reason value.
type ClusterServiceApi ¶
type ClusterServiceApi struct { ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"` // 服务名称 TransportType string `protobuf:"bytes,2,opt,name=transport_type,json=transportType,proto3" json:"transport_type,omitempty"` // 传输协议:http、grpc、...;默认: HTTP RegistryType string `protobuf:"bytes,3,opt,name=registry_type,json=registryType,proto3" json:"registry_type,omitempty"` // 注册类型:endpoint、consul、...;配置中心配置:${registry_type};例: Bootstrap.Consul ServiceTarget string `protobuf:"bytes,4,opt,name=service_target,json=serviceTarget,proto3" json:"service_target,omitempty"` // 服务目标:endpoint或registry,例:http://127.0.0.1:8899、discovery:///${registry_endpoint} // contains filtered or unexported fields }
ClusterServiceApi 项目集群客户端api
func (*ClusterServiceApi) Descriptor
deprecated
func (*ClusterServiceApi) Descriptor() ([]byte, []int)
Deprecated: Use ClusterServiceApi.ProtoReflect.Descriptor instead.
func (*ClusterServiceApi) GetRegistryType ¶
func (x *ClusterServiceApi) GetRegistryType() string
func (*ClusterServiceApi) GetServiceName ¶
func (x *ClusterServiceApi) GetServiceName() string
func (*ClusterServiceApi) GetServiceTarget ¶
func (x *ClusterServiceApi) GetServiceTarget() string
func (*ClusterServiceApi) GetTransportType ¶
func (x *ClusterServiceApi) GetTransportType() string
func (*ClusterServiceApi) ProtoMessage ¶
func (*ClusterServiceApi) ProtoMessage()
func (*ClusterServiceApi) ProtoReflect ¶
func (x *ClusterServiceApi) ProtoReflect() protoreflect.Message
func (*ClusterServiceApi) Reset ¶
func (x *ClusterServiceApi) Reset()
func (*ClusterServiceApi) String ¶
func (x *ClusterServiceApi) String() string
func (*ClusterServiceApi) Validate ¶
func (m *ClusterServiceApi) Validate() error
Validate checks the field values on ClusterServiceApi with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ClusterServiceApi) ValidateAll ¶
func (m *ClusterServiceApi) ValidateAll() error
ValidateAll checks the field values on ClusterServiceApi with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ClusterServiceApiMultiError, or nil if none found.
type ClusterServiceApiMultiError ¶
type ClusterServiceApiMultiError []error
ClusterServiceApiMultiError is an error wrapping multiple validation errors returned by ClusterServiceApi.ValidateAll() if the designated constraints aren't met.
func (ClusterServiceApiMultiError) AllErrors ¶
func (m ClusterServiceApiMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ClusterServiceApiMultiError) Error ¶
func (m ClusterServiceApiMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ClusterServiceApiValidationError ¶
type ClusterServiceApiValidationError struct {
// contains filtered or unexported fields
}
ClusterServiceApiValidationError is the validation error returned by ClusterServiceApi.Validate if the designated constraints aren't met.
func (ClusterServiceApiValidationError) Cause ¶
func (e ClusterServiceApiValidationError) Cause() error
Cause function returns cause value.
func (ClusterServiceApiValidationError) Error ¶
func (e ClusterServiceApiValidationError) Error() string
Error satisfies the builtin error interface
func (ClusterServiceApiValidationError) ErrorName ¶
func (e ClusterServiceApiValidationError) ErrorName() string
ErrorName returns error name.
func (ClusterServiceApiValidationError) Field ¶
func (e ClusterServiceApiValidationError) Field() string
Field function returns field value.
func (ClusterServiceApiValidationError) Key ¶
func (e ClusterServiceApiValidationError) Key() bool
Key function returns key value.
func (ClusterServiceApiValidationError) Reason ¶
func (e ClusterServiceApiValidationError) Reason() string
Reason function returns reason value.
type Consul ¶
type Consul struct { Enable bool `protobuf:"varint,100,opt,name=enable,proto3" json:"enable,omitempty"` Scheme string `protobuf:"bytes,1,opt,name=scheme,proto3" json:"scheme,omitempty"` Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` PathPrefix string `protobuf:"bytes,3,opt,name=path_prefix,json=pathPrefix,proto3" json:"path_prefix,omitempty"` Datacenter string `protobuf:"bytes,4,opt,name=datacenter,proto3" json:"datacenter,omitempty"` WaitTime *durationpb.Duration `protobuf:"bytes,5,opt,name=wait_time,json=waitTime,proto3" json:"wait_time,omitempty"` // (s) Token string `protobuf:"bytes,6,opt,name=token,proto3" json:"token,omitempty"` Namespace string `protobuf:"bytes,7,opt,name=namespace,proto3" json:"namespace,omitempty"` Partition string `protobuf:"bytes,8,opt,name=partition,proto3" json:"partition,omitempty"` WithHttpBasicAuth bool `protobuf:"varint,9,opt,name=with_http_basic_auth,json=withHttpBasicAuth,proto3" json:"with_http_basic_auth,omitempty"` AuthUsername string `protobuf:"bytes,10,opt,name=auth_username,json=authUsername,proto3" json:"auth_username,omitempty"` AuthPassword string `protobuf:"bytes,11,opt,name=auth_password,json=authPassword,proto3" json:"auth_password,omitempty"` InsecureSkipVerify bool `protobuf:"varint,12,opt,name=insecure_skip_verify,json=insecureSkipVerify,proto3" json:"insecure_skip_verify,omitempty"` TlsAddress string `protobuf:"bytes,13,opt,name=tls_address,json=tlsAddress,proto3" json:"tls_address,omitempty"` TlsCaPem string `protobuf:"bytes,14,opt,name=tls_ca_pem,json=tlsCaPem,proto3" json:"tls_ca_pem,omitempty"` TlsCertPem string `protobuf:"bytes,15,opt,name=tls_cert_pem,json=tlsCertPem,proto3" json:"tls_cert_pem,omitempty"` TlsKeyPem string `protobuf:"bytes,16,opt,name=tls_key_pem,json=tlsKeyPem,proto3" json:"tls_key_pem,omitempty"` // contains filtered or unexported fields }
Consul consul
func (*Consul) Descriptor
deprecated
func (*Consul) GetAddress ¶
func (*Consul) GetAuthPassword ¶
func (*Consul) GetAuthUsername ¶
func (*Consul) GetDatacenter ¶
func (*Consul) GetInsecureSkipVerify ¶
func (*Consul) GetNamespace ¶
func (*Consul) GetPartition ¶
func (*Consul) GetPathPrefix ¶
func (*Consul) GetTlsAddress ¶
func (*Consul) GetTlsCaPem ¶
func (*Consul) GetTlsCertPem ¶
func (*Consul) GetTlsKeyPem ¶
func (*Consul) GetWaitTime ¶
func (x *Consul) GetWaitTime() *durationpb.Duration
func (*Consul) GetWithHttpBasicAuth ¶
func (*Consul) ProtoMessage ¶
func (*Consul) ProtoMessage()
func (*Consul) ProtoReflect ¶
func (x *Consul) ProtoReflect() protoreflect.Message
func (*Consul) Validate ¶
Validate checks the field values on Consul with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Consul) ValidateAll ¶
ValidateAll checks the field values on Consul with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ConsulMultiError, or nil if none found.
type ConsulMultiError ¶
type ConsulMultiError []error
ConsulMultiError is an error wrapping multiple validation errors returned by Consul.ValidateAll() if the designated constraints aren't met.
func (ConsulMultiError) AllErrors ¶
func (m ConsulMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ConsulMultiError) Error ¶
func (m ConsulMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ConsulValidationError ¶
type ConsulValidationError struct {
// contains filtered or unexported fields
}
ConsulValidationError is the validation error returned by Consul.Validate if the designated constraints aren't met.
func (ConsulValidationError) Cause ¶
func (e ConsulValidationError) Cause() error
Cause function returns cause value.
func (ConsulValidationError) Error ¶
func (e ConsulValidationError) Error() string
Error satisfies the builtin error interface
func (ConsulValidationError) ErrorName ¶
func (e ConsulValidationError) ErrorName() string
ErrorName returns error name.
func (ConsulValidationError) Field ¶
func (e ConsulValidationError) Field() string
Field function returns field value.
func (ConsulValidationError) Key ¶
func (e ConsulValidationError) Key() bool
Key function returns key value.
func (ConsulValidationError) Reason ¶
func (e ConsulValidationError) Reason() string
Reason function returns reason value.
type Encrypt ¶
type Encrypt struct { TransferEncrypt *Encrypt_TransferEncrypt `protobuf:"bytes,1,opt,name=transfer_encrypt,json=transferEncrypt,proto3" json:"transfer_encrypt,omitempty"` ServiceEncrypt *Encrypt_ServiceEncrypt `protobuf:"bytes,2,opt,name=service_encrypt,json=serviceEncrypt,proto3" json:"service_encrypt,omitempty"` TokenEncrypt *Encrypt_TokenEncrypt `protobuf:"bytes,3,opt,name=token_encrypt,json=tokenEncrypt,proto3" json:"token_encrypt,omitempty"` // contains filtered or unexported fields }
func (*Encrypt) Descriptor
deprecated
func (*Encrypt) GetServiceEncrypt ¶
func (x *Encrypt) GetServiceEncrypt() *Encrypt_ServiceEncrypt
func (*Encrypt) GetTokenEncrypt ¶
func (x *Encrypt) GetTokenEncrypt() *Encrypt_TokenEncrypt
func (*Encrypt) GetTransferEncrypt ¶
func (x *Encrypt) GetTransferEncrypt() *Encrypt_TransferEncrypt
func (*Encrypt) ProtoMessage ¶
func (*Encrypt) ProtoMessage()
func (*Encrypt) ProtoReflect ¶
func (x *Encrypt) ProtoReflect() protoreflect.Message
func (*Encrypt) Validate ¶
Validate checks the field values on Encrypt with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Encrypt) ValidateAll ¶
ValidateAll checks the field values on Encrypt with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in EncryptMultiError, or nil if none found.
type EncryptMultiError ¶
type EncryptMultiError []error
EncryptMultiError is an error wrapping multiple validation errors returned by Encrypt.ValidateAll() if the designated constraints aren't met.
func (EncryptMultiError) AllErrors ¶
func (m EncryptMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (EncryptMultiError) Error ¶
func (m EncryptMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type EncryptValidationError ¶
type EncryptValidationError struct {
// contains filtered or unexported fields
}
EncryptValidationError is the validation error returned by Encrypt.Validate if the designated constraints aren't met.
func (EncryptValidationError) Cause ¶
func (e EncryptValidationError) Cause() error
Cause function returns cause value.
func (EncryptValidationError) Error ¶
func (e EncryptValidationError) Error() string
Error satisfies the builtin error interface
func (EncryptValidationError) ErrorName ¶
func (e EncryptValidationError) ErrorName() string
ErrorName returns error name.
func (EncryptValidationError) Field ¶
func (e EncryptValidationError) Field() string
Field function returns field value.
func (EncryptValidationError) Key ¶
func (e EncryptValidationError) Key() bool
Key function returns key value.
func (EncryptValidationError) Reason ¶
func (e EncryptValidationError) Reason() string
Reason function returns reason value.
type Encrypt_ServiceEncrypt ¶
type Encrypt_ServiceEncrypt struct { PublicKey string `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` PrivateKey string `protobuf:"bytes,2,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"` // contains filtered or unexported fields }
ServiceEncrypt 非对称加密传输,主要用于服务请求鉴权,服务间的鉴权
func (*Encrypt_ServiceEncrypt) Descriptor
deprecated
func (*Encrypt_ServiceEncrypt) Descriptor() ([]byte, []int)
Deprecated: Use Encrypt_ServiceEncrypt.ProtoReflect.Descriptor instead.
func (*Encrypt_ServiceEncrypt) GetPrivateKey ¶
func (x *Encrypt_ServiceEncrypt) GetPrivateKey() string
func (*Encrypt_ServiceEncrypt) GetPublicKey ¶
func (x *Encrypt_ServiceEncrypt) GetPublicKey() string
func (*Encrypt_ServiceEncrypt) ProtoMessage ¶
func (*Encrypt_ServiceEncrypt) ProtoMessage()
func (*Encrypt_ServiceEncrypt) ProtoReflect ¶
func (x *Encrypt_ServiceEncrypt) ProtoReflect() protoreflect.Message
func (*Encrypt_ServiceEncrypt) Reset ¶
func (x *Encrypt_ServiceEncrypt) Reset()
func (*Encrypt_ServiceEncrypt) String ¶
func (x *Encrypt_ServiceEncrypt) String() string
func (*Encrypt_ServiceEncrypt) Validate ¶
func (m *Encrypt_ServiceEncrypt) Validate() error
Validate checks the field values on Encrypt_ServiceEncrypt with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Encrypt_ServiceEncrypt) ValidateAll ¶
func (m *Encrypt_ServiceEncrypt) ValidateAll() error
ValidateAll checks the field values on Encrypt_ServiceEncrypt with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Encrypt_ServiceEncryptMultiError, or nil if none found.
type Encrypt_ServiceEncryptMultiError ¶
type Encrypt_ServiceEncryptMultiError []error
Encrypt_ServiceEncryptMultiError is an error wrapping multiple validation errors returned by Encrypt_ServiceEncrypt.ValidateAll() if the designated constraints aren't met.
func (Encrypt_ServiceEncryptMultiError) AllErrors ¶
func (m Encrypt_ServiceEncryptMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (Encrypt_ServiceEncryptMultiError) Error ¶
func (m Encrypt_ServiceEncryptMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type Encrypt_ServiceEncryptValidationError ¶
type Encrypt_ServiceEncryptValidationError struct {
// contains filtered or unexported fields
}
Encrypt_ServiceEncryptValidationError is the validation error returned by Encrypt_ServiceEncrypt.Validate if the designated constraints aren't met.
func (Encrypt_ServiceEncryptValidationError) Cause ¶
func (e Encrypt_ServiceEncryptValidationError) Cause() error
Cause function returns cause value.
func (Encrypt_ServiceEncryptValidationError) Error ¶
func (e Encrypt_ServiceEncryptValidationError) Error() string
Error satisfies the builtin error interface
func (Encrypt_ServiceEncryptValidationError) ErrorName ¶
func (e Encrypt_ServiceEncryptValidationError) ErrorName() string
ErrorName returns error name.
func (Encrypt_ServiceEncryptValidationError) Field ¶
func (e Encrypt_ServiceEncryptValidationError) Field() string
Field function returns field value.
func (Encrypt_ServiceEncryptValidationError) Key ¶
func (e Encrypt_ServiceEncryptValidationError) Key() bool
Key function returns key value.
func (Encrypt_ServiceEncryptValidationError) Reason ¶
func (e Encrypt_ServiceEncryptValidationError) Reason() string
Reason function returns reason value.
type Encrypt_TokenEncrypt ¶
type Encrypt_TokenEncrypt struct { SignKey string `protobuf:"bytes,1,opt,name=sign_key,json=signKey,proto3" json:"sign_key,omitempty"` RefreshKey string `protobuf:"bytes,2,opt,name=refresh_key,json=refreshKey,proto3" json:"refresh_key,omitempty"` // contains filtered or unexported fields }
TokenEncrypt token
func (*Encrypt_TokenEncrypt) Descriptor
deprecated
func (*Encrypt_TokenEncrypt) Descriptor() ([]byte, []int)
Deprecated: Use Encrypt_TokenEncrypt.ProtoReflect.Descriptor instead.
func (*Encrypt_TokenEncrypt) GetRefreshKey ¶
func (x *Encrypt_TokenEncrypt) GetRefreshKey() string
func (*Encrypt_TokenEncrypt) GetSignKey ¶
func (x *Encrypt_TokenEncrypt) GetSignKey() string
func (*Encrypt_TokenEncrypt) ProtoMessage ¶
func (*Encrypt_TokenEncrypt) ProtoMessage()
func (*Encrypt_TokenEncrypt) ProtoReflect ¶
func (x *Encrypt_TokenEncrypt) ProtoReflect() protoreflect.Message
func (*Encrypt_TokenEncrypt) Reset ¶
func (x *Encrypt_TokenEncrypt) Reset()
func (*Encrypt_TokenEncrypt) String ¶
func (x *Encrypt_TokenEncrypt) String() string
func (*Encrypt_TokenEncrypt) Validate ¶
func (m *Encrypt_TokenEncrypt) Validate() error
Validate checks the field values on Encrypt_TokenEncrypt with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Encrypt_TokenEncrypt) ValidateAll ¶
func (m *Encrypt_TokenEncrypt) ValidateAll() error
ValidateAll checks the field values on Encrypt_TokenEncrypt with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Encrypt_TokenEncryptMultiError, or nil if none found.
type Encrypt_TokenEncryptMultiError ¶
type Encrypt_TokenEncryptMultiError []error
Encrypt_TokenEncryptMultiError is an error wrapping multiple validation errors returned by Encrypt_TokenEncrypt.ValidateAll() if the designated constraints aren't met.
func (Encrypt_TokenEncryptMultiError) AllErrors ¶
func (m Encrypt_TokenEncryptMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (Encrypt_TokenEncryptMultiError) Error ¶
func (m Encrypt_TokenEncryptMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type Encrypt_TokenEncryptValidationError ¶
type Encrypt_TokenEncryptValidationError struct {
// contains filtered or unexported fields
}
Encrypt_TokenEncryptValidationError is the validation error returned by Encrypt_TokenEncrypt.Validate if the designated constraints aren't met.
func (Encrypt_TokenEncryptValidationError) Cause ¶
func (e Encrypt_TokenEncryptValidationError) Cause() error
Cause function returns cause value.
func (Encrypt_TokenEncryptValidationError) Error ¶
func (e Encrypt_TokenEncryptValidationError) Error() string
Error satisfies the builtin error interface
func (Encrypt_TokenEncryptValidationError) ErrorName ¶
func (e Encrypt_TokenEncryptValidationError) ErrorName() string
ErrorName returns error name.
func (Encrypt_TokenEncryptValidationError) Field ¶
func (e Encrypt_TokenEncryptValidationError) Field() string
Field function returns field value.
func (Encrypt_TokenEncryptValidationError) Key ¶
func (e Encrypt_TokenEncryptValidationError) Key() bool
Key function returns key value.
func (Encrypt_TokenEncryptValidationError) Reason ¶
func (e Encrypt_TokenEncryptValidationError) Reason() string
Reason function returns reason value.
type Encrypt_TransferEncrypt ¶
type Encrypt_TransferEncrypt struct { PublicKey string `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` PrivateKey string `protobuf:"bytes,2,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"` // contains filtered or unexported fields }
TransferEncrypt 非对称加密传输,主要用于密码传递等,防止传递过程中明文信息被log,导致泄露
func (*Encrypt_TransferEncrypt) Descriptor
deprecated
func (*Encrypt_TransferEncrypt) Descriptor() ([]byte, []int)
Deprecated: Use Encrypt_TransferEncrypt.ProtoReflect.Descriptor instead.
func (*Encrypt_TransferEncrypt) GetPrivateKey ¶
func (x *Encrypt_TransferEncrypt) GetPrivateKey() string
func (*Encrypt_TransferEncrypt) GetPublicKey ¶
func (x *Encrypt_TransferEncrypt) GetPublicKey() string
func (*Encrypt_TransferEncrypt) ProtoMessage ¶
func (*Encrypt_TransferEncrypt) ProtoMessage()
func (*Encrypt_TransferEncrypt) ProtoReflect ¶
func (x *Encrypt_TransferEncrypt) ProtoReflect() protoreflect.Message
func (*Encrypt_TransferEncrypt) Reset ¶
func (x *Encrypt_TransferEncrypt) Reset()
func (*Encrypt_TransferEncrypt) String ¶
func (x *Encrypt_TransferEncrypt) String() string
func (*Encrypt_TransferEncrypt) Validate ¶
func (m *Encrypt_TransferEncrypt) Validate() error
Validate checks the field values on Encrypt_TransferEncrypt with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Encrypt_TransferEncrypt) ValidateAll ¶
func (m *Encrypt_TransferEncrypt) ValidateAll() error
ValidateAll checks the field values on Encrypt_TransferEncrypt with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Encrypt_TransferEncryptMultiError, or nil if none found.
type Encrypt_TransferEncryptMultiError ¶
type Encrypt_TransferEncryptMultiError []error
Encrypt_TransferEncryptMultiError is an error wrapping multiple validation errors returned by Encrypt_TransferEncrypt.ValidateAll() if the designated constraints aren't met.
func (Encrypt_TransferEncryptMultiError) AllErrors ¶
func (m Encrypt_TransferEncryptMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (Encrypt_TransferEncryptMultiError) Error ¶
func (m Encrypt_TransferEncryptMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type Encrypt_TransferEncryptValidationError ¶
type Encrypt_TransferEncryptValidationError struct {
// contains filtered or unexported fields
}
Encrypt_TransferEncryptValidationError is the validation error returned by Encrypt_TransferEncrypt.Validate if the designated constraints aren't met.
func (Encrypt_TransferEncryptValidationError) Cause ¶
func (e Encrypt_TransferEncryptValidationError) Cause() error
Cause function returns cause value.
func (Encrypt_TransferEncryptValidationError) Error ¶
func (e Encrypt_TransferEncryptValidationError) Error() string
Error satisfies the builtin error interface
func (Encrypt_TransferEncryptValidationError) ErrorName ¶
func (e Encrypt_TransferEncryptValidationError) ErrorName() string
ErrorName returns error name.
func (Encrypt_TransferEncryptValidationError) Field ¶
func (e Encrypt_TransferEncryptValidationError) Field() string
Field function returns field value.
func (Encrypt_TransferEncryptValidationError) Key ¶
func (e Encrypt_TransferEncryptValidationError) Key() bool
Key function returns key value.
func (Encrypt_TransferEncryptValidationError) Reason ¶
func (e Encrypt_TransferEncryptValidationError) Reason() string
Reason function returns reason value.
type Etcd ¶
type Etcd struct { Endpoints []string `protobuf:"bytes,1,rep,name=endpoints,proto3" json:"endpoints,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` DialTimeout *durationpb.Duration `protobuf:"bytes,4,opt,name=dial_timeout,json=dialTimeout,proto3" json:"dial_timeout,omitempty"` // (s) CaCert []byte `protobuf:"bytes,5,opt,name=ca_cert,json=caCert,proto3" json:"ca_cert,omitempty"` InsecureSkipVerify bool `protobuf:"varint,6,opt,name=insecure_skip_verify,json=insecureSkipVerify,proto3" json:"insecure_skip_verify,omitempty"` // contains filtered or unexported fields }
func (*Etcd) Descriptor
deprecated
func (*Etcd) GetDialTimeout ¶
func (x *Etcd) GetDialTimeout() *durationpb.Duration
func (*Etcd) GetEndpoints ¶
func (*Etcd) GetInsecureSkipVerify ¶
func (*Etcd) GetPassword ¶
func (*Etcd) GetUsername ¶
func (*Etcd) ProtoMessage ¶
func (*Etcd) ProtoMessage()
func (*Etcd) ProtoReflect ¶
func (x *Etcd) ProtoReflect() protoreflect.Message
func (*Etcd) Validate ¶
Validate checks the field values on Etcd with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Etcd) ValidateAll ¶
ValidateAll checks the field values on Etcd with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in EtcdMultiError, or nil if none found.
type EtcdMultiError ¶
type EtcdMultiError []error
EtcdMultiError is an error wrapping multiple validation errors returned by Etcd.ValidateAll() if the designated constraints aren't met.
func (EtcdMultiError) AllErrors ¶
func (m EtcdMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (EtcdMultiError) Error ¶
func (m EtcdMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type EtcdValidationError ¶
type EtcdValidationError struct {
// contains filtered or unexported fields
}
EtcdValidationError is the validation error returned by Etcd.Validate if the designated constraints aren't met.
func (EtcdValidationError) Cause ¶
func (e EtcdValidationError) Cause() error
Cause function returns cause value.
func (EtcdValidationError) Error ¶
func (e EtcdValidationError) Error() string
Error satisfies the builtin error interface
func (EtcdValidationError) ErrorName ¶
func (e EtcdValidationError) ErrorName() string
ErrorName returns error name.
func (EtcdValidationError) Field ¶
func (e EtcdValidationError) Field() string
Field function returns field value.
func (EtcdValidationError) Key ¶
func (e EtcdValidationError) Key() bool
Key function returns key value.
func (EtcdValidationError) Reason ¶
func (e EtcdValidationError) Reason() string
Reason function returns reason value.
type Jaeger ¶
type Jaeger struct { Enable bool `protobuf:"varint,100,opt,name=enable,proto3" json:"enable,omitempty"` Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` // value: grpc、http Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"` IsInsecure bool `protobuf:"varint,3,opt,name=is_insecure,json=isInsecure,proto3" json:"is_insecure,omitempty"` Timeout *durationpb.Duration `protobuf:"bytes,4,opt,name=timeout,proto3" json:"timeout,omitempty"` // (s) // contains filtered or unexported fields }
Jaeger jaeger
func (*Jaeger) Descriptor
deprecated
func (*Jaeger) GetIsInsecure ¶
func (*Jaeger) GetTimeout ¶
func (x *Jaeger) GetTimeout() *durationpb.Duration
func (*Jaeger) ProtoMessage ¶
func (*Jaeger) ProtoMessage()
func (*Jaeger) ProtoReflect ¶
func (x *Jaeger) ProtoReflect() protoreflect.Message
func (*Jaeger) Validate ¶
Validate checks the field values on Jaeger with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Jaeger) ValidateAll ¶
ValidateAll checks the field values on Jaeger with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in JaegerMultiError, or nil if none found.
type JaegerMultiError ¶
type JaegerMultiError []error
JaegerMultiError is an error wrapping multiple validation errors returned by Jaeger.ValidateAll() if the designated constraints aren't met.
func (JaegerMultiError) AllErrors ¶
func (m JaegerMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (JaegerMultiError) Error ¶
func (m JaegerMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type JaegerValidationError ¶
type JaegerValidationError struct {
// contains filtered or unexported fields
}
JaegerValidationError is the validation error returned by Jaeger.Validate if the designated constraints aren't met.
func (JaegerValidationError) Cause ¶
func (e JaegerValidationError) Cause() error
Cause function returns cause value.
func (JaegerValidationError) Error ¶
func (e JaegerValidationError) Error() string
Error satisfies the builtin error interface
func (JaegerValidationError) ErrorName ¶
func (e JaegerValidationError) ErrorName() string
ErrorName returns error name.
func (JaegerValidationError) Field ¶
func (e JaegerValidationError) Field() string
Field function returns field value.
func (JaegerValidationError) Key ¶
func (e JaegerValidationError) Key() bool
Key function returns key value.
func (JaegerValidationError) Reason ¶
func (e JaegerValidationError) Reason() string
Reason function returns reason value.
type Log ¶
type Log struct { Console *Log_Console `protobuf:"bytes,1,opt,name=console,proto3" json:"console,omitempty"` // console 输出到控制台 File *Log_File `protobuf:"bytes,2,opt,name=file,proto3" json:"file,omitempty"` // file 输出到文件 // contains filtered or unexported fields }
func (*Log) Descriptor
deprecated
func (*Log) GetConsole ¶
func (x *Log) GetConsole() *Log_Console
func (*Log) ProtoMessage ¶
func (*Log) ProtoMessage()
func (*Log) ProtoReflect ¶
func (x *Log) ProtoReflect() protoreflect.Message
func (*Log) Validate ¶
Validate checks the field values on Log with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Log) ValidateAll ¶
ValidateAll checks the field values on Log with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LogMultiError, or nil if none found.
type LogMultiError ¶
type LogMultiError []error
LogMultiError is an error wrapping multiple validation errors returned by Log.ValidateAll() if the designated constraints aren't met.
func (LogMultiError) AllErrors ¶
func (m LogMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LogMultiError) Error ¶
func (m LogMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LogValidationError ¶
type LogValidationError struct {
// contains filtered or unexported fields
}
LogValidationError is the validation error returned by Log.Validate if the designated constraints aren't met.
func (LogValidationError) Cause ¶
func (e LogValidationError) Cause() error
Cause function returns cause value.
func (LogValidationError) Error ¶
func (e LogValidationError) Error() string
Error satisfies the builtin error interface
func (LogValidationError) ErrorName ¶
func (e LogValidationError) ErrorName() string
ErrorName returns error name.
func (LogValidationError) Field ¶
func (e LogValidationError) Field() string
Field function returns field value.
func (LogValidationError) Key ¶
func (e LogValidationError) Key() bool
Key function returns key value.
func (LogValidationError) Reason ¶
func (e LogValidationError) Reason() string
Reason function returns reason value.
type Log_Console ¶
type Log_Console struct { Enable bool `protobuf:"varint,1,opt,name=enable,proto3" json:"enable,omitempty"` // 是否启用 Level string `protobuf:"bytes,2,opt,name=level,proto3" json:"level,omitempty"` // 日志级别;DEBUG、INFO、WARN、ERROR、FATAL // contains filtered or unexported fields }
Console 输出到控制台
func (*Log_Console) Descriptor
deprecated
func (*Log_Console) Descriptor() ([]byte, []int)
Deprecated: Use Log_Console.ProtoReflect.Descriptor instead.
func (*Log_Console) GetEnable ¶
func (x *Log_Console) GetEnable() bool
func (*Log_Console) GetLevel ¶
func (x *Log_Console) GetLevel() string
func (*Log_Console) ProtoMessage ¶
func (*Log_Console) ProtoMessage()
func (*Log_Console) ProtoReflect ¶
func (x *Log_Console) ProtoReflect() protoreflect.Message
func (*Log_Console) Reset ¶
func (x *Log_Console) Reset()
func (*Log_Console) String ¶
func (x *Log_Console) String() string
func (*Log_Console) Validate ¶
func (m *Log_Console) Validate() error
Validate checks the field values on Log_Console with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Log_Console) ValidateAll ¶
func (m *Log_Console) ValidateAll() error
ValidateAll checks the field values on Log_Console with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Log_ConsoleMultiError, or nil if none found.
type Log_ConsoleMultiError ¶
type Log_ConsoleMultiError []error
Log_ConsoleMultiError is an error wrapping multiple validation errors returned by Log_Console.ValidateAll() if the designated constraints aren't met.
func (Log_ConsoleMultiError) AllErrors ¶
func (m Log_ConsoleMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (Log_ConsoleMultiError) Error ¶
func (m Log_ConsoleMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type Log_ConsoleValidationError ¶
type Log_ConsoleValidationError struct {
// contains filtered or unexported fields
}
Log_ConsoleValidationError is the validation error returned by Log_Console.Validate if the designated constraints aren't met.
func (Log_ConsoleValidationError) Cause ¶
func (e Log_ConsoleValidationError) Cause() error
Cause function returns cause value.
func (Log_ConsoleValidationError) Error ¶
func (e Log_ConsoleValidationError) Error() string
Error satisfies the builtin error interface
func (Log_ConsoleValidationError) ErrorName ¶
func (e Log_ConsoleValidationError) ErrorName() string
ErrorName returns error name.
func (Log_ConsoleValidationError) Field ¶
func (e Log_ConsoleValidationError) Field() string
Field function returns field value.
func (Log_ConsoleValidationError) Key ¶
func (e Log_ConsoleValidationError) Key() bool
Key function returns key value.
func (Log_ConsoleValidationError) Reason ¶
func (e Log_ConsoleValidationError) Reason() string
Reason function returns reason value.
type Log_File ¶
type Log_File struct { Enable bool `protobuf:"varint,1,opt,name=enable,proto3" json:"enable,omitempty"` // 是否启用 Level string `protobuf:"bytes,2,opt,name=level,proto3" json:"level,omitempty"` // 日志级别;DEBUG、INFO、WARN、ERROR、FATAL Dir string `protobuf:"bytes,3,opt,name=dir,proto3" json:"dir,omitempty"` // 存储目录 Filename string `protobuf:"bytes,4,opt,name=filename,proto3" json:"filename,omitempty"` // 文件名(默认:${filename}_app.%Y%m%d%H%M%S.log) RotateTime *durationpb.Duration `protobuf:"bytes,5,opt,name=rotate_time,json=rotateTime,proto3" json:"rotate_time,omitempty"` // 轮询规则:n久(默认:86400s # 86400s = 1天);轮询规则:默认为:rotate_time(s) RotateSize int64 `protobuf:"varint,6,opt,name=rotate_size,json=rotateSize,proto3" json:"rotate_size,omitempty"` // 轮询规则:按文件大小(默认:52428800 # 50<<20 = 50M);轮询规则:默认为:rotate_time StorageAge *durationpb.Duration `protobuf:"bytes,7,opt,name=storage_age,json=storageAge,proto3" json:"storage_age,omitempty"` // 存储n久(默认:2592000s = 30天);存储规则:默认为:storage_age(s) StorageCounter uint32 `protobuf:"varint,8,opt,name=storage_counter,json=storageCounter,proto3" json:"storage_counter,omitempty"` // 存储:n个 或 有效期storage_age(默认:2592000s = 30天);存储规则:默认为:storage_age // contains filtered or unexported fields }
File 输出到文件
func (*Log_File) Descriptor
deprecated
func (*Log_File) GetFilename ¶
func (*Log_File) GetRotateSize ¶
func (*Log_File) GetRotateTime ¶
func (x *Log_File) GetRotateTime() *durationpb.Duration
func (*Log_File) GetStorageAge ¶
func (x *Log_File) GetStorageAge() *durationpb.Duration
func (*Log_File) GetStorageCounter ¶
func (*Log_File) ProtoMessage ¶
func (*Log_File) ProtoMessage()
func (*Log_File) ProtoReflect ¶
func (x *Log_File) ProtoReflect() protoreflect.Message
func (*Log_File) Validate ¶
Validate checks the field values on Log_File with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Log_File) ValidateAll ¶
ValidateAll checks the field values on Log_File with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Log_FileMultiError, or nil if none found.
type Log_FileMultiError ¶
type Log_FileMultiError []error
Log_FileMultiError is an error wrapping multiple validation errors returned by Log_File.ValidateAll() if the designated constraints aren't met.
func (Log_FileMultiError) AllErrors ¶
func (m Log_FileMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (Log_FileMultiError) Error ¶
func (m Log_FileMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type Log_FileValidationError ¶
type Log_FileValidationError struct {
// contains filtered or unexported fields
}
Log_FileValidationError is the validation error returned by Log_File.Validate if the designated constraints aren't met.
func (Log_FileValidationError) Cause ¶
func (e Log_FileValidationError) Cause() error
Cause function returns cause value.
func (Log_FileValidationError) Error ¶
func (e Log_FileValidationError) Error() string
Error satisfies the builtin error interface
func (Log_FileValidationError) ErrorName ¶
func (e Log_FileValidationError) ErrorName() string
ErrorName returns error name.
func (Log_FileValidationError) Field ¶
func (e Log_FileValidationError) Field() string
Field function returns field value.
func (Log_FileValidationError) Key ¶
func (e Log_FileValidationError) Key() bool
Key function returns key value.
func (Log_FileValidationError) Reason ¶
func (e Log_FileValidationError) Reason() string
Reason function returns reason value.
type Mongo ¶
type Mongo struct { Enable bool `protobuf:"varint,100,opt,name=enable,proto3" json:"enable,omitempty"` Debug bool `protobuf:"varint,1,opt,name=debug,proto3" json:"debug,omitempty"` AppName string `protobuf:"bytes,2,opt,name=app_name,json=appName,proto3" json:"app_name,omitempty"` Hosts []string `protobuf:"bytes,3,rep,name=hosts,proto3" json:"hosts,omitempty"` Addr string `protobuf:"bytes,4,opt,name=addr,proto3" json:"addr,omitempty"` Database string `protobuf:"bytes,5,opt,name=database,proto3" json:"database,omitempty"` MaxPoolSize uint32 `protobuf:"varint,6,opt,name=max_pool_size,json=maxPoolSize,proto3" json:"max_pool_size,omitempty"` MinPoolSize uint32 `protobuf:"varint,7,opt,name=min_pool_size,json=minPoolSize,proto3" json:"min_pool_size,omitempty"` MaxConnecting uint32 `protobuf:"varint,8,opt,name=max_connecting,json=maxConnecting,proto3" json:"max_connecting,omitempty"` ConnectTimeout *durationpb.Duration `protobuf:"bytes,9,opt,name=connect_timeout,json=connectTimeout,proto3" json:"connect_timeout,omitempty"` Timeout *durationpb.Duration `protobuf:"bytes,10,opt,name=timeout,proto3" json:"timeout,omitempty"` HeartbeatInterval *durationpb.Duration `protobuf:"bytes,11,opt,name=heartbeat_interval,json=heartbeatInterval,proto3" json:"heartbeat_interval,omitempty"` MaxConnIdleTime *durationpb.Duration `protobuf:"bytes,12,opt,name=max_conn_idle_time,json=maxConnIdleTime,proto3" json:"max_conn_idle_time,omitempty"` SlowThreshold *durationpb.Duration `protobuf:"bytes,13,opt,name=slow_threshold,json=slowThreshold,proto3" json:"slow_threshold,omitempty"` // contains filtered or unexported fields }
Mongo
func (*Mongo) Descriptor
deprecated
func (*Mongo) GetAppName ¶
func (*Mongo) GetConnectTimeout ¶
func (x *Mongo) GetConnectTimeout() *durationpb.Duration
func (*Mongo) GetDatabase ¶
func (*Mongo) GetHeartbeatInterval ¶
func (x *Mongo) GetHeartbeatInterval() *durationpb.Duration
func (*Mongo) GetMaxConnIdleTime ¶
func (x *Mongo) GetMaxConnIdleTime() *durationpb.Duration
func (*Mongo) GetMaxConnecting ¶
func (*Mongo) GetMaxPoolSize ¶
func (*Mongo) GetMinPoolSize ¶
func (*Mongo) GetSlowThreshold ¶
func (x *Mongo) GetSlowThreshold() *durationpb.Duration
func (*Mongo) GetTimeout ¶
func (x *Mongo) GetTimeout() *durationpb.Duration
func (*Mongo) ProtoMessage ¶
func (*Mongo) ProtoMessage()
func (*Mongo) ProtoReflect ¶
func (x *Mongo) ProtoReflect() protoreflect.Message
func (*Mongo) Validate ¶
Validate checks the field values on Mongo with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Mongo) ValidateAll ¶
ValidateAll checks the field values on Mongo with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MongoMultiError, or nil if none found.
type MongoMultiError ¶
type MongoMultiError []error
MongoMultiError is an error wrapping multiple validation errors returned by Mongo.ValidateAll() if the designated constraints aren't met.
func (MongoMultiError) AllErrors ¶
func (m MongoMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MongoMultiError) Error ¶
func (m MongoMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MongoValidationError ¶
type MongoValidationError struct {
// contains filtered or unexported fields
}
MongoValidationError is the validation error returned by Mongo.Validate if the designated constraints aren't met.
func (MongoValidationError) Cause ¶
func (e MongoValidationError) Cause() error
Cause function returns cause value.
func (MongoValidationError) Error ¶
func (e MongoValidationError) Error() string
Error satisfies the builtin error interface
func (MongoValidationError) ErrorName ¶
func (e MongoValidationError) ErrorName() string
ErrorName returns error name.
func (MongoValidationError) Field ¶
func (e MongoValidationError) Field() string
Field function returns field value.
func (MongoValidationError) Key ¶
func (e MongoValidationError) Key() bool
Key function returns key value.
func (MongoValidationError) Reason ¶
func (e MongoValidationError) Reason() string
Reason function returns reason value.
type MySQL ¶
type MySQL struct { Enable bool `protobuf:"varint,100,opt,name=enable,proto3" json:"enable,omitempty"` // 是否启动 Dsn string `protobuf:"bytes,1,opt,name=dsn,proto3" json:"dsn,omitempty"` // dsn SlowThreshold *durationpb.Duration `protobuf:"bytes,2,opt,name=slow_threshold,json=slowThreshold,proto3" json:"slow_threshold,omitempty"` // 慢查询(s) LoggerEnable bool `protobuf:"varint,3,opt,name=logger_enable,json=loggerEnable,proto3" json:"logger_enable,omitempty"` // 启用日志 LoggerColorful bool `protobuf:"varint,4,opt,name=logger_colorful,json=loggerColorful,proto3" json:"logger_colorful,omitempty"` // 多彩日志 LoggerLevel string `protobuf:"bytes,5,opt,name=logger_level,json=loggerLevel,proto3" json:"logger_level,omitempty"` // 日志级别;值:DEBUG、INFO、WARN、ERROR、FATAL ConnMaxActive uint32 `protobuf:"varint,6,opt,name=conn_max_active,json=connMaxActive,proto3" json:"conn_max_active,omitempty"` // 连接可复用的最大时间 ConnMaxLifetime *durationpb.Duration `protobuf:"bytes,7,opt,name=conn_max_lifetime,json=connMaxLifetime,proto3" json:"conn_max_lifetime,omitempty"` // 可复用的最大时间(s) ConnMaxIdle uint32 `protobuf:"varint,8,opt,name=conn_max_idle,json=connMaxIdle,proto3" json:"conn_max_idle,omitempty"` // 连接池中空闲连接的最大数量 ConnMaxIdleTime *durationpb.Duration `protobuf:"bytes,9,opt,name=conn_max_idle_time,json=connMaxIdleTime,proto3" json:"conn_max_idle_time,omitempty"` // 设置连接空闲的最长时间(s) // contains filtered or unexported fields }
MySQL MySQL
func (*MySQL) Descriptor
deprecated
func (*MySQL) GetConnMaxActive ¶
func (*MySQL) GetConnMaxIdle ¶
func (*MySQL) GetConnMaxIdleTime ¶
func (x *MySQL) GetConnMaxIdleTime() *durationpb.Duration
func (*MySQL) GetConnMaxLifetime ¶
func (x *MySQL) GetConnMaxLifetime() *durationpb.Duration
func (*MySQL) GetLoggerColorful ¶
func (*MySQL) GetLoggerEnable ¶
func (*MySQL) GetLoggerLevel ¶
func (*MySQL) GetSlowThreshold ¶
func (x *MySQL) GetSlowThreshold() *durationpb.Duration
func (*MySQL) ProtoMessage ¶
func (*MySQL) ProtoMessage()
func (*MySQL) ProtoReflect ¶
func (x *MySQL) ProtoReflect() protoreflect.Message
func (*MySQL) Validate ¶
Validate checks the field values on MySQL with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*MySQL) ValidateAll ¶
ValidateAll checks the field values on MySQL with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MySQLMultiError, or nil if none found.
type MySQLMultiError ¶
type MySQLMultiError []error
MySQLMultiError is an error wrapping multiple validation errors returned by MySQL.ValidateAll() if the designated constraints aren't met.
func (MySQLMultiError) AllErrors ¶
func (m MySQLMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MySQLMultiError) Error ¶
func (m MySQLMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MySQLValidationError ¶
type MySQLValidationError struct {
// contains filtered or unexported fields
}
MySQLValidationError is the validation error returned by MySQL.Validate if the designated constraints aren't met.
func (MySQLValidationError) Cause ¶
func (e MySQLValidationError) Cause() error
Cause function returns cause value.
func (MySQLValidationError) Error ¶
func (e MySQLValidationError) Error() string
Error satisfies the builtin error interface
func (MySQLValidationError) ErrorName ¶
func (e MySQLValidationError) ErrorName() string
ErrorName returns error name.
func (MySQLValidationError) Field ¶
func (e MySQLValidationError) Field() string
Field function returns field value.
func (MySQLValidationError) Key ¶
func (e MySQLValidationError) Key() bool
Key function returns key value.
func (MySQLValidationError) Reason ¶
func (e MySQLValidationError) Reason() string
Reason function returns reason value.
type PSQL ¶
type PSQL struct { Enable bool `protobuf:"varint,100,opt,name=enable,proto3" json:"enable,omitempty"` // 是否启动 Dsn string `protobuf:"bytes,1,opt,name=dsn,proto3" json:"dsn,omitempty"` SlowThreshold *durationpb.Duration `protobuf:"bytes,2,opt,name=slow_threshold,json=slowThreshold,proto3" json:"slow_threshold,omitempty"` // 慢查询(s) LoggerEnable bool `protobuf:"varint,3,opt,name=logger_enable,json=loggerEnable,proto3" json:"logger_enable,omitempty"` LoggerColorful bool `protobuf:"varint,4,opt,name=logger_colorful,json=loggerColorful,proto3" json:"logger_colorful,omitempty"` LoggerLevel string `protobuf:"bytes,5,opt,name=logger_level,json=loggerLevel,proto3" json:"logger_level,omitempty"` // 日志级别;值:DEBUG、INFO、WARN、ERROR、FATAL ConnMaxActive uint32 `protobuf:"varint,6,opt,name=conn_max_active,json=connMaxActive,proto3" json:"conn_max_active,omitempty"` // 连接可复用的最大时间 ConnMaxLifetime *durationpb.Duration `protobuf:"bytes,7,opt,name=conn_max_lifetime,json=connMaxLifetime,proto3" json:"conn_max_lifetime,omitempty"` // 可复用的最大时间(s) ConnMaxIdle uint32 `protobuf:"varint,8,opt,name=conn_max_idle,json=connMaxIdle,proto3" json:"conn_max_idle,omitempty"` // 连接池中空闲连接的最大数量 ConnMaxIdleTime *durationpb.Duration `protobuf:"bytes,9,opt,name=conn_max_idle_time,json=connMaxIdleTime,proto3" json:"conn_max_idle_time,omitempty"` // 设置连接空闲的最长时间(s) // contains filtered or unexported fields }
PSQL postgres
func (*PSQL) Descriptor
deprecated
func (*PSQL) GetConnMaxActive ¶
func (*PSQL) GetConnMaxIdle ¶
func (*PSQL) GetConnMaxIdleTime ¶
func (x *PSQL) GetConnMaxIdleTime() *durationpb.Duration
func (*PSQL) GetConnMaxLifetime ¶
func (x *PSQL) GetConnMaxLifetime() *durationpb.Duration
func (*PSQL) GetLoggerColorful ¶
func (*PSQL) GetLoggerEnable ¶
func (*PSQL) GetLoggerLevel ¶
func (*PSQL) GetSlowThreshold ¶
func (x *PSQL) GetSlowThreshold() *durationpb.Duration
func (*PSQL) ProtoMessage ¶
func (*PSQL) ProtoMessage()
func (*PSQL) ProtoReflect ¶
func (x *PSQL) ProtoReflect() protoreflect.Message
func (*PSQL) Validate ¶
Validate checks the field values on PSQL with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*PSQL) ValidateAll ¶
ValidateAll checks the field values on PSQL with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PSQLMultiError, or nil if none found.
type PSQLMultiError ¶
type PSQLMultiError []error
PSQLMultiError is an error wrapping multiple validation errors returned by PSQL.ValidateAll() if the designated constraints aren't met.
func (PSQLMultiError) AllErrors ¶
func (m PSQLMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PSQLMultiError) Error ¶
func (m PSQLMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PSQLValidationError ¶
type PSQLValidationError struct {
// contains filtered or unexported fields
}
PSQLValidationError is the validation error returned by PSQL.Validate if the designated constraints aren't met.
func (PSQLValidationError) Cause ¶
func (e PSQLValidationError) Cause() error
Cause function returns cause value.
func (PSQLValidationError) Error ¶
func (e PSQLValidationError) Error() string
Error satisfies the builtin error interface
func (PSQLValidationError) ErrorName ¶
func (e PSQLValidationError) ErrorName() string
ErrorName returns error name.
func (PSQLValidationError) Field ¶
func (e PSQLValidationError) Field() string
Field function returns field value.
func (PSQLValidationError) Key ¶
func (e PSQLValidationError) Key() bool
Key function returns key value.
func (PSQLValidationError) Reason ¶
func (e PSQLValidationError) Reason() string
Reason function returns reason value.
type Rabbitmq ¶
type Rabbitmq struct { Enable bool `protobuf:"varint,100,opt,name=enable,proto3" json:"enable,omitempty"` Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` TlsAddress string `protobuf:"bytes,2,opt,name=tls_address,json=tlsAddress,proto3" json:"tls_address,omitempty"` TlsCaPem string `protobuf:"bytes,3,opt,name=tls_ca_pem,json=tlsCaPem,proto3" json:"tls_ca_pem,omitempty"` TlsCertPem string `protobuf:"bytes,4,opt,name=tls_cert_pem,json=tlsCertPem,proto3" json:"tls_cert_pem,omitempty"` TlsKeyPem string `protobuf:"bytes,5,opt,name=tls_key_pem,json=tlsKeyPem,proto3" json:"tls_key_pem,omitempty"` // contains filtered or unexported fields }
RabbitMQ rabbitmq
func (*Rabbitmq) Descriptor
deprecated
func (*Rabbitmq) GetTlsAddress ¶
func (*Rabbitmq) GetTlsCaPem ¶
func (*Rabbitmq) GetTlsCertPem ¶
func (*Rabbitmq) GetTlsKeyPem ¶
func (*Rabbitmq) ProtoMessage ¶
func (*Rabbitmq) ProtoMessage()
func (*Rabbitmq) ProtoReflect ¶
func (x *Rabbitmq) ProtoReflect() protoreflect.Message
func (*Rabbitmq) Validate ¶
Validate checks the field values on Rabbitmq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Rabbitmq) ValidateAll ¶
ValidateAll checks the field values on Rabbitmq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RabbitmqMultiError, or nil if none found.
type RabbitmqMultiError ¶
type RabbitmqMultiError []error
RabbitmqMultiError is an error wrapping multiple validation errors returned by Rabbitmq.ValidateAll() if the designated constraints aren't met.
func (RabbitmqMultiError) AllErrors ¶
func (m RabbitmqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RabbitmqMultiError) Error ¶
func (m RabbitmqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RabbitmqValidationError ¶
type RabbitmqValidationError struct {
// contains filtered or unexported fields
}
RabbitmqValidationError is the validation error returned by Rabbitmq.Validate if the designated constraints aren't met.
func (RabbitmqValidationError) Cause ¶
func (e RabbitmqValidationError) Cause() error
Cause function returns cause value.
func (RabbitmqValidationError) Error ¶
func (e RabbitmqValidationError) Error() string
Error satisfies the builtin error interface
func (RabbitmqValidationError) ErrorName ¶
func (e RabbitmqValidationError) ErrorName() string
ErrorName returns error name.
func (RabbitmqValidationError) Field ¶
func (e RabbitmqValidationError) Field() string
Field function returns field value.
func (RabbitmqValidationError) Key ¶
func (e RabbitmqValidationError) Key() bool
Key function returns key value.
func (RabbitmqValidationError) Reason ¶
func (e RabbitmqValidationError) Reason() string
Reason function returns reason value.
type Redis ¶
type Redis struct { // enable 是否启动 Enable bool `protobuf:"varint,100,opt,name=enable,proto3" json:"enable,omitempty"` Addresses []string `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` Db uint32 `protobuf:"varint,4,opt,name=db,proto3" json:"db,omitempty"` DialTimeout *durationpb.Duration `protobuf:"bytes,5,opt,name=dial_timeout,json=dialTimeout,proto3" json:"dial_timeout,omitempty"` // (s) ReadTimeout *durationpb.Duration `protobuf:"bytes,6,opt,name=read_timeout,json=readTimeout,proto3" json:"read_timeout,omitempty"` // (s) WriteTimeout *durationpb.Duration `protobuf:"bytes,7,opt,name=write_timeout,json=writeTimeout,proto3" json:"write_timeout,omitempty"` // (s) ConnMaxActive uint32 `protobuf:"varint,8,opt,name=conn_max_active,json=connMaxActive,proto3" json:"conn_max_active,omitempty"` // 连接的最大数量 ConnMaxLifetime *durationpb.Duration `protobuf:"bytes,9,opt,name=conn_max_lifetime,json=connMaxLifetime,proto3" json:"conn_max_lifetime,omitempty"` // 连接可复用的最大时间(s) ConnMaxIdle uint32 `protobuf:"varint,10,opt,name=conn_max_idle,json=connMaxIdle,proto3" json:"conn_max_idle,omitempty"` // 连接池中空闲连接的最大数量 ConnMinIdle uint32 `protobuf:"varint,11,opt,name=conn_min_idle,json=connMinIdle,proto3" json:"conn_min_idle,omitempty"` // 连接池中空闲连接的最小数量 ConnMaxIdleTime *durationpb.Duration `protobuf:"bytes,12,opt,name=conn_max_idle_time,json=connMaxIdleTime,proto3" json:"conn_max_idle_time,omitempty"` // 设置连接空闲的最长时间(s) // contains filtered or unexported fields }
Redis redis
func (*Redis) Descriptor
deprecated
func (*Redis) GetAddresses ¶
func (*Redis) GetConnMaxActive ¶
func (*Redis) GetConnMaxIdle ¶
func (*Redis) GetConnMaxIdleTime ¶
func (x *Redis) GetConnMaxIdleTime() *durationpb.Duration
func (*Redis) GetConnMaxLifetime ¶
func (x *Redis) GetConnMaxLifetime() *durationpb.Duration
func (*Redis) GetConnMinIdle ¶
func (*Redis) GetDialTimeout ¶
func (x *Redis) GetDialTimeout() *durationpb.Duration
func (*Redis) GetPassword ¶
func (*Redis) GetReadTimeout ¶
func (x *Redis) GetReadTimeout() *durationpb.Duration
func (*Redis) GetUsername ¶
func (*Redis) GetWriteTimeout ¶
func (x *Redis) GetWriteTimeout() *durationpb.Duration
func (*Redis) ProtoMessage ¶
func (*Redis) ProtoMessage()
func (*Redis) ProtoReflect ¶
func (x *Redis) ProtoReflect() protoreflect.Message
func (*Redis) Validate ¶
Validate checks the field values on Redis with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Redis) ValidateAll ¶
ValidateAll checks the field values on Redis with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RedisMultiError, or nil if none found.
type RedisMultiError ¶
type RedisMultiError []error
RedisMultiError is an error wrapping multiple validation errors returned by Redis.ValidateAll() if the designated constraints aren't met.
func (RedisMultiError) AllErrors ¶
func (m RedisMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RedisMultiError) Error ¶
func (m RedisMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RedisValidationError ¶
type RedisValidationError struct {
// contains filtered or unexported fields
}
RedisValidationError is the validation error returned by Redis.Validate if the designated constraints aren't met.
func (RedisValidationError) Cause ¶
func (e RedisValidationError) Cause() error
Cause function returns cause value.
func (RedisValidationError) Error ¶
func (e RedisValidationError) Error() string
Error satisfies the builtin error interface
func (RedisValidationError) ErrorName ¶
func (e RedisValidationError) ErrorName() string
ErrorName returns error name.
func (RedisValidationError) Field ¶
func (e RedisValidationError) Field() string
Field function returns field value.
func (RedisValidationError) Key ¶
func (e RedisValidationError) Key() bool
Key function returns key value.
func (RedisValidationError) Reason ¶
func (e RedisValidationError) Reason() string
Reason function returns reason value.
type RegistryTypeEnum ¶
type RegistryTypeEnum struct {
// contains filtered or unexported fields
}
func (*RegistryTypeEnum) Descriptor
deprecated
func (*RegistryTypeEnum) Descriptor() ([]byte, []int)
Deprecated: Use RegistryTypeEnum.ProtoReflect.Descriptor instead.
func (*RegistryTypeEnum) ProtoMessage ¶
func (*RegistryTypeEnum) ProtoMessage()
func (*RegistryTypeEnum) ProtoReflect ¶
func (x *RegistryTypeEnum) ProtoReflect() protoreflect.Message
func (*RegistryTypeEnum) Reset ¶
func (x *RegistryTypeEnum) Reset()
func (*RegistryTypeEnum) String ¶
func (x *RegistryTypeEnum) String() string
func (*RegistryTypeEnum) Validate ¶
func (m *RegistryTypeEnum) Validate() error
Validate checks the field values on RegistryTypeEnum with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*RegistryTypeEnum) ValidateAll ¶
func (m *RegistryTypeEnum) ValidateAll() error
ValidateAll checks the field values on RegistryTypeEnum with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RegistryTypeEnumMultiError, or nil if none found.
type RegistryTypeEnumMultiError ¶
type RegistryTypeEnumMultiError []error
RegistryTypeEnumMultiError is an error wrapping multiple validation errors returned by RegistryTypeEnum.ValidateAll() if the designated constraints aren't met.
func (RegistryTypeEnumMultiError) AllErrors ¶
func (m RegistryTypeEnumMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RegistryTypeEnumMultiError) Error ¶
func (m RegistryTypeEnumMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RegistryTypeEnumValidationError ¶
type RegistryTypeEnumValidationError struct {
// contains filtered or unexported fields
}
RegistryTypeEnumValidationError is the validation error returned by RegistryTypeEnum.Validate if the designated constraints aren't met.
func (RegistryTypeEnumValidationError) Cause ¶
func (e RegistryTypeEnumValidationError) Cause() error
Cause function returns cause value.
func (RegistryTypeEnumValidationError) Error ¶
func (e RegistryTypeEnumValidationError) Error() string
Error satisfies the builtin error interface
func (RegistryTypeEnumValidationError) ErrorName ¶
func (e RegistryTypeEnumValidationError) ErrorName() string
ErrorName returns error name.
func (RegistryTypeEnumValidationError) Field ¶
func (e RegistryTypeEnumValidationError) Field() string
Field function returns field value.
func (RegistryTypeEnumValidationError) Key ¶
func (e RegistryTypeEnumValidationError) Key() bool
Key function returns key value.
func (RegistryTypeEnumValidationError) Reason ¶
func (e RegistryTypeEnumValidationError) Reason() string
Reason function returns reason value.
type RegistryTypeEnum_RegistryType ¶
type RegistryTypeEnum_RegistryType int32
const ( RegistryTypeEnum_UNSPECIFIED RegistryTypeEnum_RegistryType = 0 // 未指定,默认: ENDPOINT RegistryTypeEnum_ENDPOINT RegistryTypeEnum_RegistryType = 1 RegistryTypeEnum_CONSUL RegistryTypeEnum_RegistryType = 2 RegistryTypeEnum_ETCD RegistryTypeEnum_RegistryType = 3 )
func (RegistryTypeEnum_RegistryType) Descriptor ¶
func (RegistryTypeEnum_RegistryType) Descriptor() protoreflect.EnumDescriptor
func (RegistryTypeEnum_RegistryType) Enum ¶
func (x RegistryTypeEnum_RegistryType) Enum() *RegistryTypeEnum_RegistryType
func (RegistryTypeEnum_RegistryType) EnumDescriptor
deprecated
func (RegistryTypeEnum_RegistryType) EnumDescriptor() ([]byte, []int)
Deprecated: Use RegistryTypeEnum_RegistryType.Descriptor instead.
func (RegistryTypeEnum_RegistryType) Number ¶
func (x RegistryTypeEnum_RegistryType) Number() protoreflect.EnumNumber
func (RegistryTypeEnum_RegistryType) String ¶
func (x RegistryTypeEnum_RegistryType) String() string
func (RegistryTypeEnum_RegistryType) Type ¶
func (RegistryTypeEnum_RegistryType) Type() protoreflect.EnumType
type Server ¶
type Server struct { Http *Server_HTTP `protobuf:"bytes,1,opt,name=http,proto3" json:"http,omitempty"` // http服务配置 Grpc *Server_GRPC `protobuf:"bytes,2,opt,name=grpc,proto3" json:"grpc,omitempty"` // grpc服务配置 // contains filtered or unexported fields }
Server 服务
func (*Server) Descriptor
deprecated
func (*Server) GetGrpc ¶
func (x *Server) GetGrpc() *Server_GRPC
func (*Server) GetHttp ¶
func (x *Server) GetHttp() *Server_HTTP
func (*Server) ProtoMessage ¶
func (*Server) ProtoMessage()
func (*Server) ProtoReflect ¶
func (x *Server) ProtoReflect() protoreflect.Message
func (*Server) Validate ¶
Validate checks the field values on Server with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Server) ValidateAll ¶
ValidateAll checks the field values on Server with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ServerMultiError, or nil if none found.
type ServerMultiError ¶
type ServerMultiError []error
ServerMultiError is an error wrapping multiple validation errors returned by Server.ValidateAll() if the designated constraints aren't met.
func (ServerMultiError) AllErrors ¶
func (m ServerMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ServerMultiError) Error ¶
func (m ServerMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ServerValidationError ¶
type ServerValidationError struct {
// contains filtered or unexported fields
}
ServerValidationError is the validation error returned by Server.Validate if the designated constraints aren't met.
func (ServerValidationError) Cause ¶
func (e ServerValidationError) Cause() error
Cause function returns cause value.
func (ServerValidationError) Error ¶
func (e ServerValidationError) Error() string
Error satisfies the builtin error interface
func (ServerValidationError) ErrorName ¶
func (e ServerValidationError) ErrorName() string
ErrorName returns error name.
func (ServerValidationError) Field ¶
func (e ServerValidationError) Field() string
Field function returns field value.
func (ServerValidationError) Key ¶
func (e ServerValidationError) Key() bool
Key function returns key value.
func (ServerValidationError) Reason ¶
func (e ServerValidationError) Reason() string
Reason function returns reason value.
type Server_GRPC ¶
type Server_GRPC struct { Enable bool `protobuf:"varint,100,opt,name=enable,proto3" json:"enable,omitempty"` // 是否启动 Network string `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"` // 网络 Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"` // 地址 Timeout *durationpb.Duration `protobuf:"bytes,3,opt,name=timeout,proto3" json:"timeout,omitempty"` // 超时时间(s) // contains filtered or unexported fields }
GRPC grpc服务配置
func (*Server_GRPC) Descriptor
deprecated
func (*Server_GRPC) Descriptor() ([]byte, []int)
Deprecated: Use Server_GRPC.ProtoReflect.Descriptor instead.
func (*Server_GRPC) GetAddr ¶
func (x *Server_GRPC) GetAddr() string
func (*Server_GRPC) GetEnable ¶
func (x *Server_GRPC) GetEnable() bool
func (*Server_GRPC) GetNetwork ¶
func (x *Server_GRPC) GetNetwork() string
func (*Server_GRPC) GetTimeout ¶
func (x *Server_GRPC) GetTimeout() *durationpb.Duration
func (*Server_GRPC) ProtoMessage ¶
func (*Server_GRPC) ProtoMessage()
func (*Server_GRPC) ProtoReflect ¶
func (x *Server_GRPC) ProtoReflect() protoreflect.Message
func (*Server_GRPC) Reset ¶
func (x *Server_GRPC) Reset()
func (*Server_GRPC) String ¶
func (x *Server_GRPC) String() string
func (*Server_GRPC) Validate ¶
func (m *Server_GRPC) Validate() error
Validate checks the field values on Server_GRPC with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Server_GRPC) ValidateAll ¶
func (m *Server_GRPC) ValidateAll() error
ValidateAll checks the field values on Server_GRPC with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Server_GRPCMultiError, or nil if none found.
type Server_GRPCMultiError ¶
type Server_GRPCMultiError []error
Server_GRPCMultiError is an error wrapping multiple validation errors returned by Server_GRPC.ValidateAll() if the designated constraints aren't met.
func (Server_GRPCMultiError) AllErrors ¶
func (m Server_GRPCMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (Server_GRPCMultiError) Error ¶
func (m Server_GRPCMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type Server_GRPCValidationError ¶
type Server_GRPCValidationError struct {
// contains filtered or unexported fields
}
Server_GRPCValidationError is the validation error returned by Server_GRPC.Validate if the designated constraints aren't met.
func (Server_GRPCValidationError) Cause ¶
func (e Server_GRPCValidationError) Cause() error
Cause function returns cause value.
func (Server_GRPCValidationError) Error ¶
func (e Server_GRPCValidationError) Error() string
Error satisfies the builtin error interface
func (Server_GRPCValidationError) ErrorName ¶
func (e Server_GRPCValidationError) ErrorName() string
ErrorName returns error name.
func (Server_GRPCValidationError) Field ¶
func (e Server_GRPCValidationError) Field() string
Field function returns field value.
func (Server_GRPCValidationError) Key ¶
func (e Server_GRPCValidationError) Key() bool
Key function returns key value.
func (Server_GRPCValidationError) Reason ¶
func (e Server_GRPCValidationError) Reason() string
Reason function returns reason value.
type Server_HTTP ¶
type Server_HTTP struct { Enable bool `protobuf:"varint,100,opt,name=enable,proto3" json:"enable,omitempty"` // 是否启动 Network string `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"` // 网络 Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"` // 地址 Timeout *durationpb.Duration `protobuf:"bytes,3,opt,name=timeout,proto3" json:"timeout,omitempty"` // 超时时间(s) // contains filtered or unexported fields }
HTTP http服务配置
func (*Server_HTTP) Descriptor
deprecated
func (*Server_HTTP) Descriptor() ([]byte, []int)
Deprecated: Use Server_HTTP.ProtoReflect.Descriptor instead.
func (*Server_HTTP) GetAddr ¶
func (x *Server_HTTP) GetAddr() string
func (*Server_HTTP) GetEnable ¶
func (x *Server_HTTP) GetEnable() bool
func (*Server_HTTP) GetNetwork ¶
func (x *Server_HTTP) GetNetwork() string
func (*Server_HTTP) GetTimeout ¶
func (x *Server_HTTP) GetTimeout() *durationpb.Duration
func (*Server_HTTP) ProtoMessage ¶
func (*Server_HTTP) ProtoMessage()
func (*Server_HTTP) ProtoReflect ¶
func (x *Server_HTTP) ProtoReflect() protoreflect.Message
func (*Server_HTTP) Reset ¶
func (x *Server_HTTP) Reset()
func (*Server_HTTP) String ¶
func (x *Server_HTTP) String() string
func (*Server_HTTP) Validate ¶
func (m *Server_HTTP) Validate() error
Validate checks the field values on Server_HTTP with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Server_HTTP) ValidateAll ¶
func (m *Server_HTTP) ValidateAll() error
ValidateAll checks the field values on Server_HTTP with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Server_HTTPMultiError, or nil if none found.
type Server_HTTPMultiError ¶
type Server_HTTPMultiError []error
Server_HTTPMultiError is an error wrapping multiple validation errors returned by Server_HTTP.ValidateAll() if the designated constraints aren't met.
func (Server_HTTPMultiError) AllErrors ¶
func (m Server_HTTPMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (Server_HTTPMultiError) Error ¶
func (m Server_HTTPMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type Server_HTTPValidationError ¶
type Server_HTTPValidationError struct {
// contains filtered or unexported fields
}
Server_HTTPValidationError is the validation error returned by Server_HTTP.Validate if the designated constraints aren't met.
func (Server_HTTPValidationError) Cause ¶
func (e Server_HTTPValidationError) Cause() error
Cause function returns cause value.
func (Server_HTTPValidationError) Error ¶
func (e Server_HTTPValidationError) Error() string
Error satisfies the builtin error interface
func (Server_HTTPValidationError) ErrorName ¶
func (e Server_HTTPValidationError) ErrorName() string
ErrorName returns error name.
func (Server_HTTPValidationError) Field ¶
func (e Server_HTTPValidationError) Field() string
Field function returns field value.
func (Server_HTTPValidationError) Key ¶
func (e Server_HTTPValidationError) Key() bool
Key function returns key value.
func (Server_HTTPValidationError) Reason ¶
func (e Server_HTTPValidationError) Reason() string
Reason function returns reason value.
type Setting ¶
type Setting struct { EnableAuthMiddleware bool `protobuf:"varint,1,opt,name=enable_auth_middleware,json=enableAuthMiddleware,proto3" json:"enable_auth_middleware,omitempty"` // 启用验证中间件 EnableJaegerTracer bool `protobuf:"varint,2,opt,name=enable_jaeger_tracer,json=enableJaegerTracer,proto3" json:"enable_jaeger_tracer,omitempty"` // 启用jaeger追踪 EnableConsulRegistry bool `protobuf:"varint,3,opt,name=enable_consul_registry,json=enableConsulRegistry,proto3" json:"enable_consul_registry,omitempty"` // 启用服务注册与发现 EnableMigrateDb bool `protobuf:"varint,4,opt,name=enable_migrate_db,json=enableMigrateDb,proto3" json:"enable_migrate_db,omitempty"` // 启用数据库迁移 EnableScheduleTask bool `protobuf:"varint,5,opt,name=enable_schedule_task,json=enableScheduleTask,proto3" json:"enable_schedule_task,omitempty"` // 启用定时任务、计划任务 EnableSnowflakeWorker bool `` // 雪花算法节点 /* 127-byte string literal not displayed */ Captcha *Setting_Captcha `protobuf:"bytes,101,opt,name=captcha,proto3" json:"captcha,omitempty"` Login *Setting_Login `protobuf:"bytes,201,opt,name=login,proto3" json:"login,omitempty"` // contains filtered or unexported fields }
Setting 设置
func (*Setting) Descriptor
deprecated
func (*Setting) GetCaptcha ¶
func (x *Setting) GetCaptcha() *Setting_Captcha
func (*Setting) GetEnableAuthMiddleware ¶
func (*Setting) GetEnableConsulRegistry ¶
func (*Setting) GetEnableJaegerTracer ¶
func (*Setting) GetEnableMigrateDb ¶
func (*Setting) GetEnableScheduleTask ¶
func (*Setting) GetEnableSnowflakeWorker ¶
func (*Setting) GetLogin ¶
func (x *Setting) GetLogin() *Setting_Login
func (*Setting) ProtoMessage ¶
func (*Setting) ProtoMessage()
func (*Setting) ProtoReflect ¶
func (x *Setting) ProtoReflect() protoreflect.Message
func (*Setting) Validate ¶
Validate checks the field values on Setting with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Setting) ValidateAll ¶
ValidateAll checks the field values on Setting with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SettingMultiError, or nil if none found.
type SettingMultiError ¶
type SettingMultiError []error
SettingMultiError is an error wrapping multiple validation errors returned by Setting.ValidateAll() if the designated constraints aren't met.
func (SettingMultiError) AllErrors ¶
func (m SettingMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SettingMultiError) Error ¶
func (m SettingMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SettingValidationError ¶
type SettingValidationError struct {
// contains filtered or unexported fields
}
SettingValidationError is the validation error returned by Setting.Validate if the designated constraints aren't met.
func (SettingValidationError) Cause ¶
func (e SettingValidationError) Cause() error
Cause function returns cause value.
func (SettingValidationError) Error ¶
func (e SettingValidationError) Error() string
Error satisfies the builtin error interface
func (SettingValidationError) ErrorName ¶
func (e SettingValidationError) ErrorName() string
ErrorName returns error name.
func (SettingValidationError) Field ¶
func (e SettingValidationError) Field() string
Field function returns field value.
func (SettingValidationError) Key ¶
func (e SettingValidationError) Key() bool
Key function returns key value.
func (SettingValidationError) Reason ¶
func (e SettingValidationError) Reason() string
Reason function returns reason value.
type Setting_Captcha ¶
type Setting_Captcha struct { CaptchaLen uint32 `protobuf:"varint,1,opt,name=captcha_len,json=captchaLen,proto3" json:"captcha_len,omitempty"` // 验证码长度 CaptchaTtl *durationpb.Duration `protobuf:"bytes,2,opt,name=captcha_ttl,json=captchaTtl,proto3" json:"captcha_ttl,omitempty"` // 验证码有效时间(s) // contains filtered or unexported fields }
Captcha 验证码
func (*Setting_Captcha) Descriptor
deprecated
func (*Setting_Captcha) Descriptor() ([]byte, []int)
Deprecated: Use Setting_Captcha.ProtoReflect.Descriptor instead.
func (*Setting_Captcha) GetCaptchaLen ¶
func (x *Setting_Captcha) GetCaptchaLen() uint32
func (*Setting_Captcha) GetCaptchaTtl ¶
func (x *Setting_Captcha) GetCaptchaTtl() *durationpb.Duration
func (*Setting_Captcha) ProtoMessage ¶
func (*Setting_Captcha) ProtoMessage()
func (*Setting_Captcha) ProtoReflect ¶
func (x *Setting_Captcha) ProtoReflect() protoreflect.Message
func (*Setting_Captcha) Reset ¶
func (x *Setting_Captcha) Reset()
func (*Setting_Captcha) String ¶
func (x *Setting_Captcha) String() string
func (*Setting_Captcha) Validate ¶
func (m *Setting_Captcha) Validate() error
Validate checks the field values on Setting_Captcha with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Setting_Captcha) ValidateAll ¶
func (m *Setting_Captcha) ValidateAll() error
ValidateAll checks the field values on Setting_Captcha with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Setting_CaptchaMultiError, or nil if none found.
type Setting_CaptchaMultiError ¶
type Setting_CaptchaMultiError []error
Setting_CaptchaMultiError is an error wrapping multiple validation errors returned by Setting_Captcha.ValidateAll() if the designated constraints aren't met.
func (Setting_CaptchaMultiError) AllErrors ¶
func (m Setting_CaptchaMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (Setting_CaptchaMultiError) Error ¶
func (m Setting_CaptchaMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type Setting_CaptchaValidationError ¶
type Setting_CaptchaValidationError struct {
// contains filtered or unexported fields
}
Setting_CaptchaValidationError is the validation error returned by Setting_Captcha.Validate if the designated constraints aren't met.
func (Setting_CaptchaValidationError) Cause ¶
func (e Setting_CaptchaValidationError) Cause() error
Cause function returns cause value.
func (Setting_CaptchaValidationError) Error ¶
func (e Setting_CaptchaValidationError) Error() string
Error satisfies the builtin error interface
func (Setting_CaptchaValidationError) ErrorName ¶
func (e Setting_CaptchaValidationError) ErrorName() string
ErrorName returns error name.
func (Setting_CaptchaValidationError) Field ¶
func (e Setting_CaptchaValidationError) Field() string
Field function returns field value.
func (Setting_CaptchaValidationError) Key ¶
func (e Setting_CaptchaValidationError) Key() bool
Key function returns key value.
func (Setting_CaptchaValidationError) Reason ¶
func (e Setting_CaptchaValidationError) Reason() string
Reason function returns reason value.
type Setting_Login ¶
type Setting_Login struct { PasswordErrSerialTimes uint32 `` // 密码连续输错N次后短暂锁定账号 /* 132-byte string literal not displayed */ PasswordErrSerialDuration *durationpb.Duration `` // N分钟内连续输错密码(s);默认1分钟(60s) /* 140-byte string literal not displayed */ PasswordErrLockDuration *durationpb.Duration `` // 密码连续错误后,锁定N分钟后重试(s) /* 134-byte string literal not displayed */ PasswordErrDailyLimitTimes uint32 `` // 当日密码错误上限 /* 146-byte string literal not displayed */ // contains filtered or unexported fields }
Login 登录
func (*Setting_Login) Descriptor
deprecated
func (*Setting_Login) Descriptor() ([]byte, []int)
Deprecated: Use Setting_Login.ProtoReflect.Descriptor instead.
func (*Setting_Login) GetPasswordErrDailyLimitTimes ¶
func (x *Setting_Login) GetPasswordErrDailyLimitTimes() uint32
func (*Setting_Login) GetPasswordErrLockDuration ¶
func (x *Setting_Login) GetPasswordErrLockDuration() *durationpb.Duration
func (*Setting_Login) GetPasswordErrSerialDuration ¶
func (x *Setting_Login) GetPasswordErrSerialDuration() *durationpb.Duration
func (*Setting_Login) GetPasswordErrSerialTimes ¶
func (x *Setting_Login) GetPasswordErrSerialTimes() uint32
func (*Setting_Login) ProtoMessage ¶
func (*Setting_Login) ProtoMessage()
func (*Setting_Login) ProtoReflect ¶
func (x *Setting_Login) ProtoReflect() protoreflect.Message
func (*Setting_Login) Reset ¶
func (x *Setting_Login) Reset()
func (*Setting_Login) String ¶
func (x *Setting_Login) String() string
func (*Setting_Login) Validate ¶
func (m *Setting_Login) Validate() error
Validate checks the field values on Setting_Login with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Setting_Login) ValidateAll ¶
func (m *Setting_Login) ValidateAll() error
ValidateAll checks the field values on Setting_Login with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Setting_LoginMultiError, or nil if none found.
type Setting_LoginMultiError ¶
type Setting_LoginMultiError []error
Setting_LoginMultiError is an error wrapping multiple validation errors returned by Setting_Login.ValidateAll() if the designated constraints aren't met.
func (Setting_LoginMultiError) AllErrors ¶
func (m Setting_LoginMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (Setting_LoginMultiError) Error ¶
func (m Setting_LoginMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type Setting_LoginValidationError ¶
type Setting_LoginValidationError struct {
// contains filtered or unexported fields
}
Setting_LoginValidationError is the validation error returned by Setting_Login.Validate if the designated constraints aren't met.
func (Setting_LoginValidationError) Cause ¶
func (e Setting_LoginValidationError) Cause() error
Cause function returns cause value.
func (Setting_LoginValidationError) Error ¶
func (e Setting_LoginValidationError) Error() string
Error satisfies the builtin error interface
func (Setting_LoginValidationError) ErrorName ¶
func (e Setting_LoginValidationError) ErrorName() string
ErrorName returns error name.
func (Setting_LoginValidationError) Field ¶
func (e Setting_LoginValidationError) Field() string
Field function returns field value.
func (Setting_LoginValidationError) Key ¶
func (e Setting_LoginValidationError) Key() bool
Key function returns key value.
func (Setting_LoginValidationError) Reason ¶
func (e Setting_LoginValidationError) Reason() string
Reason function returns reason value.
type Snowflake ¶
type Snowflake struct { Enable bool `protobuf:"varint,100,opt,name=enable,proto3" json:"enable,omitempty"` Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` WithDiscovery bool `protobuf:"varint,2,opt,name=with_discovery,json=withDiscovery,proto3" json:"with_discovery,omitempty"` WithHttpBasicAuth bool `protobuf:"varint,3,opt,name=with_http_basic_auth,json=withHttpBasicAuth,proto3" json:"with_http_basic_auth,omitempty"` Username string `protobuf:"bytes,4,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,5,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
Snowflake snowflake
func (*Snowflake) Descriptor
deprecated
func (*Snowflake) GetEndpoint ¶
func (*Snowflake) GetPassword ¶
func (*Snowflake) GetUsername ¶
func (*Snowflake) GetWithDiscovery ¶
func (*Snowflake) GetWithHttpBasicAuth ¶
func (*Snowflake) ProtoMessage ¶
func (*Snowflake) ProtoMessage()
func (*Snowflake) ProtoReflect ¶
func (x *Snowflake) ProtoReflect() protoreflect.Message
func (*Snowflake) Validate ¶
Validate checks the field values on Snowflake with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Snowflake) ValidateAll ¶
ValidateAll checks the field values on Snowflake with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SnowflakeMultiError, or nil if none found.
type SnowflakeMultiError ¶
type SnowflakeMultiError []error
SnowflakeMultiError is an error wrapping multiple validation errors returned by Snowflake.ValidateAll() if the designated constraints aren't met.
func (SnowflakeMultiError) AllErrors ¶
func (m SnowflakeMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SnowflakeMultiError) Error ¶
func (m SnowflakeMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SnowflakeValidationError ¶
type SnowflakeValidationError struct {
// contains filtered or unexported fields
}
SnowflakeValidationError is the validation error returned by Snowflake.Validate if the designated constraints aren't met.
func (SnowflakeValidationError) Cause ¶
func (e SnowflakeValidationError) Cause() error
Cause function returns cause value.
func (SnowflakeValidationError) Error ¶
func (e SnowflakeValidationError) Error() string
Error satisfies the builtin error interface
func (SnowflakeValidationError) ErrorName ¶
func (e SnowflakeValidationError) ErrorName() string
ErrorName returns error name.
func (SnowflakeValidationError) Field ¶
func (e SnowflakeValidationError) Field() string
Field function returns field value.
func (SnowflakeValidationError) Key ¶
func (e SnowflakeValidationError) Key() bool
Key function returns key value.
func (SnowflakeValidationError) Reason ¶
func (e SnowflakeValidationError) Reason() string
Reason function returns reason value.
type TestingConfig ¶
type TestingConfig struct { Testdata *TestingConfig_Testdata `protobuf:"bytes,1,opt,name=testdata,proto3" json:"testdata,omitempty"` // contains filtered or unexported fields }
func (*TestingConfig) Descriptor
deprecated
func (*TestingConfig) Descriptor() ([]byte, []int)
Deprecated: Use TestingConfig.ProtoReflect.Descriptor instead.
func (*TestingConfig) GetTestdata ¶
func (x *TestingConfig) GetTestdata() *TestingConfig_Testdata
func (*TestingConfig) ProtoMessage ¶
func (*TestingConfig) ProtoMessage()
func (*TestingConfig) ProtoReflect ¶
func (x *TestingConfig) ProtoReflect() protoreflect.Message
func (*TestingConfig) Reset ¶
func (x *TestingConfig) Reset()
func (*TestingConfig) String ¶
func (x *TestingConfig) String() string
func (*TestingConfig) Validate ¶
func (m *TestingConfig) Validate() error
Validate checks the field values on TestingConfig with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*TestingConfig) ValidateAll ¶
func (m *TestingConfig) ValidateAll() error
ValidateAll checks the field values on TestingConfig with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TestingConfigMultiError, or nil if none found.
type TestingConfigMultiError ¶
type TestingConfigMultiError []error
TestingConfigMultiError is an error wrapping multiple validation errors returned by TestingConfig.ValidateAll() if the designated constraints aren't met.
func (TestingConfigMultiError) AllErrors ¶
func (m TestingConfigMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TestingConfigMultiError) Error ¶
func (m TestingConfigMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TestingConfigValidationError ¶
type TestingConfigValidationError struct {
// contains filtered or unexported fields
}
TestingConfigValidationError is the validation error returned by TestingConfig.Validate if the designated constraints aren't met.
func (TestingConfigValidationError) Cause ¶
func (e TestingConfigValidationError) Cause() error
Cause function returns cause value.
func (TestingConfigValidationError) Error ¶
func (e TestingConfigValidationError) Error() string
Error satisfies the builtin error interface
func (TestingConfigValidationError) ErrorName ¶
func (e TestingConfigValidationError) ErrorName() string
ErrorName returns error name.
func (TestingConfigValidationError) Field ¶
func (e TestingConfigValidationError) Field() string
Field function returns field value.
func (TestingConfigValidationError) Key ¶
func (e TestingConfigValidationError) Key() bool
Key function returns key value.
func (TestingConfigValidationError) Reason ¶
func (e TestingConfigValidationError) Reason() string
Reason function returns reason value.
type TestingConfig_Testdata ¶
type TestingConfig_Testdata struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*TestingConfig_Testdata) Descriptor
deprecated
func (*TestingConfig_Testdata) Descriptor() ([]byte, []int)
Deprecated: Use TestingConfig_Testdata.ProtoReflect.Descriptor instead.
func (*TestingConfig_Testdata) GetKey ¶
func (x *TestingConfig_Testdata) GetKey() string
func (*TestingConfig_Testdata) GetValue ¶
func (x *TestingConfig_Testdata) GetValue() string
func (*TestingConfig_Testdata) ProtoMessage ¶
func (*TestingConfig_Testdata) ProtoMessage()
func (*TestingConfig_Testdata) ProtoReflect ¶
func (x *TestingConfig_Testdata) ProtoReflect() protoreflect.Message
func (*TestingConfig_Testdata) Reset ¶
func (x *TestingConfig_Testdata) Reset()
func (*TestingConfig_Testdata) String ¶
func (x *TestingConfig_Testdata) String() string
func (*TestingConfig_Testdata) Validate ¶
func (m *TestingConfig_Testdata) Validate() error
Validate checks the field values on TestingConfig_Testdata with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*TestingConfig_Testdata) ValidateAll ¶
func (m *TestingConfig_Testdata) ValidateAll() error
ValidateAll checks the field values on TestingConfig_Testdata with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TestingConfig_TestdataMultiError, or nil if none found.
type TestingConfig_TestdataMultiError ¶
type TestingConfig_TestdataMultiError []error
TestingConfig_TestdataMultiError is an error wrapping multiple validation errors returned by TestingConfig_Testdata.ValidateAll() if the designated constraints aren't met.
func (TestingConfig_TestdataMultiError) AllErrors ¶
func (m TestingConfig_TestdataMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TestingConfig_TestdataMultiError) Error ¶
func (m TestingConfig_TestdataMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TestingConfig_TestdataValidationError ¶
type TestingConfig_TestdataValidationError struct {
// contains filtered or unexported fields
}
TestingConfig_TestdataValidationError is the validation error returned by TestingConfig_Testdata.Validate if the designated constraints aren't met.
func (TestingConfig_TestdataValidationError) Cause ¶
func (e TestingConfig_TestdataValidationError) Cause() error
Cause function returns cause value.
func (TestingConfig_TestdataValidationError) Error ¶
func (e TestingConfig_TestdataValidationError) Error() string
Error satisfies the builtin error interface
func (TestingConfig_TestdataValidationError) ErrorName ¶
func (e TestingConfig_TestdataValidationError) ErrorName() string
ErrorName returns error name.
func (TestingConfig_TestdataValidationError) Field ¶
func (e TestingConfig_TestdataValidationError) Field() string
Field function returns field value.
func (TestingConfig_TestdataValidationError) Key ¶
func (e TestingConfig_TestdataValidationError) Key() bool
Key function returns key value.
func (TestingConfig_TestdataValidationError) Reason ¶
func (e TestingConfig_TestdataValidationError) Reason() string
Reason function returns reason value.
type ThirdPartyApi ¶
type ThirdPartyApi struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` HttpHost string `protobuf:"bytes,2,opt,name=http_host,json=httpHost,proto3" json:"http_host,omitempty"` GrpcHost string `protobuf:"bytes,3,opt,name=grpc_host,json=grpcHost,proto3" json:"grpc_host,omitempty"` IsDebug bool `protobuf:"varint,4,opt,name=is_debug,json=isDebug,proto3" json:"is_debug,omitempty"` AccessId string `protobuf:"bytes,5,opt,name=access_id,json=accessId,proto3" json:"access_id,omitempty"` AccessSecret string `protobuf:"bytes,6,opt,name=access_secret,json=accessSecret,proto3" json:"access_secret,omitempty"` EncryptId string `protobuf:"bytes,7,opt,name=encrypt_id,json=encryptId,proto3" json:"encrypt_id,omitempty"` EncryptSecret string `protobuf:"bytes,8,opt,name=encrypt_secret,json=encryptSecret,proto3" json:"encrypt_secret,omitempty"` // contains filtered or unexported fields }
ThirdPartyApi 第三方api
func (*ThirdPartyApi) Descriptor
deprecated
func (*ThirdPartyApi) Descriptor() ([]byte, []int)
Deprecated: Use ThirdPartyApi.ProtoReflect.Descriptor instead.
func (*ThirdPartyApi) GetAccessId ¶
func (x *ThirdPartyApi) GetAccessId() string
func (*ThirdPartyApi) GetAccessSecret ¶
func (x *ThirdPartyApi) GetAccessSecret() string
func (*ThirdPartyApi) GetEncryptId ¶
func (x *ThirdPartyApi) GetEncryptId() string
func (*ThirdPartyApi) GetEncryptSecret ¶
func (x *ThirdPartyApi) GetEncryptSecret() string
func (*ThirdPartyApi) GetGrpcHost ¶
func (x *ThirdPartyApi) GetGrpcHost() string
func (*ThirdPartyApi) GetHttpHost ¶
func (x *ThirdPartyApi) GetHttpHost() string
func (*ThirdPartyApi) GetIsDebug ¶
func (x *ThirdPartyApi) GetIsDebug() bool
func (*ThirdPartyApi) GetName ¶
func (x *ThirdPartyApi) GetName() string
func (*ThirdPartyApi) ProtoMessage ¶
func (*ThirdPartyApi) ProtoMessage()
func (*ThirdPartyApi) ProtoReflect ¶
func (x *ThirdPartyApi) ProtoReflect() protoreflect.Message
func (*ThirdPartyApi) Reset ¶
func (x *ThirdPartyApi) Reset()
func (*ThirdPartyApi) String ¶
func (x *ThirdPartyApi) String() string
func (*ThirdPartyApi) Validate ¶
func (m *ThirdPartyApi) Validate() error
Validate checks the field values on ThirdPartyApi with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ThirdPartyApi) ValidateAll ¶
func (m *ThirdPartyApi) ValidateAll() error
ValidateAll checks the field values on ThirdPartyApi with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ThirdPartyApiMultiError, or nil if none found.
type ThirdPartyApiMultiError ¶
type ThirdPartyApiMultiError []error
ThirdPartyApiMultiError is an error wrapping multiple validation errors returned by ThirdPartyApi.ValidateAll() if the designated constraints aren't met.
func (ThirdPartyApiMultiError) AllErrors ¶
func (m ThirdPartyApiMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ThirdPartyApiMultiError) Error ¶
func (m ThirdPartyApiMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ThirdPartyApiValidationError ¶
type ThirdPartyApiValidationError struct {
// contains filtered or unexported fields
}
ThirdPartyApiValidationError is the validation error returned by ThirdPartyApi.Validate if the designated constraints aren't met.
func (ThirdPartyApiValidationError) Cause ¶
func (e ThirdPartyApiValidationError) Cause() error
Cause function returns cause value.
func (ThirdPartyApiValidationError) Error ¶
func (e ThirdPartyApiValidationError) Error() string
Error satisfies the builtin error interface
func (ThirdPartyApiValidationError) ErrorName ¶
func (e ThirdPartyApiValidationError) ErrorName() string
ErrorName returns error name.
func (ThirdPartyApiValidationError) Field ¶
func (e ThirdPartyApiValidationError) Field() string
Field function returns field value.
func (ThirdPartyApiValidationError) Key ¶
func (e ThirdPartyApiValidationError) Key() bool
Key function returns key value.
func (ThirdPartyApiValidationError) Reason ¶
func (e ThirdPartyApiValidationError) Reason() string
Reason function returns reason value.
type TransportTypeEnum ¶
type TransportTypeEnum struct {
// contains filtered or unexported fields
}
func (*TransportTypeEnum) Descriptor
deprecated
func (*TransportTypeEnum) Descriptor() ([]byte, []int)
Deprecated: Use TransportTypeEnum.ProtoReflect.Descriptor instead.
func (*TransportTypeEnum) ProtoMessage ¶
func (*TransportTypeEnum) ProtoMessage()
func (*TransportTypeEnum) ProtoReflect ¶
func (x *TransportTypeEnum) ProtoReflect() protoreflect.Message
func (*TransportTypeEnum) Reset ¶
func (x *TransportTypeEnum) Reset()
func (*TransportTypeEnum) String ¶
func (x *TransportTypeEnum) String() string
func (*TransportTypeEnum) Validate ¶
func (m *TransportTypeEnum) Validate() error
Validate checks the field values on TransportTypeEnum with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*TransportTypeEnum) ValidateAll ¶
func (m *TransportTypeEnum) ValidateAll() error
ValidateAll checks the field values on TransportTypeEnum with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TransportTypeEnumMultiError, or nil if none found.
type TransportTypeEnumMultiError ¶
type TransportTypeEnumMultiError []error
TransportTypeEnumMultiError is an error wrapping multiple validation errors returned by TransportTypeEnum.ValidateAll() if the designated constraints aren't met.
func (TransportTypeEnumMultiError) AllErrors ¶
func (m TransportTypeEnumMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TransportTypeEnumMultiError) Error ¶
func (m TransportTypeEnumMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TransportTypeEnumValidationError ¶
type TransportTypeEnumValidationError struct {
// contains filtered or unexported fields
}
TransportTypeEnumValidationError is the validation error returned by TransportTypeEnum.Validate if the designated constraints aren't met.
func (TransportTypeEnumValidationError) Cause ¶
func (e TransportTypeEnumValidationError) Cause() error
Cause function returns cause value.
func (TransportTypeEnumValidationError) Error ¶
func (e TransportTypeEnumValidationError) Error() string
Error satisfies the builtin error interface
func (TransportTypeEnumValidationError) ErrorName ¶
func (e TransportTypeEnumValidationError) ErrorName() string
ErrorName returns error name.
func (TransportTypeEnumValidationError) Field ¶
func (e TransportTypeEnumValidationError) Field() string
Field function returns field value.
func (TransportTypeEnumValidationError) Key ¶
func (e TransportTypeEnumValidationError) Key() bool
Key function returns key value.
func (TransportTypeEnumValidationError) Reason ¶
func (e TransportTypeEnumValidationError) Reason() string
Reason function returns reason value.
type TransportTypeEnum_TransportType ¶
type TransportTypeEnum_TransportType int32
const ( TransportTypeEnum_UNSPECIFIED TransportTypeEnum_TransportType = 0 // 未指定,默认: HTTP TransportTypeEnum_HTTP TransportTypeEnum_TransportType = 1 TransportTypeEnum_GRPC TransportTypeEnum_TransportType = 2 )
func (TransportTypeEnum_TransportType) Descriptor ¶
func (TransportTypeEnum_TransportType) Descriptor() protoreflect.EnumDescriptor
func (TransportTypeEnum_TransportType) Enum ¶
func (x TransportTypeEnum_TransportType) Enum() *TransportTypeEnum_TransportType
func (TransportTypeEnum_TransportType) EnumDescriptor
deprecated
func (TransportTypeEnum_TransportType) EnumDescriptor() ([]byte, []int)
Deprecated: Use TransportTypeEnum_TransportType.Descriptor instead.
func (TransportTypeEnum_TransportType) Number ¶
func (x TransportTypeEnum_TransportType) Number() protoreflect.EnumNumber
func (TransportTypeEnum_TransportType) String ¶
func (x TransportTypeEnum_TransportType) String() string
func (TransportTypeEnum_TransportType) Type ¶
func (TransportTypeEnum_TransportType) Type() protoreflect.EnumType