conf

package
v1.1.24 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use AliOss.ProtoReflect.Descriptor instead.

func (*AliOss) GetAccessKeyID

func (x *AliOss) GetAccessKeyID() string

func (*AliOss) GetAccessKeySecret

func (x *AliOss) GetAccessKeySecret() string

func (*AliOss) GetBucketName

func (x *AliOss) GetBucketName() string

func (*AliOss) GetEndpoint

func (x *AliOss) GetEndpoint() string

func (*AliOss) ProtoMessage

func (*AliOss) ProtoMessage()

func (*AliOss) ProtoReflect

func (x *AliOss) ProtoReflect() protoreflect.Message

func (*AliOss) Reset

func (x *AliOss) Reset()

func (*AliOss) String

func (x *AliOss) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Cache.ProtoReflect.Descriptor instead.

func (*Cache) GetDriver

func (x *Cache) GetDriver() string

func (*Cache) GetFree

func (x *Cache) GetFree() *Free

func (*Cache) GetNutsDB

func (x *Cache) GetNutsDB() *NutsDB

func (*Cache) GetRedis

func (x *Cache) GetRedis() *Redis

func (*Cache) ProtoMessage

func (*Cache) ProtoMessage()

func (*Cache) ProtoReflect

func (x *Cache) ProtoReflect() protoreflect.Message

func (*Cache) Reset

func (x *Cache) Reset()

func (*Cache) String

func (x *Cache) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Database.ProtoReflect.Descriptor instead.

func (*Database) GetDebug

func (x *Database) GetDebug() bool

func (*Database) GetDriver

func (x *Database) GetDriver() string

func (*Database) GetDsn

func (x *Database) GetDsn() string

func (*Database) ProtoMessage

func (*Database) ProtoMessage()

func (*Database) ProtoReflect

func (x *Database) ProtoReflect() protoreflect.Message

func (*Database) Reset

func (x *Database) Reset()

func (*Database) String

func (x *Database) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Discovery.ProtoReflect.Descriptor instead.

func (*Discovery) GetDriver

func (x *Discovery) GetDriver() string

func (*Discovery) GetEtcd

func (x *Discovery) GetEtcd() *ETCD

func (*Discovery) ProtoMessage

func (*Discovery) ProtoMessage()

func (*Discovery) ProtoReflect

func (x *Discovery) ProtoReflect() protoreflect.Message

func (*Discovery) Reset

func (x *Discovery) Reset()

func (*Discovery) String

func (x *Discovery) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use ETCD.ProtoReflect.Descriptor instead.

func (*ETCD) GetEndpoints

func (x *ETCD) GetEndpoints() []string

func (*ETCD) GetPassword

func (x *ETCD) GetPassword() string

func (*ETCD) GetTimeout

func (x *ETCD) GetTimeout() *durationpb.Duration

func (*ETCD) GetUsername

func (x *ETCD) GetUsername() string

func (*ETCD) ProtoMessage

func (*ETCD) ProtoMessage()

func (*ETCD) ProtoReflect

func (x *ETCD) ProtoReflect() protoreflect.Message

func (*ETCD) Reset

func (x *ETCD) Reset()

func (*ETCD) String

func (x *ETCD) 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 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) Descriptor() ([]byte, []int)

Deprecated: Use FileLimit.ProtoReflect.Descriptor instead.

func (*FileLimit) GetMax

func (x *FileLimit) GetMax() int64

func (*FileLimit) GetMin

func (x *FileLimit) GetMin() int64

func (*FileLimit) ProtoMessage

func (*FileLimit) ProtoMessage()

func (*FileLimit) ProtoReflect

func (x *FileLimit) ProtoReflect() protoreflect.Message

func (*FileLimit) Reset

func (x *FileLimit) Reset()

func (*FileLimit) String

func (x *FileLimit) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Free.ProtoReflect.Descriptor instead.

func (*Free) GetSize

func (x *Free) GetSize() uint32

func (*Free) ProtoMessage

func (*Free) ProtoMessage()

func (*Free) ProtoReflect

func (x *Free) ProtoReflect() protoreflect.Message

func (*Free) Reset

func (x *Free) Reset()

func (*Free) String

func (x *Free) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use JWT.ProtoReflect.Descriptor instead.

func (*JWT) GetAllowList

func (x *JWT) GetAllowList() []string

func (*JWT) GetExpire

func (x *JWT) GetExpire() *durationpb.Duration

func (*JWT) GetIssuer

func (x *JWT) GetIssuer() string

func (*JWT) GetSignKey

func (x *JWT) GetSignKey() string

func (*JWT) ProtoMessage

func (*JWT) ProtoMessage()

func (*JWT) ProtoReflect

func (x *JWT) ProtoReflect() protoreflect.Message

func (*JWT) Reset

func (x *JWT) Reset()

func (*JWT) String

func (x *JWT) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Jaeger.ProtoReflect.Descriptor instead.

func (*Jaeger) GetEndpoint

func (x *Jaeger) GetEndpoint() string

func (*Jaeger) ProtoMessage

func (*Jaeger) ProtoMessage()

func (*Jaeger) ProtoReflect

func (x *Jaeger) ProtoReflect() protoreflect.Message

func (*Jaeger) Reset

func (x *Jaeger) Reset()

func (*Jaeger) String

func (x *Jaeger) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Log.ProtoReflect.Descriptor instead.

