Documentation ¶
Index ¶
- Variables
- type AliOss
- func (*AliOss) Descriptor() ([]byte, []int)deprecated
- func (x *AliOss) GetAccessKeyID() string
- func (x *AliOss) GetAccessKeySecret() string
- func (x *AliOss) GetBucketName() string
- func (x *AliOss) GetEndpoint() string
- func (*AliOss) ProtoMessage()
- func (x *AliOss) ProtoReflect() protoreflect.Message
- func (x *AliOss) Reset()
- func (x *AliOss) String() string
- type AliYunLogConfig
- func (*AliYunLogConfig) Descriptor() ([]byte, []int)deprecated
- func (x *AliYunLogConfig) GetAccessKey() string
- func (x *AliYunLogConfig) GetAccessSecret() string
- func (x *AliYunLogConfig) GetEndpoint() string
- func (x *AliYunLogConfig) GetExpireTime() string
- func (x *AliYunLogConfig) GetJson() bool
- func (x *AliYunLogConfig) GetProject() string
- func (x *AliYunLogConfig) GetSecurityToken() string
- func (x *AliYunLogConfig) GetStore() string
- func (*AliYunLogConfig) ProtoMessage()
- func (x *AliYunLogConfig) ProtoReflect() protoreflect.Message
- func (x *AliYunLogConfig) Reset()
- func (x *AliYunLogConfig) String() string
- type Cache
- func (*Cache) Descriptor() ([]byte, []int)deprecated
- func (x *Cache) GetDriver() string
- func (x *Cache) GetFree() *Free
- func (x *Cache) GetNutsDB() *NutsDB
- func (x *Cache) GetRedis() *Redis
- func (*Cache) ProtoMessage()
- func (x *Cache) ProtoReflect() protoreflect.Message
- func (x *Cache) Reset()
- func (x *Cache) String() string
- type Database
- func (*Database) Descriptor() ([]byte, []int)deprecated
- func (x *Database) GetDebug() bool
- func (x *Database) GetDriver() string
- func (x *Database) GetDsn() string
- func (*Database) ProtoMessage()
- func (x *Database) ProtoReflect() protoreflect.Message
- func (x *Database) Reset()
- func (x *Database) String() string
- type Discovery
- type ETCD
- func (*ETCD) Descriptor() ([]byte, []int)deprecated
- func (x *ETCD) GetEndpoints() []string
- func (x *ETCD) GetPassword() string
- func (x *ETCD) GetTimeout() *durationpb.Duration
- func (x *ETCD) GetUsername() string
- func (*ETCD) ProtoMessage()
- func (x *ETCD) ProtoReflect() protoreflect.Message
- func (x *ETCD) Reset()
- func (x *ETCD) String() string
- type EmailConfig
- func (*EmailConfig) Descriptor() ([]byte, []int)deprecated
- func (x *EmailConfig) GetHost() string
- func (x *EmailConfig) GetPass() string
- func (x *EmailConfig) GetPort() uint32
- func (x *EmailConfig) GetUser() string
- func (*EmailConfig) ProtoMessage()
- func (x *EmailConfig) ProtoReflect() protoreflect.Message
- func (x *EmailConfig) Reset()
- func (x *EmailConfig) String() string
- type FileLimit
- type Free
- type GRPCServer
- func (*GRPCServer) Descriptor() ([]byte, []int)deprecated
- func (x *GRPCServer) GetAddr() string
- func (x *GRPCServer) GetNetwork() string
- func (x *GRPCServer) GetTimeout() *durationpb.Duration
- func (*GRPCServer) ProtoMessage()
- func (x *GRPCServer) ProtoReflect() protoreflect.Message
- func (x *GRPCServer) Reset()
- func (x *GRPCServer) String() string
- type HTTPServer
- func (*HTTPServer) Descriptor() ([]byte, []int)deprecated
- func (x *HTTPServer) GetAddr() string
- func (x *HTTPServer) GetNetwork() string
- func (x *HTTPServer) GetTimeout() *durationpb.Duration
- func (*HTTPServer) ProtoMessage()
- func (x *HTTPServer) ProtoReflect() protoreflect.Message
- func (x *HTTPServer) Reset()
- func (x *HTTPServer) String() string
- type JWT
- func (*JWT) Descriptor() ([]byte, []int)deprecated
- func (x *JWT) GetAllowList() []string
- func (x *JWT) GetExpire() *durationpb.Duration
- func (x *JWT) GetIssuer() string
- func (x *JWT) GetSignKey() string
- func (*JWT) ProtoMessage()
- func (x *JWT) ProtoReflect() protoreflect.Message
- func (x *JWT) Reset()
- func (x *JWT) String() string
- type Jaeger
- type LocalStorage
- func (*LocalStorage) Descriptor() ([]byte, []int)deprecated
- func (x *LocalStorage) GetDownloadPre() string
- func (x *LocalStorage) GetPath() string
- func (x *LocalStorage) GetUrl() string
- func (*LocalStorage) ProtoMessage()
- func (x *LocalStorage) ProtoReflect() protoreflect.Message
- func (x *LocalStorage) Reset()
- func (x *LocalStorage) String() string
- type Log
- func (*Log) Descriptor() ([]byte, []int)deprecated
- func (x *Log) GetAliyun() *AliYunLogConfig
- func (x *Log) GetLevel() string
- func (x *Log) GetLoki() *LokiLogConfig
- func (x *Log) GetSlog() *SLogConfig
- func (x *Log) GetType() string
- func (x *Log) GetZap() *ZapLogConfig
- func (*Log) ProtoMessage()
- func (x *Log) ProtoReflect() protoreflect.Message
- func (x *Log) Reset()
- func (x *Log) String() string
- type LokiLogConfig
- func (*LokiLogConfig) Descriptor() ([]byte, []int)deprecated
- func (x *LokiLogConfig) GetApp() string
- func (x *LokiLogConfig) GetUrl() string
- func (*LokiLogConfig) ProtoMessage()
- func (x *LokiLogConfig) ProtoReflect() protoreflect.Message
- func (x *LokiLogConfig) Reset()
- func (x *LokiLogConfig) String() string
- type MicroServer
- func (*MicroServer) Descriptor() ([]byte, []int)deprecated
- func (x *MicroServer) GetEndpoint() string
- func (x *MicroServer) GetName() string
- func (x *MicroServer) GetNetwork() string
- func (x *MicroServer) GetNodeVersion() string
- func (x *MicroServer) GetSecret() string
- func (x *MicroServer) GetTimeout() *durationpb.Duration
- func (*MicroServer) ProtoMessage()
- func (x *MicroServer) ProtoReflect() protoreflect.Message
- func (x *MicroServer) Reset()
- func (x *MicroServer) String() string
- type Minio
- func (*Minio) Descriptor() ([]byte, []int)deprecated
- func (x *Minio) GetAccessKeyID() string
- func (x *Minio) GetAccessKeySecret() string
- func (x *Minio) GetBucketName() string
- func (x *Minio) GetEndpoint() string
- func (x *Minio) GetSecure() bool
- func (*Minio) ProtoMessage()
- func (x *Minio) ProtoReflect() protoreflect.Message
- func (x *Minio) Reset()
- func (x *Minio) String() string
- type NutsDB
- type Oss
- func (*Oss) Descriptor() ([]byte, []int)deprecated
- func (x *Oss) GetAliOss() *AliOss
- func (x *Oss) GetLimitSize() map[string]*FileLimit
- func (x *Oss) GetLocal() *LocalStorage
- func (x *Oss) GetMinio() *Minio
- func (x *Oss) GetOpen() bool
- func (x *Oss) GetTencentOss() *TencentOss
- func (x *Oss) GetType() string
- func (*Oss) ProtoMessage()
- func (x *Oss) ProtoReflect() protoreflect.Message
- func (x *Oss) Reset()
- func (x *Oss) String() string
- type Receiver
- func (*Receiver) Descriptor() ([]byte, []int)deprecated
- func (x *Receiver) GetEmailConfig() *EmailConfig
- func (x *Receiver) GetEmails() []*ReceiverEmail
- func (x *Receiver) GetHooks() []*ReceiverHook
- func (x *Receiver) GetPhones() []*ReceiverPhone
- func (*Receiver) ProtoMessage()
- func (x *Receiver) ProtoReflect() protoreflect.Message
- func (x *Receiver) Reset()
- func (x *Receiver) String() string
- type ReceiverEmail
- func (*ReceiverEmail) Descriptor() ([]byte, []int)deprecated
- func (x *ReceiverEmail) GetAttachUrl() []string
- func (x *ReceiverEmail) GetCc() []string
- func (x *ReceiverEmail) GetContent() string
- func (x *ReceiverEmail) GetContentType() string
- func (x *ReceiverEmail) GetSubject() string
- func (x *ReceiverEmail) GetTemplate() string
- func (x *ReceiverEmail) GetTo() string
- func (*ReceiverEmail) ProtoMessage()
- func (x *ReceiverEmail) ProtoReflect() protoreflect.Message
- func (x *ReceiverEmail) Reset()
- func (x *ReceiverEmail) String() string
- type ReceiverHook
- func (*ReceiverHook) Descriptor() ([]byte, []int)deprecated
- func (x *ReceiverHook) GetContent() string
- func (x *ReceiverHook) GetSecret() string
- func (x *ReceiverHook) GetTemplate() string
- func (x *ReceiverHook) GetType() string
- func (x *ReceiverHook) GetWebhook() string
- func (*ReceiverHook) ProtoMessage()
- func (x *ReceiverHook) ProtoReflect() protoreflect.Message
- func (x *ReceiverHook) Reset()
- func (x *ReceiverHook) String() string
- type ReceiverPhone
- type ReceiverPhone_Call
- type ReceiverPhone_Sms
- type Redis
- func (*Redis) Descriptor() ([]byte, []int)deprecated
- func (x *Redis) GetAddr() string
- func (x *Redis) GetDb() uint32
- func (x *Redis) GetDialTimeout() *durationpb.Duration
- func (x *Redis) GetNetwork() string
- func (x *Redis) GetPassword() string
- func (x *Redis) GetReadTimeout() *durationpb.Duration
- func (x *Redis) GetWriteTimeout() *durationpb.Duration
- func (*Redis) ProtoMessage()
- func (x *Redis) ProtoReflect() protoreflect.Message
- func (x *Redis) Reset()
- func (x *Redis) String() string
- type SLogConfig
- type Server
- func (*Server) Descriptor() ([]byte, []int)deprecated
- func (x *Server) GetGrpcEndpoint() string
- func (x *Server) GetHttpEndpoint() string
- func (x *Server) GetMetadata() map[string]string
- func (x *Server) GetName() string
- func (x *Server) GetNetwork() string
- func (x *Server) GetSecret() string
- func (x *Server) GetStartTime() string
- func (x *Server) GetUpTime() string
- func (*Server) ProtoMessage()
- func (x *Server) ProtoReflect() protoreflect.Message
- func (x *Server) Reset()
- func (x *Server) String() string
- type TencentOss
- func (*TencentOss) Descriptor() ([]byte, []int)deprecated
- func (x *TencentOss) GetBucketName() string
- func (x *TencentOss) GetBucketURL() string
- func (x *TencentOss) GetExpiry() int64
- func (x *TencentOss) GetIsPublic() bool
- func (x *TencentOss) GetRegion() string
- func (x *TencentOss) GetSecretID() string
- func (x *TencentOss) GetSecretKey() string
- func (*TencentOss) ProtoMessage()
- func (x *TencentOss) ProtoReflect() protoreflect.Message
- func (x *TencentOss) Reset()
- func (x *TencentOss) String() string
- type Tracer
- type ZapLogConfig
Constants ¶
This section is empty.
Variables ¶
var File_conf_conf_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type AliOss ¶
type AliOss struct { Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` AccessKeyID string `protobuf:"bytes,2,opt,name=accessKeyID,proto3" json:"accessKeyID,omitempty"` AccessKeySecret string `protobuf:"bytes,3,opt,name=accessKeySecret,proto3" json:"accessKeySecret,omitempty"` BucketName string `protobuf:"bytes,4,opt,name=bucketName,proto3" json:"bucketName,omitempty"` // contains filtered or unexported fields }
ali oss
func (*AliOss) Descriptor
deprecated
func (*AliOss) GetAccessKeyID ¶
func (*AliOss) GetAccessKeySecret ¶
func (*AliOss) GetBucketName ¶
func (*AliOss) GetEndpoint ¶
func (*AliOss) ProtoMessage ¶
func (*AliOss) ProtoMessage()
func (*AliOss) ProtoReflect ¶
func (x *AliOss) ProtoReflect() protoreflect.Message
type AliYunLogConfig ¶
type AliYunLogConfig struct { AccessKey string `protobuf:"bytes,1,opt,name=accessKey,proto3" json:"accessKey,omitempty"` AccessSecret string `protobuf:"bytes,2,opt,name=accessSecret,proto3" json:"accessSecret,omitempty"` Endpoint string `protobuf:"bytes,3,opt,name=endpoint,proto3" json:"endpoint,omitempty"` SecurityToken string `protobuf:"bytes,4,opt,name=securityToken,proto3" json:"securityToken,omitempty"` ExpireTime string `protobuf:"bytes,5,opt,name=expireTime,proto3" json:"expireTime,omitempty"` Project string `protobuf:"bytes,6,opt,name=project,proto3" json:"project,omitempty"` Store string `protobuf:"bytes,7,opt,name=store,proto3" json:"store,omitempty"` // 是否结构化 Json bool `protobuf:"varint,8,opt,name=json,proto3" json:"json,omitempty"` // contains filtered or unexported fields }
func (*AliYunLogConfig) Descriptor
deprecated
func (*AliYunLogConfig) Descriptor() ([]byte, []int)
Deprecated: Use AliYunLogConfig.ProtoReflect.Descriptor instead.
func (*AliYunLogConfig) GetAccessKey ¶
func (x *AliYunLogConfig) GetAccessKey() string
func (*AliYunLogConfig) GetAccessSecret ¶
func (x *AliYunLogConfig) GetAccessSecret() string
func (*AliYunLogConfig) GetEndpoint ¶
func (x *AliYunLogConfig) GetEndpoint() string
func (*AliYunLogConfig) GetExpireTime ¶
func (x *AliYunLogConfig) GetExpireTime() string
func (*AliYunLogConfig) GetJson ¶
func (x *AliYunLogConfig) GetJson() bool
func (*AliYunLogConfig) GetProject ¶
func (x *AliYunLogConfig) GetProject() string
func (*AliYunLogConfig) GetSecurityToken ¶
func (x *AliYunLogConfig) GetSecurityToken() string
func (*AliYunLogConfig) GetStore ¶
func (x *AliYunLogConfig) GetStore() string
func (*AliYunLogConfig) ProtoMessage ¶
func (*AliYunLogConfig) ProtoMessage()
func (*AliYunLogConfig) ProtoReflect ¶
func (x *AliYunLogConfig) ProtoReflect() protoreflect.Message
func (*AliYunLogConfig) Reset ¶
func (x *AliYunLogConfig) Reset()
func (*AliYunLogConfig) String ¶
func (x *AliYunLogConfig) String() string
type Cache ¶
type Cache struct { // redis nuts-db free Driver string `protobuf:"bytes,1,opt,name=driver,proto3" json:"driver,omitempty"` // redis配置 Redis *Redis `protobuf:"bytes,2,opt,name=redis,proto3" json:"redis,omitempty"` // nuts db配置 NutsDB *NutsDB `protobuf:"bytes,3,opt,name=nutsDB,proto3" json:"nutsDB,omitempty"` // 内存缓存配置 Free *Free `protobuf:"bytes,4,opt,name=free,proto3" json:"free,omitempty"` // contains filtered or unexported fields }
缓存配置
func (*Cache) Descriptor
deprecated
func (*Cache) ProtoMessage ¶
func (*Cache) ProtoMessage()
func (*Cache) ProtoReflect ¶
func (x *Cache) ProtoReflect() protoreflect.Message
type Database ¶
type Database struct { // 驱动, 支持gorm即可 Driver string `protobuf:"bytes,1,opt,name=driver,proto3" json:"driver,omitempty"` // 数据库连接串 Dsn string `protobuf:"bytes,2,opt,name=dsn,proto3" json:"dsn,omitempty"` // 是否开启调试 Debug bool `protobuf:"varint,3,opt,name=debug,proto3" json:"debug,omitempty"` // contains filtered or unexported fields }
数据库配置
func (*Database) Descriptor
deprecated
func (*Database) ProtoMessage ¶
func (*Database) ProtoMessage()
func (*Database) ProtoReflect ¶
func (x *Database) ProtoReflect() protoreflect.Message
type Discovery ¶
type Discovery struct { // 类型, 名称和数据源保持一致,例如etcd Driver string `protobuf:"bytes,1,opt,name=driver,proto3" json:"driver,omitempty"` // 数据源 Etcd *ETCD `protobuf:"bytes,2,opt,name=etcd,proto3" json:"etcd,omitempty"` // contains filtered or unexported fields }
服务注册发现配置
func (*Discovery) Descriptor
deprecated
func (*Discovery) ProtoMessage ¶
func (*Discovery) ProtoMessage()
func (*Discovery) ProtoReflect ¶
func (x *Discovery) ProtoReflect() protoreflect.Message
type ETCD ¶
type ETCD struct { // 端点 Endpoints []string `protobuf:"bytes,1,rep,name=endpoints,proto3" json:"endpoints,omitempty"` // 连接超时 Timeout *durationpb.Duration `protobuf:"bytes,2,opt,name=timeout,proto3,oneof" json:"timeout,omitempty"` // 用户名 Username *string `protobuf:"bytes,3,opt,name=username,proto3,oneof" json:"username,omitempty"` // 密码 Password *string `protobuf:"bytes,4,opt,name=password,proto3,oneof" json:"password,omitempty"` // contains filtered or unexported fields }
ETCD数据源配置
func (*ETCD) Descriptor
deprecated
func (*ETCD) GetEndpoints ¶
func (*ETCD) GetPassword ¶
func (*ETCD) GetTimeout ¶
func (x *ETCD) GetTimeout() *durationpb.Duration
func (*ETCD) GetUsername ¶
func (*ETCD) ProtoMessage ¶
func (*ETCD) ProtoMessage()
func (*ETCD) ProtoReflect ¶
func (x *ETCD) ProtoReflect() protoreflect.Message
type EmailConfig ¶
type EmailConfig struct { // 用户 User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // 发送的邮箱密码 Pass string `protobuf:"bytes,2,opt,name=pass,proto3" json:"pass,omitempty"` // 发送的邮箱服务器 Host string `protobuf:"bytes,3,opt,name=host,proto3" json:"host,omitempty"` // 发送的邮箱端口 Port uint32 `protobuf:"varint,4,opt,name=port,proto3" json:"port,omitempty"` // contains filtered or unexported fields }
邮件发送配置
func (*EmailConfig) Descriptor
deprecated
func (*EmailConfig) Descriptor() ([]byte, []int)
Deprecated: Use EmailConfig.ProtoReflect.Descriptor instead.
func (*EmailConfig) GetHost ¶
func (x *EmailConfig) GetHost() string
func (*EmailConfig) GetPass ¶
func (x *EmailConfig) GetPass() string
func (*EmailConfig) GetPort ¶
func (x *EmailConfig) GetPort() uint32
func (*EmailConfig) GetUser ¶
func (x *EmailConfig) GetUser() string
func (*EmailConfig) ProtoMessage ¶
func (*EmailConfig) ProtoMessage()
func (*EmailConfig) ProtoReflect ¶
func (x *EmailConfig) ProtoReflect() protoreflect.Message
func (*EmailConfig) Reset ¶
func (x *EmailConfig) Reset()
func (*EmailConfig) String ¶
func (x *EmailConfig) String() string
type FileLimit ¶
type FileLimit struct { Max int64 `protobuf:"varint,1,opt,name=max,proto3" json:"max,omitempty"` Min int64 `protobuf:"varint,2,opt,name=min,proto3" json:"min,omitempty"` // contains filtered or unexported fields }
文件大小限制
func (*FileLimit) Descriptor
deprecated
func (*FileLimit) ProtoMessage ¶
func (*FileLimit) ProtoMessage()
func (*FileLimit) ProtoReflect ¶
func (x *FileLimit) ProtoReflect() protoreflect.Message
type Free ¶
type Free struct { // 内存缓存大小 Size uint32 `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"` // contains filtered or unexported fields }
内存缓存配置
func (*Free) Descriptor
deprecated
func (*Free) ProtoMessage ¶
func (*Free) ProtoMessage()
func (*Free) ProtoReflect ¶
func (x *Free) ProtoReflect() protoreflect.Message
type GRPCServer ¶
type GRPCServer struct { // 网络类型 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"` // contains filtered or unexported fields }
grpc服务配置
func (*GRPCServer) Descriptor
deprecated
func (*GRPCServer) Descriptor() ([]byte, []int)
Deprecated: Use GRPCServer.ProtoReflect.Descriptor instead.
func (*GRPCServer) GetAddr ¶
func (x *GRPCServer) GetAddr() string
func (*GRPCServer) GetNetwork ¶
func (x *GRPCServer) GetNetwork() string
func (*GRPCServer) GetTimeout ¶
func (x *GRPCServer) GetTimeout() *durationpb.Duration
func (*GRPCServer) ProtoMessage ¶
func (*GRPCServer) ProtoMessage()
func (*GRPCServer) ProtoReflect ¶
func (x *GRPCServer) ProtoReflect() protoreflect.Message
func (*GRPCServer) Reset ¶
func (x *GRPCServer) Reset()
func (*GRPCServer) String ¶
func (x *GRPCServer) String() string
type HTTPServer ¶
type HTTPServer struct { // 网络类型 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"` // contains filtered or unexported fields }
http服务配置
func (*HTTPServer) Descriptor
deprecated
func (*HTTPServer) Descriptor() ([]byte, []int)
Deprecated: Use HTTPServer.ProtoReflect.Descriptor instead.
func (*HTTPServer) GetAddr ¶
func (x *HTTPServer) GetAddr() string
func (*HTTPServer) GetNetwork ¶
func (x *HTTPServer) GetNetwork() string
func (*HTTPServer) GetTimeout ¶
func (x *HTTPServer) GetTimeout() *durationpb.Duration
func (*HTTPServer) ProtoMessage ¶
func (*HTTPServer) ProtoMessage()
func (*HTTPServer) ProtoReflect ¶
func (x *HTTPServer) ProtoReflect() protoreflect.Message
func (*HTTPServer) Reset ¶
func (x *HTTPServer) Reset()
func (*HTTPServer) String ¶
func (x *HTTPServer) String() string
type JWT ¶
type JWT struct { // 签名密钥 SignKey string `protobuf:"bytes,1,opt,name=sign_key,json=signKey,proto3" json:"sign_key,omitempty"` // 签发者 Issuer string `protobuf:"bytes,2,opt,name=issuer,proto3" json:"issuer,omitempty"` // 有效期 Expire *durationpb.Duration `protobuf:"bytes,4,opt,name=expire,proto3" json:"expire,omitempty"` // 被允许的请求 AllowList []string `protobuf:"bytes,5,rep,name=allow_list,json=allowList,proto3" json:"allow_list,omitempty"` // contains filtered or unexported fields }
jwt配置
func (*JWT) Descriptor
deprecated
func (*JWT) GetAllowList ¶
func (*JWT) GetExpire ¶
func (x *JWT) GetExpire() *durationpb.Duration
func (*JWT) GetSignKey ¶
func (*JWT) ProtoMessage ¶
func (*JWT) ProtoMessage()
func (*JWT) ProtoReflect ¶
func (x *JWT) ProtoReflect() protoreflect.Message
type Jaeger ¶
type Jaeger struct { // 端点 Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` // contains filtered or unexported fields }
jaeger配置
func (*Jaeger) Descriptor
deprecated
func (*Jaeger) GetEndpoint ¶
func (*Jaeger) ProtoMessage ¶
func (*Jaeger) ProtoMessage()
func (*Jaeger) ProtoReflect ¶
func (x *Jaeger) ProtoReflect() protoreflect.Message
type LocalStorage ¶
type LocalStorage struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` DownloadPre string `protobuf:"bytes,3,opt,name=downloadPre,proto3" json:"downloadPre,omitempty"` // contains filtered or unexported fields }
local
func (*LocalStorage) Descriptor
deprecated
func (*LocalStorage) Descriptor() ([]byte, []int)
Deprecated: Use LocalStorage.ProtoReflect.Descriptor instead.
func (*LocalStorage) GetDownloadPre ¶
func (x *LocalStorage) GetDownloadPre() string
func (*LocalStorage) GetPath ¶
func (x *LocalStorage) GetPath() string
func (*LocalStorage) GetUrl ¶
func (x *LocalStorage) GetUrl() string
func (*LocalStorage) ProtoMessage ¶
func (*LocalStorage) ProtoMessage()
func (*LocalStorage) ProtoReflect ¶
func (x *LocalStorage) ProtoReflect() protoreflect.Message
func (*LocalStorage) Reset ¶
func (x *LocalStorage) Reset()
func (*LocalStorage) String ¶
func (x *LocalStorage) String() string
type Log ¶
type Log struct { // default, slog, aliyun, zap Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // 日志级别 Level string `protobuf:"bytes,2,opt,name=level,proto3" json:"level,omitempty"` // 阿里云日志 Aliyun *AliYunLogConfig `protobuf:"bytes,4,opt,name=aliyun,proto3,oneof" json:"aliyun,omitempty"` // zap日志 Zap *ZapLogConfig `protobuf:"bytes,5,opt,name=zap,proto3,oneof" json:"zap,omitempty"` // slog日志 Slog *SLogConfig `protobuf:"bytes,6,opt,name=slog,proto3,oneof" json:"slog,omitempty"` // loki日志 Loki *LokiLogConfig `protobuf:"bytes,7,opt,name=loki,proto3,oneof" json:"loki,omitempty"` // contains filtered or unexported fields }
func (*Log) Descriptor
deprecated
func (*Log) GetAliyun ¶
func (x *Log) GetAliyun() *AliYunLogConfig
func (*Log) GetLoki ¶
func (x *Log) GetLoki() *LokiLogConfig
func (*Log) GetSlog ¶
func (x *Log) GetSlog() *SLogConfig
func (*Log) GetZap ¶
func (x *Log) GetZap() *ZapLogConfig
func (*Log) ProtoMessage ¶
func (*Log) ProtoMessage()
func (*Log) ProtoReflect ¶
func (x *Log) ProtoReflect() protoreflect.Message
type LokiLogConfig ¶
type LokiLogConfig struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` App string `protobuf:"bytes,2,opt,name=app,proto3" json:"app,omitempty"` // contains filtered or unexported fields }
func (*LokiLogConfig) Descriptor
deprecated
func (*LokiLogConfig) Descriptor() ([]byte, []int)
Deprecated: Use LokiLogConfig.ProtoReflect.Descriptor instead.
func (*LokiLogConfig) GetApp ¶
func (x *LokiLogConfig) GetApp() string
func (*LokiLogConfig) GetUrl ¶
func (x *LokiLogConfig) GetUrl() string
func (*LokiLogConfig) ProtoMessage ¶
func (*LokiLogConfig) ProtoMessage()
func (*LokiLogConfig) ProtoReflect ¶
func (x *LokiLogConfig) ProtoReflect() protoreflect.Message
func (*LokiLogConfig) Reset ¶
func (x *LokiLogConfig) Reset()
func (*LokiLogConfig) String ¶
func (x *LokiLogConfig) String() string
type MicroServer ¶
type MicroServer struct { // 服务地址 Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` // 密钥 Secret *string `protobuf:"bytes,2,opt,name=secret,proto3,oneof" json:"secret,omitempty"` // 超时时间 Timeout *durationpb.Duration `protobuf:"bytes,3,opt,name=timeout,proto3,oneof" json:"timeout,omitempty"` // 网络类型, http, https, grpc Network string `protobuf:"bytes,4,opt,name=network,proto3" json:"network,omitempty"` // node版本 NodeVersion string `protobuf:"bytes,5,opt,name=nodeVersion,proto3" json:"nodeVersion,omitempty"` // name 服务名 Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
微服务配置
func (*MicroServer) Descriptor
deprecated
func (*MicroServer) Descriptor() ([]byte, []int)
Deprecated: Use MicroServer.ProtoReflect.Descriptor instead.
func (*MicroServer) GetEndpoint ¶
func (x *MicroServer) GetEndpoint() string
func (*MicroServer) GetName ¶
func (x *MicroServer) GetName() string
func (*MicroServer) GetNetwork ¶
func (x *MicroServer) GetNetwork() string
func (*MicroServer) GetNodeVersion ¶
func (x *MicroServer) GetNodeVersion() string
func (*MicroServer) GetSecret ¶
func (x *MicroServer) GetSecret() string
func (*MicroServer) GetTimeout ¶
func (x *MicroServer) GetTimeout() *durationpb.Duration
func (*MicroServer) ProtoMessage ¶
func (*MicroServer) ProtoMessage()
func (*MicroServer) ProtoReflect ¶
func (x *MicroServer) ProtoReflect() protoreflect.Message
func (*MicroServer) Reset ¶
func (x *MicroServer) Reset()
func (*MicroServer) String ¶
func (x *MicroServer) String() string
type Minio ¶
type Minio struct { Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` AccessKeyID string `protobuf:"bytes,2,opt,name=accessKeyID,proto3" json:"accessKeyID,omitempty"` AccessKeySecret string `protobuf:"bytes,3,opt,name=accessKeySecret,proto3" json:"accessKeySecret,omitempty"` BucketName string `protobuf:"bytes,4,opt,name=bucketName,proto3" json:"bucketName,omitempty"` // 是否使用https Secure bool `protobuf:"varint,5,opt,name=secure,proto3" json:"secure,omitempty"` // contains filtered or unexported fields }
minio
func (*Minio) Descriptor
deprecated
func (*Minio) GetAccessKeyID ¶
func (*Minio) GetAccessKeySecret ¶
func (*Minio) GetBucketName ¶
func (*Minio) GetEndpoint ¶
func (*Minio) ProtoMessage ¶
func (*Minio) ProtoMessage()
func (*Minio) ProtoReflect ¶
func (x *Minio) ProtoReflect() protoreflect.Message
type NutsDB ¶
type NutsDB struct { // 数据库路径 Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // 缓存桶 Bucket string `protobuf:"bytes,2,opt,name=bucket,proto3" json:"bucket,omitempty"` // contains filtered or unexported fields }
nuts db配置
func (*NutsDB) Descriptor
deprecated
func (*NutsDB) ProtoMessage ¶
func (*NutsDB) ProtoMessage()
func (*NutsDB) ProtoReflect ¶
func (x *NutsDB) ProtoReflect() protoreflect.Message
type Oss ¶
type Oss struct { // oss类型 Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Minio *Minio `protobuf:"bytes,2,opt,name=minio,proto3" json:"minio,omitempty"` TencentOss *TencentOss `protobuf:"bytes,3,opt,name=tencentOss,proto3" json:"tencentOss,omitempty"` AliOss *AliOss `protobuf:"bytes,4,opt,name=aliOss,proto3" json:"aliOss,omitempty"` Local *LocalStorage `protobuf:"bytes,5,opt,name=local,proto3" json:"local,omitempty"` // 文件大小 LimitSize map[string]*FileLimit `` /* 159-byte string literal not displayed */ // 是否打开oss Open bool `protobuf:"varint,7,opt,name=open,proto3" json:"open,omitempty"` // contains filtered or unexported fields }
func (*Oss) Descriptor
deprecated
func (*Oss) GetLimitSize ¶
func (*Oss) GetLocal ¶
func (x *Oss) GetLocal() *LocalStorage
func (*Oss) GetTencentOss ¶
func (x *Oss) GetTencentOss() *TencentOss
func (*Oss) ProtoMessage ¶
func (*Oss) ProtoMessage()
func (*Oss) ProtoReflect ¶
func (x *Oss) ProtoReflect() protoreflect.Message
type Receiver ¶
type Receiver struct { Hooks []*ReceiverHook `protobuf:"bytes,1,rep,name=hooks,proto3" json:"hooks,omitempty"` Phones []*ReceiverPhone `protobuf:"bytes,2,rep,name=phones,proto3" json:"phones,omitempty"` Emails []*ReceiverEmail `protobuf:"bytes,3,rep,name=emails,proto3" json:"emails,omitempty"` EmailConfig *EmailConfig `protobuf:"bytes,4,opt,name=emailConfig,proto3" json:"emailConfig,omitempty"` // contains filtered or unexported fields }
func (*Receiver) Descriptor
deprecated
func (*Receiver) GetEmailConfig ¶
func (x *Receiver) GetEmailConfig() *EmailConfig
func (*Receiver) GetEmails ¶
func (x *Receiver) GetEmails() []*ReceiverEmail
func (*Receiver) GetHooks ¶
func (x *Receiver) GetHooks() []*ReceiverHook
func (*Receiver) GetPhones ¶
func (x *Receiver) GetPhones() []*ReceiverPhone
func (*Receiver) ProtoMessage ¶
func (*Receiver) ProtoMessage()
func (*Receiver) ProtoReflect ¶
func (x *Receiver) ProtoReflect() protoreflect.Message
type ReceiverEmail ¶
type ReceiverEmail struct { // 发送给谁 To string `protobuf:"bytes,1,opt,name=to,proto3" json:"to,omitempty"` // 发送的主题 Subject string `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"` // 发送的内容, 优先级高于模板 Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` // 发送的模板,内容字段为空时, 以数据填充模板后发送 Template string `protobuf:"bytes,4,opt,name=template,proto3" json:"template,omitempty"` // 抄送对象 Cc []string `protobuf:"bytes,5,rep,name=cc,proto3" json:"cc,omitempty"` // 附件URL,一般为oss地址 AttachUrl []string `protobuf:"bytes,6,rep,name=attachUrl,proto3" json:"attachUrl,omitempty"` // 发送的内容类型 ContentType string `protobuf:"bytes,7,opt,name=contentType,proto3" json:"contentType,omitempty"` // contains filtered or unexported fields }
邮件目标
func (*ReceiverEmail) Descriptor
deprecated
func (*ReceiverEmail) Descriptor() ([]byte, []int)
Deprecated: Use ReceiverEmail.ProtoReflect.Descriptor instead.
func (*ReceiverEmail) GetAttachUrl ¶
func (x *ReceiverEmail) GetAttachUrl() []string
func (*ReceiverEmail) GetCc ¶
func (x *ReceiverEmail) GetCc() []string
func (*ReceiverEmail) GetContent ¶
func (x *ReceiverEmail) GetContent() string
func (*ReceiverEmail) GetContentType ¶
func (x *ReceiverEmail) GetContentType() string
func (*ReceiverEmail) GetSubject ¶
func (x *ReceiverEmail) GetSubject() string
func (*ReceiverEmail) GetTemplate ¶
func (x *ReceiverEmail) GetTemplate() string
func (*ReceiverEmail) GetTo ¶
func (x *ReceiverEmail) GetTo() string
func (*ReceiverEmail) ProtoMessage ¶
func (*ReceiverEmail) ProtoMessage()
func (*ReceiverEmail) ProtoReflect ¶
func (x *ReceiverEmail) ProtoReflect() protoreflect.Message
func (*ReceiverEmail) Reset ¶
func (x *ReceiverEmail) Reset()
func (*ReceiverEmail) String ¶
func (x *ReceiverEmail) String() string
type ReceiverHook ¶
type ReceiverHook struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // hook地址 Webhook string `protobuf:"bytes,2,opt,name=webhook,proto3" json:"webhook,omitempty"` // 钉钉消息json内容,支持模板, 优先级高于模板 Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` // 模板 Template string `protobuf:"bytes,4,opt,name=template,proto3" json:"template,omitempty"` // 加签秘钥 Secret string `protobuf:"bytes,5,opt,name=secret,proto3" json:"secret,omitempty"` // contains filtered or unexported fields }
hook目标
func (*ReceiverHook) Descriptor
deprecated
func (*ReceiverHook) Descriptor() ([]byte, []int)
Deprecated: Use ReceiverHook.ProtoReflect.Descriptor instead.
func (*ReceiverHook) GetContent ¶
func (x *ReceiverHook) GetContent() string
func (*ReceiverHook) GetSecret ¶
func (x *ReceiverHook) GetSecret() string
func (*ReceiverHook) GetTemplate ¶
func (x *ReceiverHook) GetTemplate() string
func (*ReceiverHook) GetType ¶
func (x *ReceiverHook) GetType() string
func (*ReceiverHook) GetWebhook ¶
func (x *ReceiverHook) GetWebhook() string
func (*ReceiverHook) ProtoMessage ¶
func (*ReceiverHook) ProtoMessage()
func (*ReceiverHook) ProtoReflect ¶
func (x *ReceiverHook) ProtoReflect() protoreflect.Message
func (*ReceiverHook) Reset ¶
func (x *ReceiverHook) Reset()
func (*ReceiverHook) String ¶
func (x *ReceiverHook) String() string
type ReceiverPhone ¶
type ReceiverPhone struct {
// contains filtered or unexported fields
}
电话目标
func (*ReceiverPhone) Descriptor
deprecated
func (*ReceiverPhone) Descriptor() ([]byte, []int)
Deprecated: Use ReceiverPhone.ProtoReflect.Descriptor instead.
func (*ReceiverPhone) ProtoMessage ¶
func (*ReceiverPhone) ProtoMessage()
func (*ReceiverPhone) ProtoReflect ¶
func (x *ReceiverPhone) ProtoReflect() protoreflect.Message
func (*ReceiverPhone) Reset ¶
func (x *ReceiverPhone) Reset()
func (*ReceiverPhone) String ¶
func (x *ReceiverPhone) String() string
type ReceiverPhone_Call ¶
type ReceiverPhone_Call struct {
// contains filtered or unexported fields
}
拨打电话
func (*ReceiverPhone_Call) Descriptor
deprecated
func (*ReceiverPhone_Call) Descriptor() ([]byte, []int)
Deprecated: Use ReceiverPhone_Call.ProtoReflect.Descriptor instead.
func (*ReceiverPhone_Call) ProtoMessage ¶
func (*ReceiverPhone_Call) ProtoMessage()
func (*ReceiverPhone_Call) ProtoReflect ¶
func (x *ReceiverPhone_Call) ProtoReflect() protoreflect.Message
func (*ReceiverPhone_Call) Reset ¶
func (x *ReceiverPhone_Call) Reset()
func (*ReceiverPhone_Call) String ¶
func (x *ReceiverPhone_Call) String() string
type ReceiverPhone_Sms ¶
type ReceiverPhone_Sms struct {
// contains filtered or unexported fields
}
短信
func (*ReceiverPhone_Sms) Descriptor
deprecated
func (*ReceiverPhone_Sms) Descriptor() ([]byte, []int)
Deprecated: Use ReceiverPhone_Sms.ProtoReflect.Descriptor instead.
func (*ReceiverPhone_Sms) ProtoMessage ¶
func (*ReceiverPhone_Sms) ProtoMessage()
func (*ReceiverPhone_Sms) ProtoReflect ¶
func (x *ReceiverPhone_Sms) ProtoReflect() protoreflect.Message
func (*ReceiverPhone_Sms) Reset ¶
func (x *ReceiverPhone_Sms) Reset()
func (*ReceiverPhone_Sms) String ¶
func (x *ReceiverPhone_Sms) String() string
type Redis ¶
type Redis struct { // 网络类型 Network string `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"` // 地址 Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"` // 读写超时 ReadTimeout *durationpb.Duration `protobuf:"bytes,3,opt,name=read_timeout,json=readTimeout,proto3" json:"read_timeout,omitempty"` WriteTimeout *durationpb.Duration `protobuf:"bytes,4,opt,name=write_timeout,json=writeTimeout,proto3" json:"write_timeout,omitempty"` // 密码 Password string `protobuf:"bytes,5,opt,name=password,proto3" json:"password,omitempty"` // 数据库 Db uint32 `protobuf:"varint,6,opt,name=db,proto3" json:"db,omitempty"` // 连接超时 DialTimeout *durationpb.Duration `protobuf:"bytes,7,opt,name=dial_timeout,json=dialTimeout,proto3" json:"dial_timeout,omitempty"` // contains filtered or unexported fields }
redis配置
func (*Redis) Descriptor
deprecated
func (*Redis) GetDialTimeout ¶
func (x *Redis) GetDialTimeout() *durationpb.Duration
func (*Redis) GetNetwork ¶
func (*Redis) GetPassword ¶
func (*Redis) GetReadTimeout ¶
func (x *Redis) GetReadTimeout() *durationpb.Duration
func (*Redis) GetWriteTimeout ¶
func (x *Redis) GetWriteTimeout() *durationpb.Duration
func (*Redis) ProtoMessage ¶
func (*Redis) ProtoMessage()
func (*Redis) ProtoReflect ¶
func (x *Redis) ProtoReflect() protoreflect.Message
type SLogConfig ¶
type SLogConfig struct { Json bool `protobuf:"varint,1,opt,name=json,proto3" json:"json,omitempty"` // contains filtered or unexported fields }
func (*SLogConfig) Descriptor
deprecated
func (*SLogConfig) Descriptor() ([]byte, []int)
Deprecated: Use SLogConfig.ProtoReflect.Descriptor instead.
func (*SLogConfig) GetJson ¶
func (x *SLogConfig) GetJson() bool
func (*SLogConfig) ProtoMessage ¶
func (*SLogConfig) ProtoMessage()
func (*SLogConfig) ProtoReflect ¶
func (x *SLogConfig) ProtoReflect() protoreflect.Message
func (*SLogConfig) Reset ¶
func (x *SLogConfig) Reset()
func (*SLogConfig) String ¶
func (x *SLogConfig) String() string
type Server ¶
type Server struct { // 服务名称 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // 服务元数据 Metadata map[string]string `` /* 157-byte string literal not displayed */ // 服务http地址 HttpEndpoint string `protobuf:"bytes,3,opt,name=httpEndpoint,proto3" json:"httpEndpoint,omitempty"` // grpc地址 GrpcEndpoint string `protobuf:"bytes,4,opt,name=grpcEndpoint,proto3" json:"grpcEndpoint,omitempty"` // 网络类型 Network string `protobuf:"bytes,5,opt,name=network,proto3" json:"network,omitempty"` Secret *string `protobuf:"bytes,6,opt,name=secret,proto3,oneof" json:"secret,omitempty"` // 上线时间 StartTime string `protobuf:"bytes,7,opt,name=startTime,proto3" json:"startTime,omitempty"` // 在线时长 UpTime string `protobuf:"bytes,8,opt,name=upTime,proto3" json:"upTime,omitempty"` // contains filtered or unexported fields }
服务配置
func (*Server) Descriptor
deprecated
func (*Server) GetGrpcEndpoint ¶
func (*Server) GetHttpEndpoint ¶
func (*Server) GetMetadata ¶
func (*Server) GetNetwork ¶
func (*Server) GetStartTime ¶ added in v1.1.29
func (*Server) ProtoMessage ¶
func (*Server) ProtoMessage()
func (*Server) ProtoReflect ¶
func (x *Server) ProtoReflect() protoreflect.Message
type TencentOss ¶
type TencentOss struct { BucketURL string `protobuf:"bytes,1,opt,name=bucketURL,proto3" json:"bucketURL,omitempty"` SecretID string `protobuf:"bytes,2,opt,name=secretID,proto3" json:"secretID,omitempty"` SecretKey string `protobuf:"bytes,3,opt,name=secretKey,proto3" json:"secretKey,omitempty"` Expiry int64 `protobuf:"varint,4,opt,name=expiry,proto3" json:"expiry,omitempty"` BucketName string `protobuf:"bytes,5,opt,name=bucketName,proto3" json:"bucketName,omitempty"` IsPublic bool `protobuf:"varint,6,opt,name=isPublic,proto3" json:"isPublic,omitempty"` Region string `protobuf:"bytes,7,opt,name=region,proto3" json:"region,omitempty"` // contains filtered or unexported fields }
tencent oss
func (*TencentOss) Descriptor
deprecated
func (*TencentOss) Descriptor() ([]byte, []int)
Deprecated: Use TencentOss.ProtoReflect.Descriptor instead.
func (*TencentOss) GetBucketName ¶
func (x *TencentOss) GetBucketName() string
func (*TencentOss) GetBucketURL ¶
func (x *TencentOss) GetBucketURL() string
func (*TencentOss) GetExpiry ¶
func (x *TencentOss) GetExpiry() int64
func (*TencentOss) GetIsPublic ¶
func (x *TencentOss) GetIsPublic() bool
func (*TencentOss) GetRegion ¶
func (x *TencentOss) GetRegion() string
func (*TencentOss) GetSecretID ¶
func (x *TencentOss) GetSecretID() string
func (*TencentOss) GetSecretKey ¶
func (x *TencentOss) GetSecretKey() string
func (*TencentOss) ProtoMessage ¶
func (*TencentOss) ProtoMessage()
func (*TencentOss) ProtoReflect ¶
func (x *TencentOss) ProtoReflect() protoreflect.Message
func (*TencentOss) Reset ¶
func (x *TencentOss) Reset()
func (*TencentOss) String ¶
func (x *TencentOss) String() string
type Tracer ¶
type Tracer struct { // 驱动, 支持jaeger Driver string `protobuf:"bytes,1,opt,name=driver,proto3" json:"driver,omitempty"` // jaeger配置 Jaeger *Jaeger `protobuf:"bytes,2,opt,name=jaeger,proto3" json:"jaeger,omitempty"` // contains filtered or unexported fields }
链路追踪配置
func (*Tracer) Descriptor
deprecated
func (*Tracer) ProtoMessage ¶
func (*Tracer) ProtoMessage()
func (*Tracer) ProtoReflect ¶
func (x *Tracer) ProtoReflect() protoreflect.Message
type ZapLogConfig ¶
type ZapLogConfig struct { // 是否结构化 Json bool `protobuf:"varint,1,opt,name=json,proto3" json:"json,omitempty"` // contains filtered or unexported fields }
func (*ZapLogConfig) Descriptor
deprecated
func (*ZapLogConfig) Descriptor() ([]byte, []int)
Deprecated: Use ZapLogConfig.ProtoReflect.Descriptor instead.
func (*ZapLogConfig) GetJson ¶
func (x *ZapLogConfig) GetJson() bool
func (*ZapLogConfig) ProtoMessage ¶
func (*ZapLogConfig) ProtoMessage()
func (*ZapLogConfig) ProtoReflect ¶
func (x *ZapLogConfig) ProtoReflect() protoreflect.Message
func (*ZapLogConfig) Reset ¶
func (x *ZapLogConfig) Reset()
func (*ZapLogConfig) String ¶
func (x *ZapLogConfig) String() string