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 AsymmetricEncryptionConfig
- func (*AsymmetricEncryptionConfig) Descriptor() ([]byte, []int)deprecated
- func (x *AsymmetricEncryptionConfig) GetPrivateKey() string
- func (x *AsymmetricEncryptionConfig) GetPublicKey() string
- func (*AsymmetricEncryptionConfig) ProtoMessage()
- func (x *AsymmetricEncryptionConfig) ProtoReflect() protoreflect.Message
- func (x *AsymmetricEncryptionConfig) Reset()
- func (x *AsymmetricEncryptionConfig) String() string
- type Cache
- 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 Elasticsearch
- func (*Elasticsearch) Descriptor() ([]byte, []int)deprecated
- func (x *Elasticsearch) GetApiKey() string
- func (x *Elasticsearch) GetCloudId() string
- func (x *Elasticsearch) GetEndpoint() string
- func (x *Elasticsearch) GetPassword() string
- func (x *Elasticsearch) GetSearchIndex() string
- func (x *Elasticsearch) GetServiceToken() string
- func (x *Elasticsearch) GetUsername() string
- func (*Elasticsearch) ProtoMessage()
- func (x *Elasticsearch) ProtoReflect() protoreflect.Message
- func (x *Elasticsearch) Reset()
- func (x *Elasticsearch) 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 Event
- func (*Event) Descriptor() ([]byte, []int)deprecated
- func (x *Event) GetKafka() *Kafka
- func (x *Event) GetMqtt() *MQTT
- func (x *Event) GetRocketMQ() *RocketMQ
- func (x *Event) GetType() string
- func (*Event) ProtoMessage()
- func (x *Event) ProtoReflect() protoreflect.Message
- func (x *Event) Reset()
- func (x *Event) 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 Kafka
- func (*Kafka) Descriptor() ([]byte, []int)deprecated
- func (x *Kafka) GetBrokers() string
- func (x *Kafka) GetGroupName() string
- func (x *Kafka) GetPassword() string
- func (x *Kafka) GetSaslEnable() bool
- func (x *Kafka) GetStrategy() string
- func (x *Kafka) GetTopic() string
- func (x *Kafka) GetUsername() string
- func (x *Kafka) GetVersion() string
- func (*Kafka) ProtoMessage()
- func (x *Kafka) ProtoReflect() protoreflect.Message
- func (x *Kafka) Reset()
- func (x *Kafka) String() string
- 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 LogQuery
- func (*LogQuery) Descriptor() ([]byte, []int)deprecated
- func (x *LogQuery) GetAliYun() *AliYunLogConfig
- func (x *LogQuery) GetEs() *Elasticsearch
- func (x *LogQuery) GetLoki() *Loki
- func (x *LogQuery) GetType() string
- func (*LogQuery) ProtoMessage()
- func (x *LogQuery) ProtoReflect() protoreflect.Message
- func (x *LogQuery) Reset()
- func (x *LogQuery) String() string
- type Loki
- func (*Loki) Descriptor() ([]byte, []int)deprecated
- func (x *Loki) GetEndpoint() string
- func (x *Loki) GetLimit() int64
- func (x *Loki) GetPassword() string
- func (x *Loki) GetUsername() string
- func (*Loki) ProtoMessage()
- func (x *Loki) ProtoReflect() protoreflect.Message
- func (x *Loki) Reset()
- func (x *Loki) 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 MQTT
- func (*MQTT) Descriptor() ([]byte, []int)deprecated
- func (x *MQTT) GetAutoReconnect() bool
- func (x *MQTT) GetBroker() string
- func (x *MQTT) GetClientId() string
- func (x *MQTT) GetPassword() string
- func (x *MQTT) GetQos() int32
- func (x *MQTT) GetUsername() string
- func (*MQTT) ProtoMessage()
- func (x *MQTT) ProtoReflect() protoreflect.Message
- func (x *MQTT) Reset()
- func (x *MQTT) 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 OllamaConfig
- func (*OllamaConfig) Descriptor() ([]byte, []int)deprecated
- func (x *OllamaConfig) GetAuth() string
- func (x *OllamaConfig) GetContextSize() uint32
- func (x *OllamaConfig) GetModel() string
- func (x *OllamaConfig) GetType() string
- func (x *OllamaConfig) GetUrl() string
- func (*OllamaConfig) ProtoMessage()
- func (x *OllamaConfig) ProtoReflect() protoreflect.Message
- func (x *OllamaConfig) Reset()
- func (x *OllamaConfig) String() string
- 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 (x *Receiver) GetTimeEngines() []*TimeEngine
- 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 RocketMQ
- func (*RocketMQ) Descriptor() ([]byte, []int)deprecated
- func (x *RocketMQ) GetAccessKey() string
- func (x *RocketMQ) GetEndpoint() string
- func (x *RocketMQ) GetGroupName() string
- func (x *RocketMQ) GetNamespace() string
- func (x *RocketMQ) GetRegion() string
- func (x *RocketMQ) GetSecretKey() string
- func (*RocketMQ) ProtoMessage()
- func (x *RocketMQ) ProtoReflect() protoreflect.Message
- func (x *RocketMQ) Reset()
- func (x *RocketMQ) 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 SymmetricEncryptionConfig
- func (*SymmetricEncryptionConfig) Descriptor() ([]byte, []int)deprecated
- func (x *SymmetricEncryptionConfig) GetIv() string
- func (x *SymmetricEncryptionConfig) GetKey() string
- func (*SymmetricEncryptionConfig) ProtoMessage()
- func (x *SymmetricEncryptionConfig) ProtoReflect() protoreflect.Message
- func (x *SymmetricEncryptionConfig) Reset()
- func (x *SymmetricEncryptionConfig) 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 TimeEngine
- func (*TimeEngine) Descriptor() ([]byte, []int)deprecated
- func (x *TimeEngine) GetName() string
- func (x *TimeEngine) GetRules() []*TimeEngineRule
- func (*TimeEngine) ProtoMessage()
- func (x *TimeEngine) ProtoReflect() protoreflect.Message
- func (x *TimeEngine) Reset()
- func (x *TimeEngine) String() string
- type TimeEngineRule
- func (*TimeEngineRule) Descriptor() ([]byte, []int)deprecated
- func (x *TimeEngineRule) GetCategory() string
- func (x *TimeEngineRule) GetName() string
- func (x *TimeEngineRule) GetRule() []int32
- func (*TimeEngineRule) ProtoMessage()
- func (x *TimeEngineRule) ProtoReflect() protoreflect.Message
- func (x *TimeEngineRule) Reset()
- func (x *TimeEngineRule) 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 AsymmetricEncryptionConfig ¶ added in v1.2.0
type AsymmetricEncryptionConfig struct {
// 公钥
PublicKey string `protobuf:"bytes,1,opt,name=publicKey,proto3" json:"publicKey,omitempty"`
// 私钥
PrivateKey string `protobuf:"bytes,2,opt,name=privateKey,proto3" json:"privateKey,omitempty"`
// contains filtered or unexported fields
}
非对称加密配置
func (*AsymmetricEncryptionConfig) Descriptor
deprecated
added in
v1.2.0
func (*AsymmetricEncryptionConfig) Descriptor() ([]byte, []int)
Deprecated: Use AsymmetricEncryptionConfig.ProtoReflect.Descriptor instead.
func (*AsymmetricEncryptionConfig) GetPrivateKey ¶ added in v1.2.0
func (x *AsymmetricEncryptionConfig) GetPrivateKey() string
func (*AsymmetricEncryptionConfig) GetPublicKey ¶ added in v1.2.0
func (x *AsymmetricEncryptionConfig) GetPublicKey() string
func (*AsymmetricEncryptionConfig) ProtoMessage ¶ added in v1.2.0
func (*AsymmetricEncryptionConfig) ProtoMessage()
func (*AsymmetricEncryptionConfig) ProtoReflect ¶ added in v1.2.0
func (x *AsymmetricEncryptionConfig) ProtoReflect() protoreflect.Message
func (*AsymmetricEncryptionConfig) Reset ¶ added in v1.2.0
func (x *AsymmetricEncryptionConfig) Reset()
func (*AsymmetricEncryptionConfig) String ¶ added in v1.2.0
func (x *AsymmetricEncryptionConfig) String() string
type Cache ¶
type Cache struct {
// redis miniredis 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"`
// 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 Elasticsearch ¶ added in v1.2.26
type Elasticsearch struct {
// 地址
Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,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"`
// 服务token
ServiceToken string `protobuf:"bytes,4,opt,name=serviceToken,proto3" json:"serviceToken,omitempty"`
// cloud Id
CloudId string `protobuf:"bytes,5,opt,name=cloudId,proto3" json:"cloudId,omitempty"`
// api key
ApiKey string `protobuf:"bytes,6,opt,name=apiKey,proto3" json:"apiKey,omitempty"`
// 查询索引值
SearchIndex string `protobuf:"bytes,7,opt,name=searchIndex,proto3" json:"searchIndex,omitempty"`
// contains filtered or unexported fields
}
es 配置
func (*Elasticsearch) Descriptor
deprecated
added in
v1.2.26
func (*Elasticsearch) Descriptor() ([]byte, []int)
Deprecated: Use Elasticsearch.ProtoReflect.Descriptor instead.
func (*Elasticsearch) GetApiKey ¶ added in v1.2.26
func (x *Elasticsearch) GetApiKey() string
func (*Elasticsearch) GetCloudId ¶ added in v1.2.26
func (x *Elasticsearch) GetCloudId() string
func (*Elasticsearch) GetEndpoint ¶ added in v1.2.26
func (x *Elasticsearch) GetEndpoint() string
func (*Elasticsearch) GetPassword ¶ added in v1.2.26
func (x *Elasticsearch) GetPassword() string
func (*Elasticsearch) GetSearchIndex ¶ added in v1.2.26
func (x *Elasticsearch) GetSearchIndex() string
func (*Elasticsearch) GetServiceToken ¶ added in v1.2.26
func (x *Elasticsearch) GetServiceToken() string
func (*Elasticsearch) GetUsername ¶ added in v1.2.26
func (x *Elasticsearch) GetUsername() string
func (*Elasticsearch) ProtoMessage ¶ added in v1.2.26
func (*Elasticsearch) ProtoMessage()
func (*Elasticsearch) ProtoReflect ¶ added in v1.2.26
func (x *Elasticsearch) ProtoReflect() protoreflect.Message
func (*Elasticsearch) Reset ¶ added in v1.2.26
func (x *Elasticsearch) Reset()
func (*Elasticsearch) String ¶ added in v1.2.26
func (x *Elasticsearch) String() string
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 Event ¶ added in v1.2.0
type Event struct {
// mq类型
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
// rocketmq配置
RocketMQ *RocketMQ `protobuf:"bytes,2,opt,name=rocketMQ,proto3" json:"rocketMQ,omitempty"`
// mqtt配置
Mqtt *MQTT `protobuf:"bytes,3,opt,name=mqtt,proto3" json:"mqtt,omitempty"`
// kafka配置
Kafka *Kafka `protobuf:"bytes,4,opt,name=kafka,proto3" json:"kafka,omitempty"`
// contains filtered or unexported fields
}
mq配置
func (*Event) Descriptor
deprecated
added in
v1.2.0
func (*Event) GetRocketMQ ¶ added in v1.2.0
func (*Event) ProtoMessage ¶ added in v1.2.0
func (*Event) ProtoMessage()
func (*Event) ProtoReflect ¶ added in v1.2.0
func (x *Event) ProtoReflect() protoreflect.Message
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 Kafka ¶ added in v1.2.0
type Kafka struct {
// broker地址
Brokers string `protobuf:"bytes,1,opt,name=brokers,proto3" json:"brokers,omitempty"`
// topic
Topic string `protobuf:"bytes,2,opt,name=topic,proto3" json:"topic,omitempty"`
// 消费组
GroupName string `protobuf:"bytes,3,opt,name=groupName,proto3" json:"groupName,omitempty"`
// 策略
Strategy string `protobuf:"bytes,4,opt,name=strategy,proto3" json:"strategy,omitempty"`
// 用户名
Username string `protobuf:"bytes,5,opt,name=username,proto3" json:"username,omitempty"`
// 密码
Password string `protobuf:"bytes,6,opt,name=password,proto3" json:"password,omitempty"`
// 是否开启sasl
SaslEnable bool `protobuf:"varint,7,opt,name=saslEnable,proto3" json:"saslEnable,omitempty"`
// version
Version string `protobuf:"bytes,8,opt,name=version,proto3" json:"version,omitempty"`
// contains filtered or unexported fields
}
kafka配置
func (*Kafka) Descriptor
deprecated
added in
v1.2.0
func (*Kafka) GetBrokers ¶ added in v1.2.0
func (*Kafka) GetGroupName ¶ added in v1.2.0
func (*Kafka) GetPassword ¶ added in v1.2.0
func (*Kafka) GetSaslEnable ¶ added in v1.2.0
func (*Kafka) GetStrategy ¶ added in v1.2.0
func (*Kafka) GetUsername ¶ added in v1.2.0
func (*Kafka) GetVersion ¶ added in v1.2.0
func (*Kafka) ProtoMessage ¶ added in v1.2.0
func (*Kafka) ProtoMessage()
func (*Kafka) ProtoReflect ¶ added in v1.2.0
func (x *Kafka) 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 LogQuery ¶ added in v1.2.26
type LogQuery struct {
// 日志类型
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
// es
Es *Elasticsearch `protobuf:"bytes,2,opt,name=es,proto3" json:"es,omitempty"`
// loki
Loki *Loki `protobuf:"bytes,3,opt,name=loki,proto3" json:"loki,omitempty"`
// 阿里云日志
AliYun *AliYunLogConfig `protobuf:"bytes,4,opt,name=aliYun,proto3" json:"aliYun,omitempty"`
// contains filtered or unexported fields
}
日志查询配置
func (*LogQuery) Descriptor
deprecated
added in
v1.2.26
func (*LogQuery) GetAliYun ¶ added in v1.2.26
func (x *LogQuery) GetAliYun() *AliYunLogConfig
func (*LogQuery) GetEs ¶ added in v1.2.26
func (x *LogQuery) GetEs() *Elasticsearch
func (*LogQuery) ProtoMessage ¶ added in v1.2.26
func (*LogQuery) ProtoMessage()
func (*LogQuery) ProtoReflect ¶ added in v1.2.26
func (x *LogQuery) ProtoReflect() protoreflect.Message
type Loki ¶ added in v1.2.26
type Loki struct {
// 地址
Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,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"`
// limit 条数
Limit int64 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"`
// contains filtered or unexported fields
}
loki 配置
func (*Loki) Descriptor
deprecated
added in
v1.2.26
func (*Loki) GetEndpoint ¶ added in v1.2.26
func (*Loki) GetPassword ¶ added in v1.2.26
func (*Loki) GetUsername ¶ added in v1.2.26
func (*Loki) ProtoMessage ¶ added in v1.2.26
func (*Loki) ProtoMessage()
func (*Loki) ProtoReflect ¶ added in v1.2.26
func (x *Loki) 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 MQTT ¶ added in v1.2.0
type MQTT struct {
// broker地址
Broker string `protobuf:"bytes,1,opt,name=broker,proto3" json:"broker,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"`
// client
ClientId string `protobuf:"bytes,4,opt,name=clientId,proto3" json:"clientId,omitempty"`
// 是否自动重连
AutoReconnect bool `protobuf:"varint,5,opt,name=autoReconnect,proto3" json:"autoReconnect,omitempty"`
// qos 0 1 2
Qos int32 `protobuf:"varint,6,opt,name=qos,proto3" json:"qos,omitempty"`
// contains filtered or unexported fields
}
mqtt配置
func (*MQTT) Descriptor
deprecated
added in
v1.2.0
func (*MQTT) GetAutoReconnect ¶ added in v1.2.0
func (*MQTT) GetClientId ¶ added in v1.2.0
func (*MQTT) GetPassword ¶ added in v1.2.0
func (*MQTT) GetUsername ¶ added in v1.2.0
func (*MQTT) ProtoMessage ¶ added in v1.2.0
func (*MQTT) ProtoMessage()
func (*MQTT) ProtoReflect ¶ added in v1.2.0
func (x *MQTT) ProtoReflect() protoreflect.Message
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 OllamaConfig ¶ added in v1.1.45
type OllamaConfig struct {
Model string `protobuf:"bytes,1,opt,name=model,proto3" json:"model,omitempty"`
Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
Auth string `protobuf:"bytes,3,opt,name=auth,proto3" json:"auth,omitempty"`
Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
// 上下文容量
ContextSize uint32 `protobuf:"varint,5,opt,name=contextSize,proto3" json:"contextSize,omitempty"`
// contains filtered or unexported fields
}
func (*OllamaConfig) Descriptor
deprecated
added in
v1.1.45
func (*OllamaConfig) Descriptor() ([]byte, []int)
Deprecated: Use OllamaConfig.ProtoReflect.Descriptor instead.
func (*OllamaConfig) GetAuth ¶ added in v1.2.8
func (x *OllamaConfig) GetAuth() string
func (*OllamaConfig) GetContextSize ¶ added in v1.2.8
func (x *OllamaConfig) GetContextSize() uint32
func (*OllamaConfig) GetModel ¶ added in v1.1.45
func (x *OllamaConfig) GetModel() string
func (*OllamaConfig) GetType ¶ added in v1.2.8
func (x *OllamaConfig) GetType() string
func (*OllamaConfig) GetUrl ¶ added in v1.1.45
func (x *OllamaConfig) GetUrl() string
func (*OllamaConfig) ProtoMessage ¶ added in v1.1.45
func (*OllamaConfig) ProtoMessage()
func (*OllamaConfig) ProtoReflect ¶ added in v1.1.45
func (x *OllamaConfig) ProtoReflect() protoreflect.Message
func (*OllamaConfig) Reset ¶ added in v1.1.45
func (x *OllamaConfig) Reset()
func (*OllamaConfig) String ¶ added in v1.1.45
func (x *OllamaConfig) String() string
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 {
// hook 列表
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"`
// 时间引擎
TimeEngines []*TimeEngine `protobuf:"bytes,5,rep,name=timeEngines,proto3" json:"timeEngines,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) GetTimeEngines ¶ added in v1.2.14
func (x *Receiver) GetTimeEngines() []*TimeEngine
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 RocketMQ ¶ added in v1.1.38
type RocketMQ struct {
// 组名
GroupName string `protobuf:"bytes,1,opt,name=groupName,proto3" json:"groupName,omitempty"`
// 端点
Endpoint string `protobuf:"bytes,2,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
// 区域
Region string `protobuf:"bytes,3,opt,name=region,proto3" json:"region,omitempty"`
// 访问密钥
AccessKey string `protobuf:"bytes,4,opt,name=accessKey,proto3" json:"accessKey,omitempty"`
// 秘密密钥
SecretKey string `protobuf:"bytes,5,opt,name=secretKey,proto3" json:"secretKey,omitempty"`
// 命名空间
Namespace string `protobuf:"bytes,6,opt,name=namespace,proto3" json:"namespace,omitempty"`
// contains filtered or unexported fields
}
rocketmq配置
func (*RocketMQ) Descriptor
deprecated
added in
v1.1.38
func (*RocketMQ) GetAccessKey ¶ added in v1.1.38
func (*RocketMQ) GetEndpoint ¶ added in v1.1.38
func (*RocketMQ) GetGroupName ¶ added in v1.1.38
func (*RocketMQ) GetNamespace ¶ added in v1.1.38
func (*RocketMQ) GetSecretKey ¶ added in v1.1.38
func (*RocketMQ) ProtoMessage ¶ added in v1.1.38
func (*RocketMQ) ProtoMessage()
func (*RocketMQ) ProtoReflect ¶ added in v1.1.38
func (x *RocketMQ) 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 SymmetricEncryptionConfig ¶ added in v1.2.0
type SymmetricEncryptionConfig struct {
// 密钥
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// 初始化向量
Iv string `protobuf:"bytes,2,opt,name=iv,proto3" json:"iv,omitempty"`
// contains filtered or unexported fields
}
对称加密配置
func (*SymmetricEncryptionConfig) Descriptor
deprecated
added in
v1.2.0
func (*SymmetricEncryptionConfig) Descriptor() ([]byte, []int)
Deprecated: Use SymmetricEncryptionConfig.ProtoReflect.Descriptor instead.
func (*SymmetricEncryptionConfig) GetIv ¶ added in v1.2.0
func (x *SymmetricEncryptionConfig) GetIv() string
func (*SymmetricEncryptionConfig) GetKey ¶ added in v1.2.0
func (x *SymmetricEncryptionConfig) GetKey() string
func (*SymmetricEncryptionConfig) ProtoMessage ¶ added in v1.2.0
func (*SymmetricEncryptionConfig) ProtoMessage()
func (*SymmetricEncryptionConfig) ProtoReflect ¶ added in v1.2.0
func (x *SymmetricEncryptionConfig) ProtoReflect() protoreflect.Message
func (*SymmetricEncryptionConfig) Reset ¶ added in v1.2.0
func (x *SymmetricEncryptionConfig) Reset()
func (*SymmetricEncryptionConfig) String ¶ added in v1.2.0
func (x *SymmetricEncryptionConfig) String() string
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 TimeEngine ¶ added in v1.2.14
type TimeEngine struct {
// 规则名称
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// 规则
Rules []*TimeEngineRule `protobuf:"bytes,2,rep,name=rules,proto3" json:"rules,omitempty"`
// contains filtered or unexported fields
}
时间引擎配置
func (*TimeEngine) Descriptor
deprecated
added in
v1.2.14
func (*TimeEngine) Descriptor() ([]byte, []int)
Deprecated: Use TimeEngine.ProtoReflect.Descriptor instead.
func (*TimeEngine) GetName ¶ added in v1.2.14
func (x *TimeEngine) GetName() string
func (*TimeEngine) GetRules ¶ added in v1.2.14
func (x *TimeEngine) GetRules() []*TimeEngineRule
func (*TimeEngine) ProtoMessage ¶ added in v1.2.14
func (*TimeEngine) ProtoMessage()
func (*TimeEngine) ProtoReflect ¶ added in v1.2.14
func (x *TimeEngine) ProtoReflect() protoreflect.Message
func (*TimeEngine) Reset ¶ added in v1.2.14
func (x *TimeEngine) Reset()
func (*TimeEngine) String ¶ added in v1.2.14
func (x *TimeEngine) String() string
type TimeEngineRule ¶ added in v1.2.14
type TimeEngineRule struct {
// 规则名称
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// 规则类型 hourRange: 小时范围, daysOfWeek: 星期, daysOfMonth: 日期, months: 月份
Category string `protobuf:"bytes,2,opt,name=category,proto3" json:"category,omitempty"`
// 规则
Rule []int32 `protobuf:"varint,3,rep,packed,name=rule,proto3" json:"rule,omitempty"`
// contains filtered or unexported fields
}
时间引擎规则
func (*TimeEngineRule) Descriptor
deprecated
added in
v1.2.14
func (*TimeEngineRule) Descriptor() ([]byte, []int)
Deprecated: Use TimeEngineRule.ProtoReflect.Descriptor instead.
func (*TimeEngineRule) GetCategory ¶ added in v1.2.14
func (x *TimeEngineRule) GetCategory() string
func (*TimeEngineRule) GetName ¶ added in v1.2.14
func (x *TimeEngineRule) GetName() string
func (*TimeEngineRule) GetRule ¶ added in v1.2.14
func (x *TimeEngineRule) GetRule() []int32
func (*TimeEngineRule) ProtoMessage ¶ added in v1.2.14
func (*TimeEngineRule) ProtoMessage()
func (*TimeEngineRule) ProtoReflect ¶ added in v1.2.14
func (x *TimeEngineRule) ProtoReflect() protoreflect.Message
func (*TimeEngineRule) Reset ¶ added in v1.2.14
func (x *TimeEngineRule) Reset()
func (*TimeEngineRule) String ¶ added in v1.2.14
func (x *TimeEngineRule) 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