func (*Log) GetAliyun

func (x *Log) GetAliyun() *AliYunLogConfig

func (*Log) GetLevel

func (x *Log) GetLevel() string

func (*Log) GetLoki

func (x *Log) GetLoki() *LokiLogConfig

func (*Log) GetSlog

func (x *Log) GetSlog() *SLogConfig

func (*Log) GetType

func (x *Log) GetType() string

func (*Log) GetZap

func (x *Log) GetZap() *ZapLogConfig

func (*Log) ProtoMessage

func (*Log) ProtoMessage()

func (*Log) ProtoReflect

func (x *Log) ProtoReflect() protoreflect.Message

func (*Log) Reset

func (x *Log) Reset()

func (*Log) String

func (x *Log) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Minio.ProtoReflect.Descriptor instead.

func (*Minio) GetAccessKeyID

func (x *Minio) GetAccessKeyID() string

func (*Minio) GetAccessKeySecret

func (x *Minio) GetAccessKeySecret() string

func (*Minio) GetBucketName

func (x *Minio) GetBucketName() string

func (*Minio) GetEndpoint

func (x *Minio) GetEndpoint() string

func (*Minio) GetSecure

func (x *Minio) GetSecure() bool

func (*Minio) ProtoMessage

func (*Minio) ProtoMessage()

func (*Minio) ProtoReflect

func (x *Minio) ProtoReflect() protoreflect.Message

func (*Minio) Reset

func (x *Minio) Reset()

func (*Minio) String

func (x *Minio) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use NutsDB.ProtoReflect.Descriptor instead.

func (*NutsDB) GetBucket

func (x *NutsDB) GetBucket() string

func (*NutsDB) GetPath

func (x *NutsDB) GetPath() string

func (*NutsDB) ProtoMessage

func (*NutsDB) ProtoMessage()

func (*NutsDB) ProtoReflect

func (x *NutsDB) ProtoReflect() protoreflect.Message

func (*NutsDB) Reset

func (x *NutsDB) Reset()

func (*NutsDB) String

func (x *NutsDB) 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) Descriptor() ([]byte, []int)

Deprecated: Use Oss.ProtoReflect.Descriptor instead.

func (*Oss) GetAliOss

func (x *Oss) GetAliOss() *AliOss

func (*Oss) GetLimitSize

func (x *Oss) GetLimitSize() map[string]*FileLimit

func (*Oss) GetLocal

func (x *Oss) GetLocal() *LocalStorage

func (*Oss) GetMinio

func (x *Oss) GetMinio() *Minio

func (*Oss) GetOpen

func (x *Oss) GetOpen() bool

func (*Oss) GetTencentOss

func (x *Oss) GetTencentOss() *TencentOss

func (*Oss) GetType

func (x *Oss) GetType() string

func (*Oss) ProtoMessage

func (*Oss) ProtoMessage()

func (*Oss) ProtoReflect

func (x *Oss) ProtoReflect() protoreflect.Message

func (*Oss) Reset

func (x *Oss) Reset()

func (*Oss) String

func (x *Oss) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Receiver.ProtoReflect.Descriptor instead.

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

func (*Receiver) Reset

func (x *Receiver) Reset()

func (*Receiver) String

func (x *Receiver) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Redis.ProtoReflect.Descriptor instead.

func (*Redis) GetAddr

func (x *Redis) GetAddr() string

func (*Redis) GetDb

func (x *Redis) GetDb() uint32

func (*Redis) GetDialTimeout

func (x *Redis) GetDialTimeout() *durationpb.Duration

func (*Redis) GetNetwork

func (x *Redis) GetNetwork() string

func (*Redis) GetPassword

func (x *Redis) GetPassword() string

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

func (*Redis) Reset

func (x *Redis) Reset()

func (*Redis) String

func (x *Redis) String() string

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"`
	// contains filtered or unexported fields
}

服务配置

func (*Server) Descriptor deprecated

func (*Server) Descriptor() ([]byte, []int)

Deprecated: Use Server.ProtoReflect.Descriptor instead.

func (*Server) GetGrpcEndpoint

func (x *Server) GetGrpcEndpoint() string

func (*Server) GetHttpEndpoint

func (x *Server) GetHttpEndpoint() string

func (*Server) GetMetadata

func (x *Server) GetMetadata() map[string]string

func (*Server) GetName

func (x *Server) GetName() string

func (*Server) GetNetwork

func (x *Server) GetNetwork() string

func (*Server) GetSecret

func (x *Server) GetSecret() string

func (*Server) ProtoMessage

func (*Server) ProtoMessage()

func (*Server) ProtoReflect

func (x *Server) ProtoReflect() protoreflect.Message

func (*Server) Reset

func (x *Server) Reset()

func (*Server) String

func (x *Server) 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 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) Descriptor() ([]byte, []int)

Deprecated: Use Tracer.ProtoReflect.Descriptor instead.

func (*Tracer) GetDriver

func (x *Tracer) GetDriver() string

func (*Tracer) GetJaeger

func (x *Tracer) GetJaeger() *Jaeger

func (*Tracer) ProtoMessage

func (*Tracer) ProtoMessage()

func (*Tracer) ProtoReflect

func (x *Tracer) ProtoReflect() protoreflect.Message

func (*Tracer) Reset

func (x *Tracer) Reset()

func (*Tracer) String

func (x *Tracer) String() string

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL