conf

package
v0.0.0-...-9bd63dd Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_common_conf_auth_proto protoreflect.FileDescriptor
View Source
var File_common_conf_bootstrap_proto protoreflect.FileDescriptor
View Source
var File_common_conf_config_proto protoreflect.FileDescriptor
View Source
var File_common_conf_data_proto protoreflect.FileDescriptor
View Source
var File_common_conf_logger_proto protoreflect.FileDescriptor
View Source
var File_common_conf_oss_proto protoreflect.FileDescriptor
View Source
var File_common_conf_registry_proto protoreflect.FileDescriptor
View Source
var File_common_conf_server_proto protoreflect.FileDescriptor
View Source
var File_common_conf_tracer_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Auth

type Auth struct {
	ServiceKey string `protobuf:"bytes,1,opt,name=service_key,json=serviceKey,proto3" json:"service_key,omitempty"` // 服务密钥
	ApiKey     string `protobuf:"bytes,2,opt,name=api_key,json=apiKey,proto3" json:"api_key,omitempty"`             // 接口密钥
	// contains filtered or unexported fields
}

密钥

func (*Auth) Descriptor deprecated

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

Deprecated: Use Auth.ProtoReflect.Descriptor instead.

func (*Auth) GetApiKey

func (x *Auth) GetApiKey() string

func (*Auth) GetServiceKey

func (x *Auth) GetServiceKey() string

func (*Auth) ProtoMessage

func (*Auth) ProtoMessage()

func (*Auth) ProtoReflect

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

func (*Auth) Reset

func (x *Auth) Reset()

func (*Auth) String

func (x *Auth) String() string

func (*Auth) Validate

func (m *Auth) Validate() error

Validate checks the field values on Auth with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Auth) ValidateAll

func (m *Auth) ValidateAll() error

ValidateAll checks the field values on Auth with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AuthMultiError, or nil if none found.

type AuthMultiError

type AuthMultiError []error

AuthMultiError is an error wrapping multiple validation errors returned by Auth.ValidateAll() if the designated constraints aren't met.

func (AuthMultiError) AllErrors

func (m AuthMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AuthMultiError) Error

func (m AuthMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type AuthValidationError

type AuthValidationError struct {
	// contains filtered or unexported fields
}

AuthValidationError is the validation error returned by Auth.Validate if the designated constraints aren't met.

func (AuthValidationError) Cause

func (e AuthValidationError) Cause() error

Cause function returns cause value.

func (AuthValidationError) Error

func (e AuthValidationError) Error() string

Error satisfies the builtin error interface

func (AuthValidationError) ErrorName

func (e AuthValidationError) ErrorName() string

ErrorName returns error name.

func (AuthValidationError) Field

func (e AuthValidationError) Field() string

Field function returns field value.

func (AuthValidationError) Key

func (e AuthValidationError) Key() bool

Key function returns key value.

func (AuthValidationError) Reason

func (e AuthValidationError) Reason() string

Reason function returns reason value.

type Bootstrap

type Bootstrap struct {
	Server   *Server       `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`
	Data     *Data         `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	Auth     *Auth         `protobuf:"bytes,3,opt,name=auth,proto3" json:"auth,omitempty"`
	Trace    *Tracer       `protobuf:"bytes,4,opt,name=trace,proto3" json:"trace,omitempty"`
	Logger   *Logger       `protobuf:"bytes,5,opt,name=logger,proto3" json:"logger,omitempty"`
	Registry *Registry     `protobuf:"bytes,6,opt,name=registry,proto3" json:"registry,omitempty"`
	Config   *RemoteConfig `protobuf:"bytes,7,opt,name=config,proto3" json:"config,omitempty"`
	Oss      *OSS          `protobuf:"bytes,8,opt,name=oss,proto3" json:"oss,omitempty"`
	// contains filtered or unexported fields
}

引导信息

func (*Bootstrap) Descriptor deprecated

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

Deprecated: Use Bootstrap.ProtoReflect.Descriptor instead.

func (*Bootstrap) GetAuth

func (x *Bootstrap) GetAuth() *Auth

func (*Bootstrap) GetConfig

func (x *Bootstrap) GetConfig() *RemoteConfig

func (*Bootstrap) GetData

func (x *Bootstrap) GetData() *Data

func (*Bootstrap) GetLogger

func (x *Bootstrap) GetLogger() *Logger

func (*Bootstrap) GetOss

func (x *Bootstrap) GetOss() *OSS

func (*Bootstrap) GetRegistry

func (x *Bootstrap) GetRegistry() *Registry

func (*Bootstrap) GetServer

func (x *Bootstrap) GetServer() *Server

func (*Bootstrap) GetTrace

func (x *Bootstrap) GetTrace() *Tracer

func (*Bootstrap) ProtoMessage

func (*Bootstrap) ProtoMessage()

func (*Bootstrap) ProtoReflect

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

func (*Bootstrap) Reset

func (x *Bootstrap) Reset()

func (*Bootstrap) String

func (x *Bootstrap) String() string

func (*Bootstrap) Validate

func (m *Bootstrap) Validate() error

Validate checks the field values on Bootstrap with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Bootstrap) ValidateAll

func (m *Bootstrap) ValidateAll() error

ValidateAll checks the field values on Bootstrap with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in BootstrapMultiError, or nil if none found.

type BootstrapMultiError

type BootstrapMultiError []error

BootstrapMultiError is an error wrapping multiple validation errors returned by Bootstrap.ValidateAll() if the designated constraints aren't met.

func (BootstrapMultiError) AllErrors

func (m BootstrapMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (BootstrapMultiError) Error

func (m BootstrapMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type BootstrapValidationError

type BootstrapValidationError struct {
	// contains filtered or unexported fields
}

BootstrapValidationError is the validation error returned by Bootstrap.Validate if the designated constraints aren't met.

func (BootstrapValidationError) Cause

func (e BootstrapValidationError) Cause() error

Cause function returns cause value.

func (BootstrapValidationError) Error

func (e BootstrapValidationError) Error() string

Error satisfies the builtin error interface

func (BootstrapValidationError) ErrorName

func (e BootstrapValidationError) ErrorName() string

ErrorName returns error name.

func (BootstrapValidationError) Field

func (e BootstrapValidationError) Field() string

Field function returns field value.

func (BootstrapValidationError) Key

Key function returns key value.

func (BootstrapValidationError) Reason

func (e BootstrapValidationError) Reason() string

Reason function returns reason value.

type Data

type Data struct {
	Database *Data_Database `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"` // 数据库
	Redis    *Data_Redis    `protobuf:"bytes,2,opt,name=redis,proto3" json:"redis,omitempty"`       // Redis
	// contains filtered or unexported fields
}

数据

func (*Data) Descriptor deprecated

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

Deprecated: Use Data.ProtoReflect.Descriptor instead.

func (*Data) GetDatabase

func (x *Data) GetDatabase() *Data_Database

func (*Data) GetRedis

func (x *Data) GetRedis() *Data_Redis

func (*Data) ProtoMessage

func (*Data) ProtoMessage()

func (*Data) ProtoReflect

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

func (*Data) Reset

func (x *Data) Reset()

func (*Data) String

func (x *Data) String() string

func (*Data) Validate

func (m *Data) Validate() error

Validate checks the field values on Data with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Data) ValidateAll

func (m *Data) ValidateAll() error

ValidateAll checks the field values on Data with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DataMultiError, or nil if none found.

type DataMultiError

type DataMultiError []error

DataMultiError is an error wrapping multiple validation errors returned by Data.ValidateAll() if the designated constraints aren't met.

func (DataMultiError) AllErrors

func (m DataMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DataMultiError) Error

func (m DataMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type DataValidationError

type DataValidationError struct {
	// contains filtered or unexported fields
}

DataValidationError is the validation error returned by Data.Validate if the designated constraints aren't met.

func (DataValidationError) Cause

func (e DataValidationError) Cause() error

Cause function returns cause value.

func (DataValidationError) Error

func (e DataValidationError) Error() string

Error satisfies the builtin error interface

func (DataValidationError) ErrorName

func (e DataValidationError) ErrorName() string

ErrorName returns error name.

func (DataValidationError) Field

func (e DataValidationError) Field() string

Field function returns field value.

func (DataValidationError) Key

func (e DataValidationError) Key() bool

Key function returns key value.

func (DataValidationError) Reason

func (e DataValidationError) Reason() string

Reason function returns reason value.

type Data_Database

type Data_Database struct {
	Driver  string `protobuf:"bytes,1,opt,name=driver,proto3" json:"driver,omitempty"`    // 驱动名:mysql、postgresql、mongodb、sqlite……
	Source  string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"`    // 数据源(DSN字符串)
	Migrate bool   `protobuf:"varint,3,opt,name=migrate,proto3" json:"migrate,omitempty"` // 数据迁移开关
	// contains filtered or unexported fields
}

数据库

func (*Data_Database) Descriptor deprecated

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

Deprecated: Use Data_Database.ProtoReflect.Descriptor instead.

func (*Data_Database) GetDriver

func (x *Data_Database) GetDriver() string

func (*Data_Database) GetMigrate

func (x *Data_Database) GetMigrate() bool

func (*Data_Database) GetSource

func (x *Data_Database) GetSource() string

func (*Data_Database) ProtoMessage

func (*Data_Database) ProtoMessage()

func (*Data_Database) ProtoReflect

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

func (*Data_Database) Reset

func (x *Data_Database) Reset()

func (*Data_Database) String

func (x *Data_Database) String() string

func (*Data_Database) Validate

func (m *Data_Database) Validate() error

Validate checks the field values on Data_Database with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Data_Database) ValidateAll

func (m *Data_Database) ValidateAll() error

ValidateAll checks the field values on Data_Database with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Data_DatabaseMultiError, or nil if none found.

type Data_DatabaseMultiError

type Data_DatabaseMultiError []error

Data_DatabaseMultiError is an error wrapping multiple validation errors returned by Data_Database.ValidateAll() if the designated constraints aren't met.

func (Data_DatabaseMultiError) AllErrors

func (m Data_DatabaseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Data_DatabaseMultiError) Error

func (m Data_DatabaseMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type Data_DatabaseValidationError

type Data_DatabaseValidationError struct {
	// contains filtered or unexported fields
}

Data_DatabaseValidationError is the validation error returned by Data_Database.Validate if the designated constraints aren't met.

func (Data_DatabaseValidationError) Cause

Cause function returns cause value.

func (Data_DatabaseValidationError) Error

Error satisfies the builtin error interface

func (Data_DatabaseValidationError) ErrorName

func (e Data_DatabaseValidationError) ErrorName() string

ErrorName returns error name.

func (Data_DatabaseValidationError) Field

Field function returns field value.

func (Data_DatabaseValidationError) Key

Key function returns key value.

func (Data_DatabaseValidationError) Reason

Reason function returns reason value.

type Data_Redis

type Data_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"`                                     // 服务端地址
	Password     string               `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`                             // 密码
	Db           int32                `protobuf:"varint,4,opt,name=db,proto3" json:"db,omitempty"`                                        // 数据库索引
	DialTimeout  *durationpb.Duration `protobuf:"bytes,5,opt,name=dial_timeout,json=dialTimeout,proto3" json:"dial_timeout,omitempty"`    // 连接超时时间
	ReadTimeout  *durationpb.Duration `protobuf:"bytes,6,opt,name=read_timeout,json=readTimeout,proto3" json:"read_timeout,omitempty"`    // 读取超时时间
	WriteTimeout *durationpb.Duration `protobuf:"bytes,7,opt,name=write_timeout,json=writeTimeout,proto3" json:"write_timeout,omitempty"` // 写入超时时间
	// contains filtered or unexported fields
}

redis

func (*Data_Redis) Descriptor deprecated

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

Deprecated: Use Data_Redis.ProtoReflect.Descriptor instead.

func (*Data_Redis) GetAddr

func (x *Data_Redis) GetAddr() string

func (*Data_Redis) GetDb

func (x *Data_Redis) GetDb() int32

func (*Data_Redis) GetDialTimeout

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

func (*Data_Redis) GetNetwork

func (x *Data_Redis) GetNetwork() string

func (*Data_Redis) GetPassword

func (x *Data_Redis) GetPassword() string

func (*Data_Redis) GetReadTimeout

func (x *Data_Redis) GetReadTimeout() *durationpb.Duration

func (*Data_Redis) GetWriteTimeout

func (x *Data_Redis) GetWriteTimeout() *durationpb.Duration

func (*Data_Redis) ProtoMessage

func (*Data_Redis) ProtoMessage()

func (*Data_Redis) ProtoReflect

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

func (*Data_Redis) Reset

func (x *Data_Redis) Reset()

func (*Data_Redis) String

func (x *Data_Redis) String() string

func (*Data_Redis) Validate

func (m *Data_Redis) Validate() error

Validate checks the field values on Data_Redis with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Data_Redis) ValidateAll

func (m *Data_Redis) ValidateAll() error

ValidateAll checks the field values on Data_Redis with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Data_RedisMultiError, or nil if none found.

type Data_RedisMultiError

type Data_RedisMultiError []error

Data_RedisMultiError is an error wrapping multiple validation errors returned by Data_Redis.ValidateAll() if the designated constraints aren't met.

func (Data_RedisMultiError) AllErrors

func (m Data_RedisMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Data_RedisMultiError) Error

func (m Data_RedisMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type Data_RedisValidationError

type Data_RedisValidationError struct {
	// contains filtered or unexported fields
}

Data_RedisValidationError is the validation error returned by Data_Redis.Validate if the designated constraints aren't met.

func (Data_RedisValidationError) Cause

func (e Data_RedisValidationError) Cause() error

Cause function returns cause value.

func (Data_RedisValidationError) Error

Error satisfies the builtin error interface

func (Data_RedisValidationError) ErrorName

func (e Data_RedisValidationError) ErrorName() string

ErrorName returns error name.

func (Data_RedisValidationError) Field

Field function returns field value.

func (Data_RedisValidationError) Key

Key function returns key value.

func (Data_RedisValidationError) Reason

func (e Data_RedisValidationError) Reason() string

Reason function returns reason value.

type Logger

type Logger struct {
	Type    string          `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Zap     *Logger_Zap     `protobuf:"bytes,2,opt,name=zap,proto3" json:"zap,omitempty"`
	Logrus  *Logger_Logrus  `protobuf:"bytes,3,opt,name=logrus,proto3" json:"logrus,omitempty"`
	Fluent  *Logger_Fluent  `protobuf:"bytes,4,opt,name=fluent,proto3" json:"fluent,omitempty"`
	Aliyun  *Logger_Aliyun  `protobuf:"bytes,5,opt,name=aliyun,proto3" json:"aliyun,omitempty"`
	Tencent *Logger_Tencent `protobuf:"bytes,6,opt,name=tencent,proto3" json:"tencent,omitempty"`
	// contains filtered or unexported fields
}

日志

func (*Logger) Descriptor deprecated

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

Deprecated: Use Logger.ProtoReflect.Descriptor instead.

func (*Logger) GetAliyun

func (x *Logger) GetAliyun() *Logger_Aliyun

func (*Logger) GetFluent

func (x *Logger) GetFluent() *Logger_Fluent

func (*Logger) GetLogrus

func (x *Logger) GetLogrus() *Logger_Logrus

func (*Logger) GetTencent

func (x *Logger) GetTencent() *Logger_Tencent

func (*Logger) GetType

func (x *Logger) GetType() string

func (*Logger) GetZap

func (x *Logger) GetZap() *Logger_Zap

func (*Logger) ProtoMessage

func (*Logger) ProtoMessage()

func (*Logger) ProtoReflect

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

func (*Logger) Reset

func (x *Logger) Reset()

func (*Logger) String

func (x *Logger) String() string

func (*Logger) Validate

func (m *Logger) Validate() error

Validate checks the field values on Logger with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Logger) ValidateAll

func (m *Logger) ValidateAll() error

ValidateAll checks the field values on Logger with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LoggerMultiError, or nil if none found.

type LoggerMultiError

type LoggerMultiError []error

LoggerMultiError is an error wrapping multiple validation errors returned by Logger.ValidateAll() if the designated constraints aren't met.

func (LoggerMultiError) AllErrors

func (m LoggerMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LoggerMultiError) Error

func (m LoggerMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type LoggerValidationError

type LoggerValidationError struct {
	// contains filtered or unexported fields
}

LoggerValidationError is the validation error returned by Logger.Validate if the designated constraints aren't met.

func (LoggerValidationError) Cause

func (e LoggerValidationError) Cause() error

Cause function returns cause value.

func (LoggerValidationError) Error

func (e LoggerValidationError) Error() string

Error satisfies the builtin error interface

func (LoggerValidationError) ErrorName

func (e LoggerValidationError) ErrorName() string

ErrorName returns error name.

func (LoggerValidationError) Field

func (e LoggerValidationError) Field() string

Field function returns field value.

func (LoggerValidationError) Key

func (e LoggerValidationError) Key() bool

Key function returns key value.

func (LoggerValidationError) Reason

func (e LoggerValidationError) Reason() string

Reason function returns reason value.

type Logger_Aliyun

type Logger_Aliyun struct {
	Endpoint     string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"`                             // 公网接入地址
	Project      string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`                               //
	AccessKey    string `protobuf:"bytes,3,opt,name=access_key,json=accessKey,proto3" json:"access_key,omitempty"`          // 访问密钥ID
	AccessSecret string `protobuf:"bytes,4,opt,name=access_secret,json=accessSecret,proto3" json:"access_secret,omitempty"` // 访问密钥
	// contains filtered or unexported fields
}

阿里云

func (*Logger_Aliyun) Descriptor deprecated

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

Deprecated: Use Logger_Aliyun.ProtoReflect.Descriptor instead.

func (*Logger_Aliyun) GetAccessKey

func (x *Logger_Aliyun) GetAccessKey() string

func (*Logger_Aliyun) GetAccessSecret

func (x *Logger_Aliyun) GetAccessSecret() string

func (*Logger_Aliyun) GetEndpoint

func (x *Logger_Aliyun) GetEndpoint() string

func (*Logger_Aliyun) GetProject

func (x *Logger_Aliyun) GetProject() string

func (*Logger_Aliyun) ProtoMessage

func (*Logger_Aliyun) ProtoMessage()

func (*Logger_Aliyun) ProtoReflect

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

func (*Logger_Aliyun) Reset

func (x *Logger_Aliyun) Reset()

func (*Logger_Aliyun) String

func (x *Logger_Aliyun) String() string

func (*Logger_Aliyun) Validate

func (m *Logger_Aliyun) Validate() error

Validate checks the field values on Logger_Aliyun with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Logger_Aliyun) ValidateAll

func (m *Logger_Aliyun) ValidateAll() error

ValidateAll checks the field values on Logger_Aliyun with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Logger_AliyunMultiError, or nil if none found.

type Logger_AliyunMultiError

type Logger_AliyunMultiError []error

Logger_AliyunMultiError is an error wrapping multiple validation errors returned by Logger_Aliyun.ValidateAll() if the designated constraints aren't met.

func (Logger_AliyunMultiError) AllErrors

func (m Logger_AliyunMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Logger_AliyunMultiError) Error

func (m Logger_AliyunMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type Logger_AliyunValidationError

type Logger_AliyunValidationError struct {
	// contains filtered or unexported fields
}

Logger_AliyunValidationError is the validation error returned by Logger_Aliyun.Validate if the designated constraints aren't met.

func (Logger_AliyunValidationError) Cause

Cause function returns cause value.

func (Logger_AliyunValidationError) Error

Error satisfies the builtin error interface

func (Logger_AliyunValidationError) ErrorName

func (e Logger_AliyunValidationError) ErrorName() string

ErrorName returns error name.

func (Logger_AliyunValidationError) Field

Field function returns field value.

func (Logger_AliyunValidationError) Key

Key function returns key value.

func (Logger_AliyunValidationError) Reason

Reason function returns reason value.

type Logger_Fluent

type Logger_Fluent struct {
	Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` // 公网接入地址
	// contains filtered or unexported fields
}

Fluent

func (*Logger_Fluent) Descriptor deprecated

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

Deprecated: Use Logger_Fluent.ProtoReflect.Descriptor instead.

func (*Logger_Fluent) GetEndpoint

func (x *Logger_Fluent) GetEndpoint() string

func (*Logger_Fluent) ProtoMessage

func (*Logger_Fluent) ProtoMessage()

func (*Logger_Fluent) ProtoReflect

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

func (*Logger_Fluent) Reset

func (x *Logger_Fluent) Reset()

func (*Logger_Fluent) String

func (x *Logger_Fluent) String() string

func (*Logger_Fluent) Validate

func (m *Logger_Fluent) Validate() error

Validate checks the field values on Logger_Fluent with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Logger_Fluent) ValidateAll

func (m *Logger_Fluent) ValidateAll() error

ValidateAll checks the field values on Logger_Fluent with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Logger_FluentMultiError, or nil if none found.

type Logger_FluentMultiError

type Logger_FluentMultiError []error

Logger_FluentMultiError is an error wrapping multiple validation errors returned by Logger_Fluent.ValidateAll() if the designated constraints aren't met.

func (Logger_FluentMultiError) AllErrors

func (m Logger_FluentMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Logger_FluentMultiError) Error

func (m Logger_FluentMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type Logger_FluentValidationError

type Logger_FluentValidationError struct {
	// contains filtered or unexported fields
}

Logger_FluentValidationError is the validation error returned by Logger_Fluent.Validate if the designated constraints aren't met.

func (Logger_FluentValidationError) Cause

Cause function returns cause value.

func (Logger_FluentValidationError) Error

Error satisfies the builtin error interface

func (Logger_FluentValidationError) ErrorName

func (e Logger_FluentValidationError) ErrorName() string

ErrorName returns error name.

func (Logger_FluentValidationError) Field

Field function returns field value.

func (Logger_FluentValidationError) Key

Key function returns key value.

func (Logger_FluentValidationError) Reason

Reason function returns reason value.

type Logger_Logrus

type Logger_Logrus struct {
	Level            string `protobuf:"bytes,1,opt,name=level,proto3" json:"level,omitempty"`                                                // 日志等级
	Formatter        string `protobuf:"bytes,2,opt,name=formatter,proto3" json:"formatter,omitempty"`                                        // 输出格式:text, json.
	TimestampFormat  string `protobuf:"bytes,3,opt,name=timestamp_format,json=timestampFormat,proto3" json:"timestamp_format,omitempty"`     // 定义时间戳格式,例如:"2006-01-02 15:04:05"
	DisableColors    bool   `protobuf:"varint,4,opt,name=disable_colors,json=disableColors,proto3" json:"disable_colors,omitempty"`          // 不需要彩色日志
	DisableTimestamp bool   `protobuf:"varint,5,opt,name=disable_timestamp,json=disableTimestamp,proto3" json:"disable_timestamp,omitempty"` // 不需要时间戳
	// contains filtered or unexported fields
}

logrus

func (*Logger_Logrus) Descriptor deprecated

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

Deprecated: Use Logger_Logrus.ProtoReflect.Descriptor instead.

func (*Logger_Logrus) GetDisableColors

func (x *Logger_Logrus) GetDisableColors() bool

func (*Logger_Logrus) GetDisableTimestamp

func (x *Logger_Logrus) GetDisableTimestamp() bool

func (*Logger_Logrus) GetFormatter

func (x *Logger_Logrus) GetFormatter() string

func (*Logger_Logrus) GetLevel

func (x *Logger_Logrus) GetLevel() string

func (*Logger_Logrus) GetTimestampFormat

func (x *Logger_Logrus) GetTimestampFormat() string

func (*Logger_Logrus) ProtoMessage

func (*Logger_Logrus) ProtoMessage()

func (*Logger_Logrus) ProtoReflect

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

func (*Logger_Logrus) Reset

func (x *Logger_Logrus) Reset()

func (*Logger_Logrus) String

func (x *Logger_Logrus) String() string

func (*Logger_Logrus) Validate

func (m *Logger_Logrus) Validate() error

Validate checks the field values on Logger_Logrus with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Logger_Logrus) ValidateAll

func (m *Logger_Logrus) ValidateAll() error

ValidateAll checks the field values on Logger_Logrus with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Logger_LogrusMultiError, or nil if none found.

type Logger_LogrusMultiError

type Logger_LogrusMultiError []error

Logger_LogrusMultiError is an error wrapping multiple validation errors returned by Logger_Logrus.ValidateAll() if the designated constraints aren't met.

func (Logger_LogrusMultiError) AllErrors

func (m Logger_LogrusMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Logger_LogrusMultiError) Error

func (m Logger_LogrusMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type Logger_LogrusValidationError

type Logger_LogrusValidationError struct {
	// contains filtered or unexported fields
}

Logger_LogrusValidationError is the validation error returned by Logger_Logrus.Validate if the designated constraints aren't met.

func (Logger_LogrusValidationError) Cause

Cause function returns cause value.

func (Logger_LogrusValidationError) Error

Error satisfies the builtin error interface

func (Logger_LogrusValidationError) ErrorName

func (e Logger_LogrusValidationError) ErrorName() string

ErrorName returns error name.

func (Logger_LogrusValidationError) Field

Field function returns field value.

func (Logger_LogrusValidationError) Key

Key function returns key value.

func (Logger_LogrusValidationError) Reason

Reason function returns reason value.

type Logger_Tencent

type Logger_Tencent struct {
	Endpoint     string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"`                             // 公网接入地址
	TopicId      string `protobuf:"bytes,2,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"`                //
	AccessKey    string `protobuf:"bytes,3,opt,name=access_key,json=accessKey,proto3" json:"access_key,omitempty"`          // 访问密钥ID
	AccessSecret string `protobuf:"bytes,4,opt,name=access_secret,json=accessSecret,proto3" json:"access_secret,omitempty"` // 访问密钥
	// contains filtered or unexported fields
}

腾讯

func (*Logger_Tencent) Descriptor deprecated

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

Deprecated: Use Logger_Tencent.ProtoReflect.Descriptor instead.

func (*Logger_Tencent) GetAccessKey

func (x *Logger_Tencent) GetAccessKey() string

func (*Logger_Tencent) GetAccessSecret

func (x *Logger_Tencent) GetAccessSecret() string

func (*Logger_Tencent) GetEndpoint

func (x *Logger_Tencent) GetEndpoint() string

func (*Logger_Tencent) GetTopicId

func (x *Logger_Tencent) GetTopicId() string

func (*Logger_Tencent) ProtoMessage

func (*Logger_Tencent) ProtoMessage()

func (*Logger_Tencent) ProtoReflect

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

func (*Logger_Tencent) Reset

func (x *Logger_Tencent) Reset()

func (*Logger_Tencent) String

func (x *Logger_Tencent) String() string

func (*Logger_Tencent) Validate

func (m *Logger_Tencent) Validate() error

Validate checks the field values on Logger_Tencent with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Logger_Tencent) ValidateAll

func (m *Logger_Tencent) ValidateAll() error

ValidateAll checks the field values on Logger_Tencent with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Logger_TencentMultiError, or nil if none found.

type Logger_TencentMultiError

type Logger_TencentMultiError []error

Logger_TencentMultiError is an error wrapping multiple validation errors returned by Logger_Tencent.ValidateAll() if the designated constraints aren't met.

func (Logger_TencentMultiError) AllErrors

func (m Logger_TencentMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Logger_TencentMultiError) Error

func (m Logger_TencentMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type Logger_TencentValidationError

type Logger_TencentValidationError struct {
	// contains filtered or unexported fields
}

Logger_TencentValidationError is the validation error returned by Logger_Tencent.Validate if the designated constraints aren't met.

func (Logger_TencentValidationError) Cause

Cause function returns cause value.

func (Logger_TencentValidationError) Error

Error satisfies the builtin error interface

func (Logger_TencentValidationError) ErrorName

func (e Logger_TencentValidationError) ErrorName() string

ErrorName returns error name.

func (Logger_TencentValidationError) Field

Field function returns field value.

func (Logger_TencentValidationError) Key

Key function returns key value.

func (Logger_TencentValidationError) Reason

Reason function returns reason value.

type Logger_Zap

type Logger_Zap struct {
	Filename   string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"`                        //
	Level      string `protobuf:"bytes,2,opt,name=level,proto3" json:"level,omitempty"`                              //
	MaxSize    int32  `protobuf:"varint,3,opt,name=max_size,json=maxSize,proto3" json:"max_size,omitempty"`          //
	MaxAge     int32  `protobuf:"varint,4,opt,name=max_age,json=maxAge,proto3" json:"max_age,omitempty"`             //
	MaxBackups int32  `protobuf:"varint,5,opt,name=max_backups,json=maxBackups,proto3" json:"max_backups,omitempty"` //
	// contains filtered or unexported fields
}

Zap

func (*Logger_Zap) Descriptor deprecated

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

Deprecated: Use Logger_Zap.ProtoReflect.Descriptor instead.

func (*Logger_Zap) GetFilename

func (x *Logger_Zap) GetFilename() string

func (*Logger_Zap) GetLevel

func (x *Logger_Zap) GetLevel() string

func (*Logger_Zap) GetMaxAge

func (x *Logger_Zap) GetMaxAge() int32

func (*Logger_Zap) GetMaxBackups

func (x *Logger_Zap) GetMaxBackups() int32

func (*Logger_Zap) GetMaxSize

func (x *Logger_Zap) GetMaxSize() int32

func (*Logger_Zap) ProtoMessage

func (*Logger_Zap) ProtoMessage()

func (*Logger_Zap) ProtoReflect

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

func (*Logger_Zap) Reset

func (x *Logger_Zap) Reset()

func (*Logger_Zap) String

func (x *Logger_Zap) String() string

func (*Logger_Zap) Validate

func (m *Logger_Zap) Validate() error

Validate checks the field values on Logger_Zap with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Logger_Zap) ValidateAll

func (m *Logger_Zap) ValidateAll() error

ValidateAll checks the field values on Logger_Zap with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Logger_ZapMultiError, or nil if none found.

type Logger_ZapMultiError

type Logger_ZapMultiError []error

Logger_ZapMultiError is an error wrapping multiple validation errors returned by Logger_Zap.ValidateAll() if the designated constraints aren't met.

func (Logger_ZapMultiError) AllErrors

func (m Logger_ZapMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Logger_ZapMultiError) Error

func (m Logger_ZapMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type Logger_ZapValidationError

type Logger_ZapValidationError struct {
	// contains filtered or unexported fields
}

Logger_ZapValidationError is the validation error returned by Logger_Zap.Validate if the designated constraints aren't met.

func (Logger_ZapValidationError) Cause

func (e Logger_ZapValidationError) Cause() error

Cause function returns cause value.

func (Logger_ZapValidationError) Error

Error satisfies the builtin error interface

func (Logger_ZapValidationError) ErrorName

func (e Logger_ZapValidationError) ErrorName() string

ErrorName returns error name.

func (Logger_ZapValidationError) Field

Field function returns field value.

func (Logger_ZapValidationError) Key

Key function returns key value.

func (Logger_ZapValidationError) Reason

func (e Logger_ZapValidationError) Reason() string

Reason function returns reason value.

type OSS

type OSS struct {
	Minio *OSS_MinIO `protobuf:"bytes,1,opt,name=minio,proto3" json:"minio,omitempty"`
	// contains filtered or unexported fields
}

func (*OSS) Descriptor deprecated

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

Deprecated: Use OSS.ProtoReflect.Descriptor instead.

func (*OSS) GetMinio

func (x *OSS) GetMinio() *OSS_MinIO

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

func (*OSS) Validate

func (m *OSS) Validate() error

Validate checks the field values on OSS with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*OSS) ValidateAll

func (m *OSS) ValidateAll() error

ValidateAll checks the field values on OSS with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in OSSMultiError, or nil if none found.

type OSSMultiError

type OSSMultiError []error

OSSMultiError is an error wrapping multiple validation errors returned by OSS.ValidateAll() if the designated constraints aren't met.

func (OSSMultiError) AllErrors

func (m OSSMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (OSSMultiError) Error

func (m OSSMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type OSSValidationError

type OSSValidationError struct {
	// contains filtered or unexported fields
}

OSSValidationError is the validation error returned by OSS.Validate if the designated constraints aren't met.

func (OSSValidationError) Cause

func (e OSSValidationError) Cause() error

Cause function returns cause value.

func (OSSValidationError) Error

func (e OSSValidationError) Error() string

Error satisfies the builtin error interface

func (OSSValidationError) ErrorName

func (e OSSValidationError) ErrorName() string

ErrorName returns error name.

func (OSSValidationError) Field

func (e OSSValidationError) Field() string

Field function returns field value.

func (OSSValidationError) Key

func (e OSSValidationError) Key() bool

Key function returns key value.

func (OSSValidationError) Reason

func (e OSSValidationError) Reason() string

Reason function returns reason value.

type OSS_MinIO

type OSS_MinIO struct {
	Endpoint     string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"`                             // 对端端口
	AccessKey    string `protobuf:"bytes,2,opt,name=access_key,json=accessKey,proto3" json:"access_key,omitempty"`          // 访问密钥
	SecretKey    string `protobuf:"bytes,3,opt,name=secret_key,json=secretKey,proto3" json:"secret_key,omitempty"`          // 密钥
	Token        string `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"`                                   // 令牌
	UseSsl       bool   `protobuf:"varint,5,opt,name=use_ssl,json=useSsl,proto3" json:"use_ssl,omitempty"`                  // 使用SSL
	UploadHost   string `protobuf:"bytes,6,opt,name=upload_host,json=uploadHost,proto3" json:"upload_host,omitempty"`       // 上传链接的主机名
	DownloadHost string `protobuf:"bytes,7,opt,name=download_host,json=downloadHost,proto3" json:"download_host,omitempty"` // 下载链接的主机名
	// contains filtered or unexported fields
}

MinIO

func (*OSS_MinIO) Descriptor deprecated

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

Deprecated: Use OSS_MinIO.ProtoReflect.Descriptor instead.

func (*OSS_MinIO) GetAccessKey

func (x *OSS_MinIO) GetAccessKey() string

func (*OSS_MinIO) GetDownloadHost

func (x *OSS_MinIO) GetDownloadHost() string

func (*OSS_MinIO) GetEndpoint

func (x *OSS_MinIO) GetEndpoint() string

func (*OSS_MinIO) GetSecretKey

func (x *OSS_MinIO) GetSecretKey() string

func (*OSS_MinIO) GetToken

func (x *OSS_MinIO) GetToken() string

func (*OSS_MinIO) GetUploadHost

func (x *OSS_MinIO) GetUploadHost() string

func (*OSS_MinIO) GetUseSsl

func (x *OSS_MinIO) GetUseSsl() bool

func (*OSS_MinIO) ProtoMessage

func (*OSS_MinIO) ProtoMessage()

func (*OSS_MinIO) ProtoReflect

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

func (*OSS_MinIO) Reset

func (x *OSS_MinIO) Reset()

func (*OSS_MinIO) String

func (x *OSS_MinIO) String() string

func (*OSS_MinIO) Validate

func (m *OSS_MinIO) Validate() error

Validate checks the field values on OSS_MinIO with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*OSS_MinIO) ValidateAll

func (m *OSS_MinIO) ValidateAll() error

ValidateAll checks the field values on OSS_MinIO with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in OSS_MinIOMultiError, or nil if none found.

type OSS_MinIOMultiError

type OSS_MinIOMultiError []error

OSS_MinIOMultiError is an error wrapping multiple validation errors returned by OSS_MinIO.ValidateAll() if the designated constraints aren't met.

func (OSS_MinIOMultiError) AllErrors

func (m OSS_MinIOMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (OSS_MinIOMultiError) Error

func (m OSS_MinIOMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type OSS_MinIOValidationError

type OSS_MinIOValidationError struct {
	// contains filtered or unexported fields
}

OSS_MinIOValidationError is the validation error returned by OSS_MinIO.Validate if the designated constraints aren't met.

func (OSS_MinIOValidationError) Cause

func (e OSS_MinIOValidationError) Cause() error

Cause function returns cause value.

func (OSS_MinIOValidationError) Error

func (e OSS_MinIOValidationError) Error() string

Error satisfies the builtin error interface

func (OSS_MinIOValidationError) ErrorName

func (e OSS_MinIOValidationError) ErrorName() string

ErrorName returns error name.

func (OSS_MinIOValidationError) Field

func (e OSS_MinIOValidationError) Field() string

Field function returns field value.

func (OSS_MinIOValidationError) Key

Key function returns key value.

func (OSS_MinIOValidationError) Reason

func (e OSS_MinIOValidationError) Reason() string

Reason function returns reason value.

type Registry

type Registry struct {
	Type        string                `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Consul      *Registry_Consul      `protobuf:"bytes,2,opt,name=consul,proto3" json:"consul,omitempty"`           // Consul
	Etcd        *Registry_Etcd        `protobuf:"bytes,3,opt,name=etcd,proto3" json:"etcd,omitempty"`               // Etcd
	Zookeeper   *Registry_ZooKeeper   `protobuf:"bytes,4,opt,name=zookeeper,proto3" json:"zookeeper,omitempty"`     // ZooKeeper
	Nacos       *Registry_Nacos       `protobuf:"bytes,5,opt,name=nacos,proto3" json:"nacos,omitempty"`             // Nacos
	Kubernetes  *Registry_Kubernetes  `protobuf:"bytes,6,opt,name=kubernetes,proto3" json:"kubernetes,omitempty"`   // Kubernetes
	Eureka      *Registry_Eureka      `protobuf:"bytes,7,opt,name=eureka,proto3" json:"eureka,omitempty"`           // Eureka
	Polaris     *Registry_Polaris     `protobuf:"bytes,8,opt,name=polaris,proto3" json:"polaris,omitempty"`         // Polaris
	Servicecomb *Registry_Servicecomb `protobuf:"bytes,9,opt,name=servicecomb,proto3" json:"servicecomb,omitempty"` // Servicecomb
	// contains filtered or unexported fields
}

注册发现中心

func (*Registry) Descriptor deprecated

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

Deprecated: Use Registry.ProtoReflect.Descriptor instead.

func (*Registry) GetConsul

func (x *Registry) GetConsul() *Registry_Consul

func (*Registry) GetEtcd

func (x *Registry) GetEtcd() *Registry_Etcd

func (*Registry) GetEureka

func (x *Registry) GetEureka() *Registry_Eureka

func (*Registry) GetKubernetes

func (x *Registry) GetKubernetes() *Registry_Kubernetes

func (*Registry) GetNacos

func (x *Registry) GetNacos() *Registry_Nacos

func (*Registry) GetPolaris

func (x *Registry) GetPolaris() *Registry_Polaris

func (*Registry) GetServicecomb

func (x *Registry) GetServicecomb() *Registry_Servicecomb

func (*Registry) GetType

func (x *Registry) GetType() string

func (*Registry) GetZookeeper

func (x *Registry) GetZookeeper() *Registry_ZooKeeper

func (*Registry) ProtoMessage

func (*Registry) ProtoMessage()

func (*Registry) ProtoReflect

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

func (*Registry) Reset

func (x *Registry) Reset()

func (*Registry) String

func (x *Registry) String() string

func (*Registry) Validate

func (m *Registry) Validate() error

Validate checks the field values on Registry with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Registry) ValidateAll

func (m *Registry) ValidateAll() error

ValidateAll checks the field values on Registry with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RegistryMultiError, or nil if none found.

type RegistryMultiError

type RegistryMultiError []error

RegistryMultiError is an error wrapping multiple validation errors returned by Registry.ValidateAll() if the designated constraints aren't met.

func (RegistryMultiError) AllErrors

func (m RegistryMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RegistryMultiError) Error

func (m RegistryMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type RegistryValidationError

type RegistryValidationError struct {
	// contains filtered or unexported fields
}

RegistryValidationError is the validation error returned by Registry.Validate if the designated constraints aren't met.

func (RegistryValidationError) Cause

func (e RegistryValidationError) Cause() error

Cause function returns cause value.

func (RegistryValidationError) Error

func (e RegistryValidationError) Error() string

Error satisfies the builtin error interface

func (RegistryValidationError) ErrorName

func (e RegistryValidationError) ErrorName() string

ErrorName returns error name.

func (RegistryValidationError) Field

func (e RegistryValidationError) Field() string

Field function returns field value.

func (RegistryValidationError) Key

func (e RegistryValidationError) Key() bool

Key function returns key value.

func (RegistryValidationError) Reason

func (e RegistryValidationError) Reason() string

Reason function returns reason value.

type Registry_Consul

type Registry_Consul struct {
	Scheme      string `protobuf:"bytes,1,opt,name=scheme,proto3" json:"scheme,omitempty"`                               // 网络样式
	Address     string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`                             // 服务端地址
	HealthCheck bool   `protobuf:"varint,3,opt,name=health_check,json=healthCheck,proto3" json:"health_check,omitempty"` // 健康检查
	// contains filtered or unexported fields
}

Consul

func (*Registry_Consul) Descriptor deprecated

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

Deprecated: Use Registry_Consul.ProtoReflect.Descriptor instead.

func (*Registry_Consul) GetAddress

func (x *Registry_Consul) GetAddress() string

func (*Registry_Consul) GetHealthCheck

func (x *Registry_Consul) GetHealthCheck() bool

func (*Registry_Consul) GetScheme

func (x *Registry_Consul) GetScheme() string

func (*Registry_Consul) ProtoMessage

func (*Registry_Consul) ProtoMessage()

func (*Registry_Consul) ProtoReflect

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

func (*Registry_Consul) Reset

func (x *Registry_Consul) Reset()

func (*Registry_Consul) String

func (x *Registry_Consul) String() string

func (*Registry_Consul) Validate

func (m *Registry_Consul) Validate() error

Validate checks the field values on Registry_Consul with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Registry_Consul) ValidateAll

func (m *Registry_Consul) ValidateAll() error

ValidateAll checks the field values on Registry_Consul with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Registry_ConsulMultiError, or nil if none found.

type Registry_ConsulMultiError

type Registry_ConsulMultiError []error

Registry_ConsulMultiError is an error wrapping multiple validation errors returned by Registry_Consul.ValidateAll() if the designated constraints aren't met.

func (Registry_ConsulMultiError) AllErrors

func (m Registry_ConsulMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Registry_ConsulMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type Registry_ConsulValidationError

type Registry_ConsulValidationError struct {
	// contains filtered or unexported fields
}

Registry_ConsulValidationError is the validation error returned by Registry_Consul.Validate if the designated constraints aren't met.

func (Registry_ConsulValidationError) Cause

Cause function returns cause value.

func (Registry_ConsulValidationError) Error

Error satisfies the builtin error interface

func (Registry_ConsulValidationError) ErrorName

func (e Registry_ConsulValidationError) ErrorName() string

ErrorName returns error name.

func (Registry_ConsulValidationError) Field

Field function returns field value.

func (Registry_ConsulValidationError) Key

Key function returns key value.

func (Registry_ConsulValidationError) Reason

Reason function returns reason value.

type Registry_Etcd

type Registry_Etcd struct {
	Endpoints []string `protobuf:"bytes,1,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
	// contains filtered or unexported fields
}

Etcd

func (*Registry_Etcd) Descriptor deprecated

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

Deprecated: Use Registry_Etcd.ProtoReflect.Descriptor instead.

func (*Registry_Etcd) GetEndpoints

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

func (*Registry_Etcd) ProtoMessage

func (*Registry_Etcd) ProtoMessage()

func (*Registry_Etcd) ProtoReflect

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

func (*Registry_Etcd) Reset

func (x *Registry_Etcd) Reset()

func (*Registry_Etcd) String

func (x *Registry_Etcd) String() string

func (*Registry_Etcd) Validate

func (m *Registry_Etcd) Validate() error

Validate checks the field values on Registry_Etcd with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Registry_Etcd) ValidateAll

func (m *Registry_Etcd) ValidateAll() error

ValidateAll checks the field values on Registry_Etcd with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Registry_EtcdMultiError, or nil if none found.

type Registry_EtcdMultiError

type Registry_EtcdMultiError []error

Registry_EtcdMultiError is an error wrapping multiple validation errors returned by Registry_Etcd.ValidateAll() if the designated constraints aren't met.

func (Registry_EtcdMultiError) AllErrors

func (m Registry_EtcdMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Registry_EtcdMultiError) Error

func (m Registry_EtcdMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type Registry_EtcdValidationError

type Registry_EtcdValidationError struct {
	// contains filtered or unexported fields
}

Registry_EtcdValidationError is the validation error returned by Registry_Etcd.Validate if the designated constraints aren't met.

func (Registry_EtcdValidationError) Cause

Cause function returns cause value.

func (Registry_EtcdValidationError) Error

Error satisfies the builtin error interface

func (Registry_EtcdValidationError) ErrorName

func (e Registry_EtcdValidationError) ErrorName() string

ErrorName returns error name.

func (Registry_EtcdValidationError) Field

Field function returns field value.

func (Registry_EtcdValidationError) Key

Key function returns key value.

func (Registry_EtcdValidationError) Reason

Reason function returns reason value.

type Registry_Eureka

type Registry_Eureka struct {
	Endpoints         []string             `protobuf:"bytes,1,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
	HeartbeatInterval *durationpb.Duration `protobuf:"bytes,2,opt,name=heartbeat_interval,json=heartbeatInterval,proto3" json:"heartbeat_interval,omitempty"`
	RefreshInterval   *durationpb.Duration `protobuf:"bytes,3,opt,name=refresh_interval,json=refreshInterval,proto3" json:"refresh_interval,omitempty"`
	Path              string               `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

Eureka

func (*Registry_Eureka) Descriptor deprecated

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

Deprecated: Use Registry_Eureka.ProtoReflect.Descriptor instead.

func (*Registry_Eureka) GetEndpoints

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

func (*Registry_Eureka) GetHeartbeatInterval

func (x *Registry_Eureka) GetHeartbeatInterval() *durationpb.Duration

func (*Registry_Eureka) GetPath

func (x *Registry_Eureka) GetPath() string

func (*Registry_Eureka) GetRefreshInterval

func (x *Registry_Eureka) GetRefreshInterval() *durationpb.Duration

func (*Registry_Eureka) ProtoMessage

func (*Registry_Eureka) ProtoMessage()

func (*Registry_Eureka) ProtoReflect

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

func (*Registry_Eureka) Reset

func (x *Registry_Eureka) Reset()

func (*Registry_Eureka) String

func (x *Registry_Eureka) String() string

func (*Registry_Eureka) Validate

func (m *Registry_Eureka) Validate() error

Validate checks the field values on Registry_Eureka with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Registry_Eureka) ValidateAll

func (m *Registry_Eureka) ValidateAll() error

ValidateAll checks the field values on Registry_Eureka with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Registry_EurekaMultiError, or nil if none found.

type Registry_EurekaMultiError

type Registry_EurekaMultiError []error

Registry_EurekaMultiError is an error wrapping multiple validation errors returned by Registry_Eureka.ValidateAll() if the designated constraints aren't met.

func (Registry_EurekaMultiError) AllErrors

func (m Registry_EurekaMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Registry_EurekaMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type Registry_EurekaValidationError

type Registry_EurekaValidationError struct {
	// contains filtered or unexported fields
}

Registry_EurekaValidationError is the validation error returned by Registry_Eureka.Validate if the designated constraints aren't met.

func (Registry_EurekaValidationError) Cause

Cause function returns cause value.

func (Registry_EurekaValidationError) Error

Error satisfies the builtin error interface

func (Registry_EurekaValidationError) ErrorName

func (e Registry_EurekaValidationError) ErrorName() string

ErrorName returns error name.

func (Registry_EurekaValidationError) Field

Field function returns field value.

func (Registry_EurekaValidationError) Key

Key function returns key value.

func (Registry_EurekaValidationError) Reason

Reason function returns reason value.

type Registry_Kubernetes

type Registry_Kubernetes struct {
	// contains filtered or unexported fields
}

Kubernetes

func (*Registry_Kubernetes) Descriptor deprecated

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

Deprecated: Use Registry_Kubernetes.ProtoReflect.Descriptor instead.

func (*Registry_Kubernetes) ProtoMessage

func (*Registry_Kubernetes) ProtoMessage()

func (*Registry_Kubernetes) ProtoReflect

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

func (*Registry_Kubernetes) Reset

func (x *Registry_Kubernetes) Reset()

func (*Registry_Kubernetes) String

func (x *Registry_Kubernetes) String() string

func (*Registry_Kubernetes) Validate

func (m *Registry_Kubernetes) Validate() error

Validate checks the field values on Registry_Kubernetes with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Registry_Kubernetes) ValidateAll

func (m *Registry_Kubernetes) ValidateAll() error

ValidateAll checks the field values on Registry_Kubernetes with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Registry_KubernetesMultiError, or nil if none found.

type Registry_KubernetesMultiError

type Registry_KubernetesMultiError []error

Registry_KubernetesMultiError is an error wrapping multiple validation errors returned by Registry_Kubernetes.ValidateAll() if the designated constraints aren't met.

func (Registry_KubernetesMultiError) AllErrors

func (m Registry_KubernetesMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Registry_KubernetesMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type Registry_KubernetesValidationError

type Registry_KubernetesValidationError struct {
	// contains filtered or unexported fields
}

Registry_KubernetesValidationError is the validation error returned by Registry_Kubernetes.Validate if the designated constraints aren't met.

func (Registry_KubernetesValidationError) Cause

Cause function returns cause value.

func (Registry_KubernetesValidationError) Error

Error satisfies the builtin error interface

func (Registry_KubernetesValidationError) ErrorName

ErrorName returns error name.

func (Registry_KubernetesValidationError) Field

Field function returns field value.

func (Registry_KubernetesValidationError) Key

Key function returns key value.

func (Registry_KubernetesValidationError) Reason

Reason function returns reason value.

type Registry_Nacos

type Registry_Nacos struct {
	Address             string               `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`                                           // 服务端地址
	Port                uint64               `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`                                                // 服务端端口
	NamespaceId         string               `protobuf:"bytes,3,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"`                //
	LogLevel            string               `protobuf:"bytes,4,opt,name=log_level,json=logLevel,proto3" json:"log_level,omitempty"`                         // 日志等级
	CacheDir            string               `protobuf:"bytes,5,opt,name=cache_dir,json=cacheDir,proto3" json:"cache_dir,omitempty"`                         // 缓存目录
	LogDir              string               `protobuf:"bytes,6,opt,name=log_dir,json=logDir,proto3" json:"log_dir,omitempty"`                               // 日志目录
	UpdateThreadNum     int32                `protobuf:"varint,7,opt,name=update_thread_num,json=updateThreadNum,proto3" json:"update_thread_num,omitempty"` // 更新服务的线程数
	Timeout             *durationpb.Duration `protobuf:"bytes,8,opt,name=timeout,proto3" json:"timeout,omitempty"`                                           // http请求超时时间,单位: 毫秒
	BeatInterval        *durationpb.Duration `protobuf:"bytes,9,opt,name=beat_interval,json=beatInterval,proto3" json:"beat_interval,omitempty"`             // 心跳间隔时间,单位: 毫秒
	NotLoadCacheAtStart bool                 ``                                                                                                              // 在启动时不读取本地缓存数据,true: 不读取,false: 读取
	/* 126-byte string literal not displayed */
	UpdateCacheWhenEmpty bool `` // 当服务列表为空时是否更新本地缓存,true: 更新,false: 不更新
	/* 127-byte string literal not displayed */
	// contains filtered or unexported fields
}

Nacos

func (*Registry_Nacos) Descriptor deprecated

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

Deprecated: Use Registry_Nacos.ProtoReflect.Descriptor instead.

func (*Registry_Nacos) GetAddress

func (x *Registry_Nacos) GetAddress() string

func (*Registry_Nacos) GetBeatInterval

func (x *Registry_Nacos) GetBeatInterval() *durationpb.Duration

func (*Registry_Nacos) GetCacheDir

func (x *Registry_Nacos) GetCacheDir() string

func (*Registry_Nacos) GetLogDir

func (x *Registry_Nacos) GetLogDir() string

func (*Registry_Nacos) GetLogLevel

func (x *Registry_Nacos) GetLogLevel() string

func (*Registry_Nacos) GetNamespaceId

func (x *Registry_Nacos) GetNamespaceId() string

func (*Registry_Nacos) GetNotLoadCacheAtStart

func (x *Registry_Nacos) GetNotLoadCacheAtStart() bool

func (*Registry_Nacos) GetPort

func (x *Registry_Nacos) GetPort() uint64

func (*Registry_Nacos) GetTimeout

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

func (*Registry_Nacos) GetUpdateCacheWhenEmpty

func (x *Registry_Nacos) GetUpdateCacheWhenEmpty() bool

func (*Registry_Nacos) GetUpdateThreadNum

func (x *Registry_Nacos) GetUpdateThreadNum() int32

func (*Registry_Nacos) ProtoMessage

func (*Registry_Nacos) ProtoMessage()

func (*Registry_Nacos) ProtoReflect

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

func (*Registry_Nacos) Reset

func (x *Registry_Nacos) Reset()

func (*Registry_Nacos) String

func (x *Registry_Nacos) String() string

func (*Registry_Nacos) Validate

func (m *Registry_Nacos) Validate() error

Validate checks the field values on Registry_Nacos with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Registry_Nacos) ValidateAll

func (m *Registry_Nacos) ValidateAll() error

ValidateAll checks the field values on Registry_Nacos with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Registry_NacosMultiError, or nil if none found.

type Registry_NacosMultiError

type Registry_NacosMultiError []error

Registry_NacosMultiError is an error wrapping multiple validation errors returned by Registry_Nacos.ValidateAll() if the designated constraints aren't met.

func (Registry_NacosMultiError) AllErrors

func (m Registry_NacosMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Registry_NacosMultiError) Error

func (m Registry_NacosMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type Registry_NacosValidationError

type Registry_NacosValidationError struct {
	// contains filtered or unexported fields
}

Registry_NacosValidationError is the validation error returned by Registry_Nacos.Validate if the designated constraints aren't met.

func (Registry_NacosValidationError) Cause

Cause function returns cause value.

func (Registry_NacosValidationError) Error

Error satisfies the builtin error interface

func (Registry_NacosValidationError) ErrorName

func (e Registry_NacosValidationError) ErrorName() string

ErrorName returns error name.

func (Registry_NacosValidationError) Field

Field function returns field value.

func (Registry_NacosValidationError) Key

Key function returns key value.

func (Registry_NacosValidationError) Reason

Reason function returns reason value.

type Registry_Polaris

type Registry_Polaris struct {
	Address       string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // 服务端地址
	Port          int32  `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`      // 服务端端口
	InstanceCount int32  `protobuf:"varint,3,opt,name=instance_count,json=instanceCount,proto3" json:"instance_count,omitempty"`
	Namespace     string `protobuf:"bytes,4,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Service       string `protobuf:"bytes,5,opt,name=service,proto3" json:"service,omitempty"`
	Token         string `protobuf:"bytes,6,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

Polaris

func (*Registry_Polaris) Descriptor deprecated

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

Deprecated: Use Registry_Polaris.ProtoReflect.Descriptor instead.

func (*Registry_Polaris) GetAddress

func (x *Registry_Polaris) GetAddress() string

func (*Registry_Polaris) GetInstanceCount

func (x *Registry_Polaris) GetInstanceCount() int32

func (*Registry_Polaris) GetNamespace

func (x *Registry_Polaris) GetNamespace() string

func (*Registry_Polaris) GetPort

func (x *Registry_Polaris) GetPort() int32

func (*Registry_Polaris) GetService

func (x *Registry_Polaris) GetService() string

func (*Registry_Polaris) GetToken

func (x *Registry_Polaris) GetToken() string

func (*Registry_Polaris) ProtoMessage

func (*Registry_Polaris) ProtoMessage()

func (*Registry_Polaris) ProtoReflect

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

func (*Registry_Polaris) Reset

func (x *Registry_Polaris) Reset()

func (*Registry_Polaris) String

func (x *Registry_Polaris) String() string

func (*Registry_Polaris) Validate

func (m *Registry_Polaris) Validate() error

Validate checks the field values on Registry_Polaris with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Registry_Polaris) ValidateAll

func (m *Registry_Polaris) ValidateAll() error

ValidateAll checks the field values on Registry_Polaris with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Registry_PolarisMultiError, or nil if none found.

type Registry_PolarisMultiError

type Registry_PolarisMultiError []error

Registry_PolarisMultiError is an error wrapping multiple validation errors returned by Registry_Polaris.ValidateAll() if the designated constraints aren't met.

func (Registry_PolarisMultiError) AllErrors

func (m Registry_PolarisMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Registry_PolarisMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type Registry_PolarisValidationError

type Registry_PolarisValidationError struct {
	// contains filtered or unexported fields
}

Registry_PolarisValidationError is the validation error returned by Registry_Polaris.Validate if the designated constraints aren't met.

func (Registry_PolarisValidationError) Cause

Cause function returns cause value.

func (Registry_PolarisValidationError) Error

Error satisfies the builtin error interface

func (Registry_PolarisValidationError) ErrorName

ErrorName returns error name.

func (Registry_PolarisValidationError) Field

Field function returns field value.

func (Registry_PolarisValidationError) Key

Key function returns key value.

func (Registry_PolarisValidationError) Reason

Reason function returns reason value.

type Registry_Servicecomb

type Registry_Servicecomb struct {
	Endpoints []string `protobuf:"bytes,1,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
	// contains filtered or unexported fields
}

Servicecomb

func (*Registry_Servicecomb) Descriptor deprecated

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

Deprecated: Use Registry_Servicecomb.ProtoReflect.Descriptor instead.

func (*Registry_Servicecomb) GetEndpoints

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

func (*Registry_Servicecomb) ProtoMessage

func (*Registry_Servicecomb) ProtoMessage()

func (*Registry_Servicecomb) ProtoReflect

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

func (*Registry_Servicecomb) Reset

func (x *Registry_Servicecomb) Reset()

func (*Registry_Servicecomb) String

func (x *Registry_Servicecomb) String() string

func (*Registry_Servicecomb) Validate

func (m *Registry_Servicecomb) Validate() error

Validate checks the field values on Registry_Servicecomb with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Registry_Servicecomb) ValidateAll

func (m *Registry_Servicecomb) ValidateAll() error

ValidateAll checks the field values on Registry_Servicecomb with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Registry_ServicecombMultiError, or nil if none found.

type Registry_ServicecombMultiError

type Registry_ServicecombMultiError []error

Registry_ServicecombMultiError is an error wrapping multiple validation errors returned by Registry_Servicecomb.ValidateAll() if the designated constraints aren't met.

func (Registry_ServicecombMultiError) AllErrors

func (m Registry_ServicecombMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Registry_ServicecombMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type Registry_ServicecombValidationError

type Registry_ServicecombValidationError struct {
	// contains filtered or unexported fields
}

Registry_ServicecombValidationError is the validation error returned by Registry_Servicecomb.Validate if the designated constraints aren't met.

func (Registry_ServicecombValidationError) Cause

Cause function returns cause value.

func (Registry_ServicecombValidationError) Error

Error satisfies the builtin error interface

func (Registry_ServicecombValidationError) ErrorName

ErrorName returns error name.

func (Registry_ServicecombValidationError) Field

Field function returns field value.

func (Registry_ServicecombValidationError) Key

Key function returns key value.

func (Registry_ServicecombValidationError) Reason

Reason function returns reason value.

type Registry_ZooKeeper

type Registry_ZooKeeper struct {
	Endpoints []string             `protobuf:"bytes,1,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
	Timeout   *durationpb.Duration `protobuf:"bytes,2,opt,name=timeout,proto3" json:"timeout,omitempty"`
	// contains filtered or unexported fields
}

ZooKeeper

func (*Registry_ZooKeeper) Descriptor deprecated

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

Deprecated: Use Registry_ZooKeeper.ProtoReflect.Descriptor instead.

func (*Registry_ZooKeeper) GetEndpoints

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

func (*Registry_ZooKeeper) GetTimeout

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

func (*Registry_ZooKeeper) ProtoMessage

func (*Registry_ZooKeeper) ProtoMessage()

func (*Registry_ZooKeeper) ProtoReflect

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

func (*Registry_ZooKeeper) Reset

func (x *Registry_ZooKeeper) Reset()

func (*Registry_ZooKeeper) String

func (x *Registry_ZooKeeper) String() string

func (*Registry_ZooKeeper) Validate

func (m *Registry_ZooKeeper) Validate() error

Validate checks the field values on Registry_ZooKeeper with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Registry_ZooKeeper) ValidateAll

func (m *Registry_ZooKeeper) ValidateAll() error

ValidateAll checks the field values on Registry_ZooKeeper with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Registry_ZooKeeperMultiError, or nil if none found.

type Registry_ZooKeeperMultiError

type Registry_ZooKeeperMultiError []error

Registry_ZooKeeperMultiError is an error wrapping multiple validation errors returned by Registry_ZooKeeper.ValidateAll() if the designated constraints aren't met.

func (Registry_ZooKeeperMultiError) AllErrors

func (m Registry_ZooKeeperMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Registry_ZooKeeperMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type Registry_ZooKeeperValidationError

type Registry_ZooKeeperValidationError struct {
	// contains filtered or unexported fields
}

Registry_ZooKeeperValidationError is the validation error returned by Registry_ZooKeeper.Validate if the designated constraints aren't met.

func (Registry_ZooKeeperValidationError) Cause

Cause function returns cause value.

func (Registry_ZooKeeperValidationError) Error

Error satisfies the builtin error interface

func (Registry_ZooKeeperValidationError) ErrorName

ErrorName returns error name.

func (Registry_ZooKeeperValidationError) Field

Field function returns field value.

func (Registry_ZooKeeperValidationError) Key

Key function returns key value.

func (Registry_ZooKeeperValidationError) Reason

Reason function returns reason value.

type RemoteConfig

type RemoteConfig struct {
	Type       string                   `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Etcd       *RemoteConfig_Etcd       `protobuf:"bytes,2,opt,name=etcd,proto3" json:"etcd,omitempty"`
	Consul     *RemoteConfig_Consul     `protobuf:"bytes,3,opt,name=consul,proto3" json:"consul,omitempty"`
	Nacos      *RemoteConfig_Nacos      `protobuf:"bytes,4,opt,name=nacos,proto3" json:"nacos,omitempty"`
	Apollo     *RemoteConfig_Apollo     `protobuf:"bytes,6,opt,name=apollo,proto3" json:"apollo,omitempty"`
	Kubernetes *RemoteConfig_Kubernetes `protobuf:"bytes,7,opt,name=kubernetes,proto3" json:"kubernetes,omitempty"`
	Polaris    *RemoteConfig_Polaris    `protobuf:"bytes,8,opt,name=polaris,proto3" json:"polaris,omitempty"`
	// contains filtered or unexported fields
}

配置服务

func (*RemoteConfig) Descriptor deprecated

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

Deprecated: Use RemoteConfig.ProtoReflect.Descriptor instead.

func (*RemoteConfig) GetApollo

func (x *RemoteConfig) GetApollo() *RemoteConfig_Apollo

func (*RemoteConfig) GetConsul

func (x *RemoteConfig) GetConsul() *RemoteConfig_Consul

func (*RemoteConfig) GetEtcd

func (x *RemoteConfig) GetEtcd() *RemoteConfig_Etcd

func (*RemoteConfig) GetKubernetes

func (x *RemoteConfig) GetKubernetes() *RemoteConfig_Kubernetes

func (*RemoteConfig) GetNacos

func (x *RemoteConfig) GetNacos() *RemoteConfig_Nacos

func (*RemoteConfig) GetPolaris

func (x *RemoteConfig) GetPolaris() *RemoteConfig_Polaris

func (*RemoteConfig) GetType

func (x *RemoteConfig) GetType() string

func (*RemoteConfig) ProtoMessage

func (*RemoteConfig) ProtoMessage()

func (*RemoteConfig) ProtoReflect

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

func (*RemoteConfig) Reset

func (x *RemoteConfig) Reset()

func (*RemoteConfig) String

func (x *RemoteConfig) String() string

func (*RemoteConfig) Validate

func (m *RemoteConfig) Validate() error

Validate checks the field values on RemoteConfig with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*RemoteConfig) ValidateAll

func (m *RemoteConfig) ValidateAll() error

ValidateAll checks the field values on RemoteConfig with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RemoteConfigMultiError, or nil if none found.

type RemoteConfigMultiError

type RemoteConfigMultiError []error

RemoteConfigMultiError is an error wrapping multiple validation errors returned by RemoteConfig.ValidateAll() if the designated constraints aren't met.

func (RemoteConfigMultiError) AllErrors

func (m RemoteConfigMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RemoteConfigMultiError) Error

func (m RemoteConfigMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type RemoteConfigValidationError

type RemoteConfigValidationError struct {
	// contains filtered or unexported fields
}

RemoteConfigValidationError is the validation error returned by RemoteConfig.Validate if the designated constraints aren't met.

func (RemoteConfigValidationError) Cause

Cause function returns cause value.

func (RemoteConfigValidationError) Error

Error satisfies the builtin error interface

func (RemoteConfigValidationError) ErrorName

func (e RemoteConfigValidationError) ErrorName() string

ErrorName returns error name.

func (RemoteConfigValidationError) Field

Field function returns field value.

func (RemoteConfigValidationError) Key

Key function returns key value.

func (RemoteConfigValidationError) Reason

Reason function returns reason value.

type RemoteConfig_Apollo

type RemoteConfig_Apollo struct {
	Endpoint  string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
	AppId     string `protobuf:"bytes,2,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"`
	Cluster   string `protobuf:"bytes,3,opt,name=cluster,proto3" json:"cluster,omitempty"`
	Namespace string `protobuf:"bytes,4,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Secret    string `protobuf:"bytes,5,opt,name=secret,proto3" json:"secret,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoteConfig_Apollo) Descriptor deprecated

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

Deprecated: Use RemoteConfig_Apollo.ProtoReflect.Descriptor instead.

func (*RemoteConfig_Apollo) GetAppId

func (x *RemoteConfig_Apollo) GetAppId() string

func (*RemoteConfig_Apollo) GetCluster

func (x *RemoteConfig_Apollo) GetCluster() string

func (*RemoteConfig_Apollo) GetEndpoint

func (x *RemoteConfig_Apollo) GetEndpoint() string

func (*RemoteConfig_Apollo) GetNamespace

func (x *RemoteConfig_Apollo) GetNamespace() string

func (*RemoteConfig_Apollo) GetSecret

func (x *RemoteConfig_Apollo) GetSecret() string

func (*RemoteConfig_Apollo) ProtoMessage

func (*RemoteConfig_Apollo) ProtoMessage()

func (*RemoteConfig_Apollo) ProtoReflect

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

func (*RemoteConfig_Apollo) Reset

func (x *RemoteConfig_Apollo) Reset()

func (*RemoteConfig_Apollo) String

func (x *RemoteConfig_Apollo) String() string

func (*RemoteConfig_Apollo) Validate

func (m *RemoteConfig_Apollo) Validate() error

Validate checks the field values on RemoteConfig_Apollo with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*RemoteConfig_Apollo) ValidateAll

func (m *RemoteConfig_Apollo) ValidateAll() error

ValidateAll checks the field values on RemoteConfig_Apollo with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RemoteConfig_ApolloMultiError, or nil if none found.

type RemoteConfig_ApolloMultiError

type RemoteConfig_ApolloMultiError []error

RemoteConfig_ApolloMultiError is an error wrapping multiple validation errors returned by RemoteConfig_Apollo.ValidateAll() if the designated constraints aren't met.

func (RemoteConfig_ApolloMultiError) AllErrors

func (m RemoteConfig_ApolloMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RemoteConfig_ApolloMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type RemoteConfig_ApolloValidationError

type RemoteConfig_ApolloValidationError struct {
	// contains filtered or unexported fields
}

RemoteConfig_ApolloValidationError is the validation error returned by RemoteConfig_Apollo.Validate if the designated constraints aren't met.

func (RemoteConfig_ApolloValidationError) Cause

Cause function returns cause value.

func (RemoteConfig_ApolloValidationError) Error

Error satisfies the builtin error interface

func (RemoteConfig_ApolloValidationError) ErrorName

ErrorName returns error name.

func (RemoteConfig_ApolloValidationError) Field

Field function returns field value.

func (RemoteConfig_ApolloValidationError) Key

Key function returns key value.

func (RemoteConfig_ApolloValidationError) Reason

Reason function returns reason value.

type RemoteConfig_Consul

type RemoteConfig_Consul struct {
	Scheme  string `protobuf:"bytes,1,opt,name=scheme,proto3" json:"scheme,omitempty"`   // 网络样式
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` // 服务端地址
	Key     string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`         //
	// contains filtered or unexported fields
}

func (*RemoteConfig_Consul) Descriptor deprecated

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

Deprecated: Use RemoteConfig_Consul.ProtoReflect.Descriptor instead.

func (*RemoteConfig_Consul) GetAddress

func (x *RemoteConfig_Consul) GetAddress() string

func (*RemoteConfig_Consul) GetKey

func (x *RemoteConfig_Consul) GetKey() string

func (*RemoteConfig_Consul) GetScheme

func (x *RemoteConfig_Consul) GetScheme() string

func (*RemoteConfig_Consul) ProtoMessage

func (*RemoteConfig_Consul) ProtoMessage()

func (*RemoteConfig_Consul) ProtoReflect

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

func (*RemoteConfig_Consul) Reset

func (x *RemoteConfig_Consul) Reset()

func (*RemoteConfig_Consul) String

func (x *RemoteConfig_Consul) String() string

func (*RemoteConfig_Consul) Validate

func (m *RemoteConfig_Consul) Validate() error

Validate checks the field values on RemoteConfig_Consul with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*RemoteConfig_Consul) ValidateAll

func (m *RemoteConfig_Consul) ValidateAll() error

ValidateAll checks the field values on RemoteConfig_Consul with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RemoteConfig_ConsulMultiError, or nil if none found.

type RemoteConfig_ConsulMultiError

type RemoteConfig_ConsulMultiError []error

RemoteConfig_ConsulMultiError is an error wrapping multiple validation errors returned by RemoteConfig_Consul.ValidateAll() if the designated constraints aren't met.

func (RemoteConfig_ConsulMultiError) AllErrors

func (m RemoteConfig_ConsulMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RemoteConfig_ConsulMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type RemoteConfig_ConsulValidationError

type RemoteConfig_ConsulValidationError struct {
	// contains filtered or unexported fields
}

RemoteConfig_ConsulValidationError is the validation error returned by RemoteConfig_Consul.Validate if the designated constraints aren't met.

func (RemoteConfig_ConsulValidationError) Cause

Cause function returns cause value.

func (RemoteConfig_ConsulValidationError) Error

Error satisfies the builtin error interface

func (RemoteConfig_ConsulValidationError) ErrorName

ErrorName returns error name.

func (RemoteConfig_ConsulValidationError) Field

Field function returns field value.

func (RemoteConfig_ConsulValidationError) Key

Key function returns key value.

func (RemoteConfig_ConsulValidationError) Reason

Reason function returns reason value.

type RemoteConfig_Etcd

type RemoteConfig_Etcd struct {
	Endpoints []string             `protobuf:"bytes,1,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
	Timeout   *durationpb.Duration `protobuf:"bytes,2,opt,name=timeout,proto3" json:"timeout,omitempty"`
	Key       string               `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` //
	// contains filtered or unexported fields
}

func (*RemoteConfig_Etcd) Descriptor deprecated

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

Deprecated: Use RemoteConfig_Etcd.ProtoReflect.Descriptor instead.

func (*RemoteConfig_Etcd) GetEndpoints

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

func (*RemoteConfig_Etcd) GetKey

func (x *RemoteConfig_Etcd) GetKey() string

func (*RemoteConfig_Etcd) GetTimeout

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

func (*RemoteConfig_Etcd) ProtoMessage

func (*RemoteConfig_Etcd) ProtoMessage()

func (*RemoteConfig_Etcd) ProtoReflect

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

func (*RemoteConfig_Etcd) Reset

func (x *RemoteConfig_Etcd) Reset()

func (*RemoteConfig_Etcd) String

func (x *RemoteConfig_Etcd) String() string

func (*RemoteConfig_Etcd) Validate

func (m *RemoteConfig_Etcd) Validate() error

Validate checks the field values on RemoteConfig_Etcd with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*RemoteConfig_Etcd) ValidateAll

func (m *RemoteConfig_Etcd) ValidateAll() error

ValidateAll checks the field values on RemoteConfig_Etcd with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RemoteConfig_EtcdMultiError, or nil if none found.

type RemoteConfig_EtcdMultiError

type RemoteConfig_EtcdMultiError []error

RemoteConfig_EtcdMultiError is an error wrapping multiple validation errors returned by RemoteConfig_Etcd.ValidateAll() if the designated constraints aren't met.

func (RemoteConfig_EtcdMultiError) AllErrors

func (m RemoteConfig_EtcdMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RemoteConfig_EtcdMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type RemoteConfig_EtcdValidationError

type RemoteConfig_EtcdValidationError struct {
	// contains filtered or unexported fields
}

RemoteConfig_EtcdValidationError is the validation error returned by RemoteConfig_Etcd.Validate if the designated constraints aren't met.

func (RemoteConfig_EtcdValidationError) Cause

Cause function returns cause value.

func (RemoteConfig_EtcdValidationError) Error

Error satisfies the builtin error interface

func (RemoteConfig_EtcdValidationError) ErrorName

ErrorName returns error name.

func (RemoteConfig_EtcdValidationError) Field

Field function returns field value.

func (RemoteConfig_EtcdValidationError) Key

Key function returns key value.

func (RemoteConfig_EtcdValidationError) Reason

Reason function returns reason value.

type RemoteConfig_Kubernetes

type RemoteConfig_Kubernetes struct {
	Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoteConfig_Kubernetes) Descriptor deprecated

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

Deprecated: Use RemoteConfig_Kubernetes.ProtoReflect.Descriptor instead.

func (*RemoteConfig_Kubernetes) GetNamespace

func (x *RemoteConfig_Kubernetes) GetNamespace() string

func (*RemoteConfig_Kubernetes) ProtoMessage

func (*RemoteConfig_Kubernetes) ProtoMessage()

func (*RemoteConfig_Kubernetes) ProtoReflect

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

func (*RemoteConfig_Kubernetes) Reset

func (x *RemoteConfig_Kubernetes) Reset()

func (*RemoteConfig_Kubernetes) String

func (x *RemoteConfig_Kubernetes) String() string

func (*RemoteConfig_Kubernetes) Validate

func (m *RemoteConfig_Kubernetes) Validate() error

Validate checks the field values on RemoteConfig_Kubernetes with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*RemoteConfig_Kubernetes) ValidateAll

func (m *RemoteConfig_Kubernetes) ValidateAll() error

ValidateAll checks the field values on RemoteConfig_Kubernetes with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RemoteConfig_KubernetesMultiError, or nil if none found.

type RemoteConfig_KubernetesMultiError

type RemoteConfig_KubernetesMultiError []error

RemoteConfig_KubernetesMultiError is an error wrapping multiple validation errors returned by RemoteConfig_Kubernetes.ValidateAll() if the designated constraints aren't met.

func (RemoteConfig_KubernetesMultiError) AllErrors

func (m RemoteConfig_KubernetesMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RemoteConfig_KubernetesMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type RemoteConfig_KubernetesValidationError

type RemoteConfig_KubernetesValidationError struct {
	// contains filtered or unexported fields
}

RemoteConfig_KubernetesValidationError is the validation error returned by RemoteConfig_Kubernetes.Validate if the designated constraints aren't met.

func (RemoteConfig_KubernetesValidationError) Cause

Cause function returns cause value.

func (RemoteConfig_KubernetesValidationError) Error

Error satisfies the builtin error interface

func (RemoteConfig_KubernetesValidationError) ErrorName

ErrorName returns error name.

func (RemoteConfig_KubernetesValidationError) Field

Field function returns field value.

func (RemoteConfig_KubernetesValidationError) Key

Key function returns key value.

func (RemoteConfig_KubernetesValidationError) Reason

Reason function returns reason value.

type RemoteConfig_Nacos

type RemoteConfig_Nacos struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // 服务端地址
	Port    uint64 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`      // 服务端端口
	Key     string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`         //
	// contains filtered or unexported fields
}

func (*RemoteConfig_Nacos) Descriptor deprecated

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

Deprecated: Use RemoteConfig_Nacos.ProtoReflect.Descriptor instead.

func (*RemoteConfig_Nacos) GetAddress

func (x *RemoteConfig_Nacos) GetAddress() string

func (*RemoteConfig_Nacos) GetKey

func (x *RemoteConfig_Nacos) GetKey() string

func (*RemoteConfig_Nacos) GetPort

func (x *RemoteConfig_Nacos) GetPort() uint64

func (*RemoteConfig_Nacos) ProtoMessage

func (*RemoteConfig_Nacos) ProtoMessage()

func (*RemoteConfig_Nacos) ProtoReflect

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

func (*RemoteConfig_Nacos) Reset

func (x *RemoteConfig_Nacos) Reset()

func (*RemoteConfig_Nacos) String

func (x *RemoteConfig_Nacos) String() string

func (*RemoteConfig_Nacos) Validate

func (m *RemoteConfig_Nacos) Validate() error

Validate checks the field values on RemoteConfig_Nacos with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*RemoteConfig_Nacos) ValidateAll

func (m *RemoteConfig_Nacos) ValidateAll() error

ValidateAll checks the field values on RemoteConfig_Nacos with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RemoteConfig_NacosMultiError, or nil if none found.

type RemoteConfig_NacosMultiError

type RemoteConfig_NacosMultiError []error

RemoteConfig_NacosMultiError is an error wrapping multiple validation errors returned by RemoteConfig_Nacos.ValidateAll() if the designated constraints aren't met.

func (RemoteConfig_NacosMultiError) AllErrors

func (m RemoteConfig_NacosMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RemoteConfig_NacosMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type RemoteConfig_NacosValidationError

type RemoteConfig_NacosValidationError struct {
	// contains filtered or unexported fields
}

RemoteConfig_NacosValidationError is the validation error returned by RemoteConfig_Nacos.Validate if the designated constraints aren't met.

func (RemoteConfig_NacosValidationError) Cause

Cause function returns cause value.

func (RemoteConfig_NacosValidationError) Error

Error satisfies the builtin error interface

func (RemoteConfig_NacosValidationError) ErrorName

ErrorName returns error name.

func (RemoteConfig_NacosValidationError) Field

Field function returns field value.

func (RemoteConfig_NacosValidationError) Key

Key function returns key value.

func (RemoteConfig_NacosValidationError) Reason

Reason function returns reason value.

type RemoteConfig_Polaris

type RemoteConfig_Polaris struct {
	// contains filtered or unexported fields
}

func (*RemoteConfig_Polaris) Descriptor deprecated

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

Deprecated: Use RemoteConfig_Polaris.ProtoReflect.Descriptor instead.

func (*RemoteConfig_Polaris) ProtoMessage

func (*RemoteConfig_Polaris) ProtoMessage()

func (*RemoteConfig_Polaris) ProtoReflect

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

func (*RemoteConfig_Polaris) Reset

func (x *RemoteConfig_Polaris) Reset()

func (*RemoteConfig_Polaris) String

func (x *RemoteConfig_Polaris) String() string

func (*RemoteConfig_Polaris) Validate

func (m *RemoteConfig_Polaris) Validate() error

Validate checks the field values on RemoteConfig_Polaris with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*RemoteConfig_Polaris) ValidateAll

func (m *RemoteConfig_Polaris) ValidateAll() error

ValidateAll checks the field values on RemoteConfig_Polaris with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RemoteConfig_PolarisMultiError, or nil if none found.

type RemoteConfig_PolarisMultiError

type RemoteConfig_PolarisMultiError []error

RemoteConfig_PolarisMultiError is an error wrapping multiple validation errors returned by RemoteConfig_Polaris.ValidateAll() if the designated constraints aren't met.

func (RemoteConfig_PolarisMultiError) AllErrors

func (m RemoteConfig_PolarisMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RemoteConfig_PolarisMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type RemoteConfig_PolarisValidationError

type RemoteConfig_PolarisValidationError struct {
	// contains filtered or unexported fields
}

RemoteConfig_PolarisValidationError is the validation error returned by RemoteConfig_Polaris.Validate if the designated constraints aren't met.

func (RemoteConfig_PolarisValidationError) Cause

Cause function returns cause value.

func (RemoteConfig_PolarisValidationError) Error

Error satisfies the builtin error interface

func (RemoteConfig_PolarisValidationError) ErrorName

ErrorName returns error name.

func (RemoteConfig_PolarisValidationError) Field

Field function returns field value.

func (RemoteConfig_PolarisValidationError) Key

Key function returns key value.

func (RemoteConfig_PolarisValidationError) Reason

Reason function returns reason value.

type Server

type Server struct {
	Http      *Server_HTTP      `protobuf:"bytes,1,opt,name=http,proto3" json:"http,omitempty"`           // HTTP服务
	Grpc      *Server_GRPC      `protobuf:"bytes,2,opt,name=grpc,proto3" json:"grpc,omitempty"`           // GRPC服务
	Websocket *Server_Websocket `protobuf:"bytes,3,opt,name=websocket,proto3" json:"websocket,omitempty"` // Websocket服务
	Mqtt      *Server_Mqtt      `protobuf:"bytes,4,opt,name=mqtt,proto3" json:"mqtt,omitempty"`           // MQTT服务
	Kafka     *Server_Kafka     `protobuf:"bytes,5,opt,name=kafka,proto3" json:"kafka,omitempty"`         // Kafka服务
	Rabbitmq  *Server_RabbitMQ  `protobuf:"bytes,6,opt,name=rabbitmq,proto3" json:"rabbitmq,omitempty"`   // RabbitMQ服务
	// contains filtered or unexported fields
}

服务器

func (*Server) Descriptor deprecated

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

Deprecated: Use Server.ProtoReflect.Descriptor instead.

func (*Server) GetGrpc

func (x *Server) GetGrpc() *Server_GRPC

func (*Server) GetHttp

func (x *Server) GetHttp() *Server_HTTP

func (*Server) GetKafka

func (x *Server) GetKafka() *Server_Kafka

func (*Server) GetMqtt

func (x *Server) GetMqtt() *Server_Mqtt

func (*Server) GetRabbitmq

func (x *Server) GetRabbitmq() *Server_RabbitMQ

func (*Server) GetWebsocket

func (x *Server) GetWebsocket() *Server_Websocket

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

func (*Server) Validate

func (m *Server) Validate() error

Validate checks the field values on Server with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Server) ValidateAll

func (m *Server) ValidateAll() error

ValidateAll checks the field values on Server with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ServerMultiError, or nil if none found.

type ServerMultiError

type ServerMultiError []error

ServerMultiError is an error wrapping multiple validation errors returned by Server.ValidateAll() if the designated constraints aren't met.

func (ServerMultiError) AllErrors

func (m ServerMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ServerMultiError) Error

func (m ServerMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ServerValidationError

type ServerValidationError struct {
	// contains filtered or unexported fields
}

ServerValidationError is the validation error returned by Server.Validate if the designated constraints aren't met.

func (ServerValidationError) Cause

func (e ServerValidationError) Cause() error

Cause function returns cause value.

func (ServerValidationError) Error

func (e ServerValidationError) Error() string

Error satisfies the builtin error interface

func (ServerValidationError) ErrorName

func (e ServerValidationError) ErrorName() string

ErrorName returns error name.

func (ServerValidationError) Field

func (e ServerValidationError) Field() string

Field function returns field value.

func (ServerValidationError) Key

func (e ServerValidationError) Key() bool

Key function returns key value.

func (ServerValidationError) Reason

func (e ServerValidationError) Reason() string

Reason function returns reason value.

type Server_GRPC

type Server_GRPC struct {
	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
}

GPRC

func (*Server_GRPC) Descriptor deprecated

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

Deprecated: Use Server_GRPC.ProtoReflect.Descriptor instead.

func (*Server_GRPC) GetAddr

func (x *Server_GRPC) GetAddr() string

func (*Server_GRPC) GetNetwork

func (x *Server_GRPC) GetNetwork() string

func (*Server_GRPC) GetTimeout

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

func (*Server_GRPC) ProtoMessage

func (*Server_GRPC) ProtoMessage()

func (*Server_GRPC) ProtoReflect

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

func (*Server_GRPC) Reset

func (x *Server_GRPC) Reset()

func (*Server_GRPC) String

func (x *Server_GRPC) String() string

func (*Server_GRPC) Validate

func (m *Server_GRPC) Validate() error

Validate checks the field values on Server_GRPC with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Server_GRPC) ValidateAll

func (m *Server_GRPC) ValidateAll() error

ValidateAll checks the field values on Server_GRPC with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Server_GRPCMultiError, or nil if none found.

type Server_GRPCMultiError

type Server_GRPCMultiError []error

Server_GRPCMultiError is an error wrapping multiple validation errors returned by Server_GRPC.ValidateAll() if the designated constraints aren't met.

func (Server_GRPCMultiError) AllErrors

func (m Server_GRPCMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Server_GRPCMultiError) Error

func (m Server_GRPCMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type Server_GRPCValidationError

type Server_GRPCValidationError struct {
	// contains filtered or unexported fields
}

Server_GRPCValidationError is the validation error returned by Server_GRPC.Validate if the designated constraints aren't met.

func (Server_GRPCValidationError) Cause

Cause function returns cause value.

func (Server_GRPCValidationError) Error

Error satisfies the builtin error interface

func (Server_GRPCValidationError) ErrorName

func (e Server_GRPCValidationError) ErrorName() string

ErrorName returns error name.

func (Server_GRPCValidationError) Field

Field function returns field value.

func (Server_GRPCValidationError) Key

Key function returns key value.

func (Server_GRPCValidationError) Reason

Reason function returns reason value.

type Server_HTTP

type Server_HTTP 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"` // 超时时间
	Headers []string             `protobuf:"bytes,4,rep,name=headers,proto3" json:"headers,omitempty"` //
	Methods []string             `protobuf:"bytes,5,rep,name=methods,proto3" json:"methods,omitempty"` //
	Origins []string             `protobuf:"bytes,6,rep,name=origins,proto3" json:"origins,omitempty"` //
	// contains filtered or unexported fields
}

HTTP

func (*Server_HTTP) Descriptor deprecated

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

Deprecated: Use Server_HTTP.ProtoReflect.Descriptor instead.

func (*Server_HTTP) GetAddr

func (x *Server_HTTP) GetAddr() string

func (*Server_HTTP) GetHeaders

func (x *Server_HTTP) GetHeaders() []string

func (*Server_HTTP) GetMethods

func (x *Server_HTTP) GetMethods() []string

func (*Server_HTTP) GetNetwork

func (x *Server_HTTP) GetNetwork() string

func (*Server_HTTP) GetOrigins

func (x *Server_HTTP) GetOrigins() []string

func (*Server_HTTP) GetTimeout

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

func (*Server_HTTP) ProtoMessage

func (*Server_HTTP) ProtoMessage()

func (*Server_HTTP) ProtoReflect

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

func (*Server_HTTP) Reset

func (x *Server_HTTP) Reset()

func (*Server_HTTP) String

func (x *Server_HTTP) String() string

func (*Server_HTTP) Validate

func (m *Server_HTTP) Validate() error

Validate checks the field values on Server_HTTP with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Server_HTTP) ValidateAll

func (m *Server_HTTP) ValidateAll() error

ValidateAll checks the field values on Server_HTTP with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Server_HTTPMultiError, or nil if none found.

type Server_HTTPMultiError

type Server_HTTPMultiError []error

Server_HTTPMultiError is an error wrapping multiple validation errors returned by Server_HTTP.ValidateAll() if the designated constraints aren't met.

func (Server_HTTPMultiError) AllErrors

func (m Server_HTTPMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Server_HTTPMultiError) Error

func (m Server_HTTPMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type Server_HTTPValidationError

type Server_HTTPValidationError struct {
	// contains filtered or unexported fields
}

Server_HTTPValidationError is the validation error returned by Server_HTTP.Validate if the designated constraints aren't met.

func (Server_HTTPValidationError) Cause

Cause function returns cause value.

func (Server_HTTPValidationError) Error

Error satisfies the builtin error interface

func (Server_HTTPValidationError) ErrorName

func (e Server_HTTPValidationError) ErrorName() string

ErrorName returns error name.

func (Server_HTTPValidationError) Field

Field function returns field value.

func (Server_HTTPValidationError) Key

Key function returns key value.

func (Server_HTTPValidationError) Reason

Reason function returns reason value.

type Server_Kafka

type Server_Kafka struct {
	Addrs []string `protobuf:"bytes,1,rep,name=addrs,proto3" json:"addrs,omitempty"` // 对端网络地址
	// contains filtered or unexported fields
}

Kafka

func (*Server_Kafka) Descriptor deprecated

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

Deprecated: Use Server_Kafka.ProtoReflect.Descriptor instead.

func (*Server_Kafka) GetAddrs

func (x *Server_Kafka) GetAddrs() []string

func (*Server_Kafka) ProtoMessage

func (*Server_Kafka) ProtoMessage()

func (*Server_Kafka) ProtoReflect

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

func (*Server_Kafka) Reset

func (x *Server_Kafka) Reset()

func (*Server_Kafka) String

func (x *Server_Kafka) String() string

func (*Server_Kafka) Validate

func (m *Server_Kafka) Validate() error

Validate checks the field values on Server_Kafka with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Server_Kafka) ValidateAll

func (m *Server_Kafka) ValidateAll() error

ValidateAll checks the field values on Server_Kafka with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Server_KafkaMultiError, or nil if none found.

type Server_KafkaMultiError

type Server_KafkaMultiError []error

Server_KafkaMultiError is an error wrapping multiple validation errors returned by Server_Kafka.ValidateAll() if the designated constraints aren't met.

func (Server_KafkaMultiError) AllErrors

func (m Server_KafkaMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Server_KafkaMultiError) Error

func (m Server_KafkaMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type Server_KafkaValidationError

type Server_KafkaValidationError struct {
	// contains filtered or unexported fields
}

Server_KafkaValidationError is the validation error returned by Server_Kafka.Validate if the designated constraints aren't met.

func (Server_KafkaValidationError) Cause

Cause function returns cause value.

func (Server_KafkaValidationError) Error

Error satisfies the builtin error interface

func (Server_KafkaValidationError) ErrorName

func (e Server_KafkaValidationError) ErrorName() string

ErrorName returns error name.

func (Server_KafkaValidationError) Field

Field function returns field value.

func (Server_KafkaValidationError) Key

Key function returns key value.

func (Server_KafkaValidationError) Reason

Reason function returns reason value.

type Server_Mqtt

type Server_Mqtt struct {
	Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` // 对端网络地址
	// contains filtered or unexported fields
}

MQTT

func (*Server_Mqtt) Descriptor deprecated

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

Deprecated: Use Server_Mqtt.ProtoReflect.Descriptor instead.

func (*Server_Mqtt) GetAddr

func (x *Server_Mqtt) GetAddr() string

func (*Server_Mqtt) ProtoMessage

func (*Server_Mqtt) ProtoMessage()

func (*Server_Mqtt) ProtoReflect

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

func (*Server_Mqtt) Reset

func (x *Server_Mqtt) Reset()

func (*Server_Mqtt) String

func (x *Server_Mqtt) String() string

func (*Server_Mqtt) Validate

func (m *Server_Mqtt) Validate() error

Validate checks the field values on Server_Mqtt with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Server_Mqtt) ValidateAll

func (m *Server_Mqtt) ValidateAll() error

ValidateAll checks the field values on Server_Mqtt with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Server_MqttMultiError, or nil if none found.

type Server_MqttMultiError

type Server_MqttMultiError []error

Server_MqttMultiError is an error wrapping multiple validation errors returned by Server_Mqtt.ValidateAll() if the designated constraints aren't met.

func (Server_MqttMultiError) AllErrors

func (m Server_MqttMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Server_MqttMultiError) Error

func (m Server_MqttMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type Server_MqttValidationError

type Server_MqttValidationError struct {
	// contains filtered or unexported fields
}

Server_MqttValidationError is the validation error returned by Server_Mqtt.Validate if the designated constraints aren't met.

func (Server_MqttValidationError) Cause

Cause function returns cause value.

func (Server_MqttValidationError) Error

Error satisfies the builtin error interface

func (Server_MqttValidationError) ErrorName

func (e Server_MqttValidationError) ErrorName() string

ErrorName returns error name.

func (Server_MqttValidationError) Field

Field function returns field value.

func (Server_MqttValidationError) Key

Key function returns key value.

func (Server_MqttValidationError) Reason

Reason function returns reason value.

type Server_RabbitMQ

type Server_RabbitMQ struct {
	Addrs []string `protobuf:"bytes,1,rep,name=addrs,proto3" json:"addrs,omitempty"` // 对端网络地址
	// contains filtered or unexported fields
}

RabbitMQ

func (*Server_RabbitMQ) Descriptor deprecated

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

Deprecated: Use Server_RabbitMQ.ProtoReflect.Descriptor instead.

func (*Server_RabbitMQ) GetAddrs

func (x *Server_RabbitMQ) GetAddrs() []string

func (*Server_RabbitMQ) ProtoMessage

func (*Server_RabbitMQ) ProtoMessage()

func (*Server_RabbitMQ) ProtoReflect

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

func (*Server_RabbitMQ) Reset

func (x *Server_RabbitMQ) Reset()

func (*Server_RabbitMQ) String

func (x *Server_RabbitMQ) String() string

func (*Server_RabbitMQ) Validate

func (m *Server_RabbitMQ) Validate() error

Validate checks the field values on Server_RabbitMQ with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Server_RabbitMQ) ValidateAll

func (m *Server_RabbitMQ) ValidateAll() error

ValidateAll checks the field values on Server_RabbitMQ with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Server_RabbitMQMultiError, or nil if none found.

type Server_RabbitMQMultiError

type Server_RabbitMQMultiError []error

Server_RabbitMQMultiError is an error wrapping multiple validation errors returned by Server_RabbitMQ.ValidateAll() if the designated constraints aren't met.

func (Server_RabbitMQMultiError) AllErrors

func (m Server_RabbitMQMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Server_RabbitMQMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type Server_RabbitMQValidationError

type Server_RabbitMQValidationError struct {
	// contains filtered or unexported fields
}

Server_RabbitMQValidationError is the validation error returned by Server_RabbitMQ.Validate if the designated constraints aren't met.

func (Server_RabbitMQValidationError) Cause

Cause function returns cause value.

func (Server_RabbitMQValidationError) Error

Error satisfies the builtin error interface

func (Server_RabbitMQValidationError) ErrorName

func (e Server_RabbitMQValidationError) ErrorName() string

ErrorName returns error name.

func (Server_RabbitMQValidationError) Field

Field function returns field value.

func (Server_RabbitMQValidationError) Key

Key function returns key value.

func (Server_RabbitMQValidationError) Reason

Reason function returns reason value.

type Server_Websocket

type Server_Websocket struct {
	Network string               `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"` // 网络样式:http、https
	Addr    string               `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`       // 服务监听地址
	Path    string               `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`       // 路径
	Timeout *durationpb.Duration `protobuf:"bytes,4,opt,name=timeout,proto3" json:"timeout,omitempty"` // 超时时间
	// contains filtered or unexported fields
}

Websocket

func (*Server_Websocket) Descriptor deprecated

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

Deprecated: Use Server_Websocket.ProtoReflect.Descriptor instead.

func (*Server_Websocket) GetAddr

func (x *Server_Websocket) GetAddr() string

func (*Server_Websocket) GetNetwork

func (x *Server_Websocket) GetNetwork() string

func (*Server_Websocket) GetPath

func (x *Server_Websocket) GetPath() string

func (*Server_Websocket) GetTimeout

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

func (*Server_Websocket) ProtoMessage

func (*Server_Websocket) ProtoMessage()

func (*Server_Websocket) ProtoReflect

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

func (*Server_Websocket) Reset

func (x *Server_Websocket) Reset()

func (*Server_Websocket) String

func (x *Server_Websocket) String() string

func (*Server_Websocket) Validate

func (m *Server_Websocket) Validate() error

Validate checks the field values on Server_Websocket with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Server_Websocket) ValidateAll

func (m *Server_Websocket) ValidateAll() error

ValidateAll checks the field values on Server_Websocket with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Server_WebsocketMultiError, or nil if none found.

type Server_WebsocketMultiError

type Server_WebsocketMultiError []error

Server_WebsocketMultiError is an error wrapping multiple validation errors returned by Server_Websocket.ValidateAll() if the designated constraints aren't met.

func (Server_WebsocketMultiError) AllErrors

func (m Server_WebsocketMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Server_WebsocketMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type Server_WebsocketValidationError

type Server_WebsocketValidationError struct {
	// contains filtered or unexported fields
}

Server_WebsocketValidationError is the validation error returned by Server_Websocket.Validate if the designated constraints aren't met.

func (Server_WebsocketValidationError) Cause

Cause function returns cause value.

func (Server_WebsocketValidationError) Error

Error satisfies the builtin error interface

func (Server_WebsocketValidationError) ErrorName

ErrorName returns error name.

func (Server_WebsocketValidationError) Field

Field function returns field value.

func (Server_WebsocketValidationError) Key

Key function returns key value.

func (Server_WebsocketValidationError) Reason

Reason function returns reason value.

type Tracer

type Tracer struct {
	Batcher  string  `protobuf:"bytes,1,opt,name=batcher,proto3" json:"batcher,omitempty"`   // jaeger或者zipkin
	Endpoint string  `protobuf:"bytes,2,opt,name=endpoint,proto3" json:"endpoint,omitempty"` // 端口
	Sampler  float64 `protobuf:"fixed64,3,opt,name=sampler,proto3" json:"sampler,omitempty"` // 采样率,默认:1.0
	Env      string  `protobuf:"bytes,4,opt,name=env,proto3" json:"env,omitempty"`           // 运行环境:dev、debug、product
	// contains filtered or unexported fields
}

链路追踪

func (*Tracer) Descriptor deprecated

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

Deprecated: Use Tracer.ProtoReflect.Descriptor instead.

func (*Tracer) GetBatcher

func (x *Tracer) GetBatcher() string

func (*Tracer) GetEndpoint

func (x *Tracer) GetEndpoint() string

func (*Tracer) GetEnv

func (x *Tracer) GetEnv() string

func (*Tracer) GetSampler

func (x *Tracer) GetSampler() float64

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

func (*Tracer) Validate

func (m *Tracer) Validate() error

Validate checks the field values on Tracer with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Tracer) ValidateAll

func (m *Tracer) ValidateAll() error

ValidateAll checks the field values on Tracer with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TracerMultiError, or nil if none found.

type TracerMultiError

type TracerMultiError []error

TracerMultiError is an error wrapping multiple validation errors returned by Tracer.ValidateAll() if the designated constraints aren't met.

func (TracerMultiError) AllErrors

func (m TracerMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TracerMultiError) Error

func (m TracerMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type TracerValidationError

type TracerValidationError struct {
	// contains filtered or unexported fields
}

TracerValidationError is the validation error returned by Tracer.Validate if the designated constraints aren't met.

func (TracerValidationError) Cause

func (e TracerValidationError) Cause() error

Cause function returns cause value.

func (TracerValidationError) Error

func (e TracerValidationError) Error() string

Error satisfies the builtin error interface

func (TracerValidationError) ErrorName

func (e TracerValidationError) ErrorName() string

ErrorName returns error name.

func (TracerValidationError) Field

func (e TracerValidationError) Field() string

Field function returns field value.

func (TracerValidationError) Key

func (e TracerValidationError) Key() bool

Key function returns key value.

func (TracerValidationError) Reason

func (e TracerValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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