conf

package
v0.0.0-...-96f2668 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_common_conf_base_proto protoreflect.FileDescriptor
View Source
var File_common_conf_bootstrap_proto protoreflect.FileDescriptor
View Source
var File_common_conf_client_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_middleware_proto protoreflect.FileDescriptor
View Source
var File_common_conf_notify_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 Base

type Base struct {
	Admin  *Base_Admin  `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"`
	Domain *Base_Domain `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
	// contains filtered or unexported fields
}

func (*Base) Descriptor deprecated

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

Deprecated: Use Base.ProtoReflect.Descriptor instead.

func (*Base) GetAdmin

func (x *Base) GetAdmin() *Base_Admin

func (*Base) GetDomain

func (x *Base) GetDomain() *Base_Domain

func (*Base) ProtoMessage

func (*Base) ProtoMessage()

func (*Base) ProtoReflect

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

func (*Base) Reset

func (x *Base) Reset()

func (*Base) String

func (x *Base) String() string

func (*Base) Validate

func (m *Base) Validate() error

Validate checks the field values on Base 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 (*Base) ValidateAll

func (m *Base) ValidateAll() error

ValidateAll checks the field values on Base 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 BaseMultiError, or nil if none found.

type BaseMultiError

type BaseMultiError []error

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

func (BaseMultiError) AllErrors

func (m BaseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (BaseMultiError) Error

func (m BaseMultiError) Error() string

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

type BaseValidationError

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

BaseValidationError is the validation error returned by Base.Validate if the designated constraints aren't met.

func (BaseValidationError) Cause

func (e BaseValidationError) Cause() error

Cause function returns cause value.

func (BaseValidationError) Error

func (e BaseValidationError) Error() string

Error satisfies the builtin error interface

func (BaseValidationError) ErrorName

func (e BaseValidationError) ErrorName() string

ErrorName returns error name.

func (BaseValidationError) Field

func (e BaseValidationError) Field() string

Field function returns field value.

func (BaseValidationError) Key

func (e BaseValidationError) Key() bool

Key function returns key value.

func (BaseValidationError) Reason

func (e BaseValidationError) Reason() string

Reason function returns reason value.

type Base_Admin

type Base_Admin struct {
	DomainId uint64 `protobuf:"varint,1,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"`
	UserId   uint64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

Admin 管理配置

func (*Base_Admin) Descriptor deprecated

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

Deprecated: Use Base_Admin.ProtoReflect.Descriptor instead.

func (*Base_Admin) GetDomainId

func (x *Base_Admin) GetDomainId() uint64

func (*Base_Admin) GetUserId

func (x *Base_Admin) GetUserId() uint64

func (*Base_Admin) ProtoMessage

func (*Base_Admin) ProtoMessage()

func (*Base_Admin) ProtoReflect

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

func (*Base_Admin) Reset

func (x *Base_Admin) Reset()

func (*Base_Admin) String

func (x *Base_Admin) String() string

func (*Base_Admin) Validate

func (m *Base_Admin) Validate() error

Validate checks the field values on Base_Admin 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 (*Base_Admin) ValidateAll

func (m *Base_Admin) ValidateAll() error

ValidateAll checks the field values on Base_Admin 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 Base_AdminMultiError, or nil if none found.

type Base_AdminMultiError

type Base_AdminMultiError []error

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

func (Base_AdminMultiError) AllErrors

func (m Base_AdminMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Base_AdminMultiError) Error

func (m Base_AdminMultiError) Error() string

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

type Base_AdminValidationError

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

Base_AdminValidationError is the validation error returned by Base_Admin.Validate if the designated constraints aren't met.

func (Base_AdminValidationError) Cause

func (e Base_AdminValidationError) Cause() error

Cause function returns cause value.

func (Base_AdminValidationError) Error

Error satisfies the builtin error interface

func (Base_AdminValidationError) ErrorName

func (e Base_AdminValidationError) ErrorName() string

ErrorName returns error name.

func (Base_AdminValidationError) Field

Field function returns field value.

func (Base_AdminValidationError) Key

Key function returns key value.

func (Base_AdminValidationError) Reason

func (e Base_AdminValidationError) Reason() string

Reason function returns reason value.

type Base_Domain

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

Domain

func (*Base_Domain) Descriptor deprecated

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

Deprecated: Use Base_Domain.ProtoReflect.Descriptor instead.

func (*Base_Domain) ProtoMessage

func (*Base_Domain) ProtoMessage()

func (*Base_Domain) ProtoReflect

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

func (*Base_Domain) Reset

func (x *Base_Domain) Reset()

func (*Base_Domain) String

func (x *Base_Domain) String() string

func (*Base_Domain) Validate

func (m *Base_Domain) Validate() error

Validate checks the field values on Base_Domain 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 (*Base_Domain) ValidateAll

func (m *Base_Domain) ValidateAll() error

ValidateAll checks the field values on Base_Domain 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 Base_DomainMultiError, or nil if none found.

type Base_DomainMultiError

type Base_DomainMultiError []error

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

func (Base_DomainMultiError) AllErrors

func (m Base_DomainMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Base_DomainMultiError) Error

func (m Base_DomainMultiError) Error() string

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

type Base_DomainValidationError

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

Base_DomainValidationError is the validation error returned by Base_Domain.Validate if the designated constraints aren't met.

func (Base_DomainValidationError) Cause

Cause function returns cause value.

func (Base_DomainValidationError) Error

Error satisfies the builtin error interface

func (Base_DomainValidationError) ErrorName

func (e Base_DomainValidationError) ErrorName() string

ErrorName returns error name.

func (Base_DomainValidationError) Field

Field function returns field value.

func (Base_DomainValidationError) Key

Key function returns key value.

func (Base_DomainValidationError) Reason

Reason function returns reason value.

type Bootstrap

type Bootstrap struct {
	Server   *Server       `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`
	Client   *Client       `protobuf:"bytes,2,opt,name=client,proto3" json:"client,omitempty"`
	Data     *Data         `protobuf:"bytes,3,opt,name=data,proto3" json:"data,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"`
	Notify   *Notification `protobuf:"bytes,9,opt,name=notify,proto3" json:"notify,omitempty"`
	Base     *Base         `protobuf:"bytes,10,opt,name=base,proto3" json:"base,omitempty"`
	// contains filtered or unexported fields
}

引导信息

func (*Bootstrap) Descriptor deprecated

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

Deprecated: Use Bootstrap.ProtoReflect.Descriptor instead.

func (*Bootstrap) GetBase

func (x *Bootstrap) GetBase() *Base

func (*Bootstrap) GetClient

func (x *Bootstrap) GetClient() *Client

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) GetNotify

func (x *Bootstrap) GetNotify() *Notification

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 Client

type Client struct {
	Http *Client_HTTP `protobuf:"bytes,1,opt,name=http,proto3" json:"http,omitempty"` // HTTP服务
	Grpc *Client_GRPC `protobuf:"bytes,2,opt,name=grpc,proto3" json:"grpc,omitempty"` // gRPC服务
	// contains filtered or unexported fields
}

客户端

func (*Client) Descriptor deprecated

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

Deprecated: Use Client.ProtoReflect.Descriptor instead.

func (*Client) GetGrpc

func (x *Client) GetGrpc() *Client_GRPC

func (*Client) GetHttp

func (x *Client) GetHttp() *Client_HTTP

func (*Client) ProtoMessage

func (*Client) ProtoMessage()

func (*Client) ProtoReflect

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

func (*Client) Reset

func (x *Client) Reset()

func (*Client) String

func (x *Client) String() string

func (*Client) Validate

func (m *Client) Validate() error

Validate checks the field values on Client 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 (*Client) ValidateAll

func (m *Client) ValidateAll() error

ValidateAll checks the field values on Client 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 ClientMultiError, or nil if none found.

type ClientMultiError

type ClientMultiError []error

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

func (ClientMultiError) AllErrors

func (m ClientMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ClientMultiError) Error

func (m ClientMultiError) Error() string

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

type ClientValidationError

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

ClientValidationError is the validation error returned by Client.Validate if the designated constraints aren't met.

func (ClientValidationError) Cause

func (e ClientValidationError) Cause() error

Cause function returns cause value.

func (ClientValidationError) Error

func (e ClientValidationError) Error() string

Error satisfies the builtin error interface

func (ClientValidationError) ErrorName

func (e ClientValidationError) ErrorName() string

ErrorName returns error name.

func (ClientValidationError) Field

func (e ClientValidationError) Field() string

Field function returns field value.

func (ClientValidationError) Key

func (e ClientValidationError) Key() bool

Key function returns key value.

func (ClientValidationError) Reason

func (e ClientValidationError) Reason() string

Reason function returns reason value.

type Client_GRPC

type Client_GRPC struct {
	Timeout    *durationpb.Duration `protobuf:"bytes,1,opt,name=timeout,proto3" json:"timeout,omitempty"` // 超时时间
	Middleware *Middleware          `protobuf:"bytes,2,opt,name=middleware,proto3" json:"middleware,omitempty"`
	// contains filtered or unexported fields
}

gPRC

func (*Client_GRPC) Descriptor deprecated

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

Deprecated: Use Client_GRPC.ProtoReflect.Descriptor instead.

func (*Client_GRPC) GetMiddleware

func (x *Client_GRPC) GetMiddleware() *Middleware

func (*Client_GRPC) GetTimeout

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

func (*Client_GRPC) ProtoMessage

func (*Client_GRPC) ProtoMessage()

func (*Client_GRPC) ProtoReflect

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

func (*Client_GRPC) Reset

func (x *Client_GRPC) Reset()

func (*Client_GRPC) String

func (x *Client_GRPC) String() string

func (*Client_GRPC) Validate

func (m *Client_GRPC) Validate() error

Validate checks the field values on Client_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 (*Client_GRPC) ValidateAll

func (m *Client_GRPC) ValidateAll() error

ValidateAll checks the field values on Client_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 Client_GRPCMultiError, or nil if none found.

type Client_GRPCMultiError

type Client_GRPCMultiError []error

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

func (Client_GRPCMultiError) AllErrors

func (m Client_GRPCMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Client_GRPCMultiError) Error

func (m Client_GRPCMultiError) Error() string

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

type Client_GRPCValidationError

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

Client_GRPCValidationError is the validation error returned by Client_GRPC.Validate if the designated constraints aren't met.

func (Client_GRPCValidationError) Cause

Cause function returns cause value.

func (Client_GRPCValidationError) Error

Error satisfies the builtin error interface

func (Client_GRPCValidationError) ErrorName

func (e Client_GRPCValidationError) ErrorName() string

ErrorName returns error name.

func (Client_GRPCValidationError) Field

Field function returns field value.

func (Client_GRPCValidationError) Key

Key function returns key value.

func (Client_GRPCValidationError) Reason

Reason function returns reason value.

type Client_HTTP

type Client_HTTP struct {
	Timeout    *durationpb.Duration `protobuf:"bytes,1,opt,name=timeout,proto3" json:"timeout,omitempty"` // 超时时间
	Middleware *Middleware          `protobuf:"bytes,2,opt,name=middleware,proto3" json:"middleware,omitempty"`
	// contains filtered or unexported fields
}

HTTP

func (*Client_HTTP) Descriptor deprecated

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

Deprecated: Use Client_HTTP.ProtoReflect.Descriptor instead.

func (*Client_HTTP) GetMiddleware

func (x *Client_HTTP) GetMiddleware() *Middleware

func (*Client_HTTP) GetTimeout

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

func (*Client_HTTP) ProtoMessage

func (*Client_HTTP) ProtoMessage()

func (*Client_HTTP) ProtoReflect

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

func (*Client_HTTP) Reset

func (x *Client_HTTP) Reset()

func (*Client_HTTP) String

func (x *Client_HTTP) String() string

func (*Client_HTTP) Validate

func (m *Client_HTTP) Validate() error

Validate checks the field values on Client_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 (*Client_HTTP) ValidateAll

func (m *Client_HTTP) ValidateAll() error

ValidateAll checks the field values on Client_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 Client_HTTPMultiError, or nil if none found.

type Client_HTTPMultiError

type Client_HTTPMultiError []error

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

func (Client_HTTPMultiError) AllErrors

func (m Client_HTTPMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Client_HTTPMultiError) Error

func (m Client_HTTPMultiError) Error() string

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

type Client_HTTPValidationError

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

Client_HTTPValidationError is the validation error returned by Client_HTTP.Validate if the designated constraints aren't met.

func (Client_HTTPValidationError) Cause

Cause function returns cause value.

func (Client_HTTPValidationError) Error

Error satisfies the builtin error interface

func (Client_HTTPValidationError) ErrorName

func (e Client_HTTPValidationError) ErrorName() string

ErrorName returns error name.

func (Client_HTTPValidationError) Field

Field function returns field value.

func (Client_HTTPValidationError) Key

Key function returns key value.

func (Client_HTTPValidationError) Reason

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
	Mongodb       *Data_MongoDB       `protobuf:"bytes,11,opt,name=mongodb,proto3" json:"mongodb,omitempty"`                                  // MongoDB数据库
	ElasticSearch *Data_ElasticSearch `protobuf:"bytes,12,opt,name=elastic_search,json=elasticSearch,proto3" json:"elastic_search,omitempty"` // ElasticSearch数据库
	Clickhouse    *Data_ClickHouse    `protobuf:"bytes,20,opt,name=clickhouse,proto3" json:"clickhouse,omitempty"`                            // ClickHouse数据库
	Influxdb      *Data_InfluxDB      `protobuf:"bytes,21,opt,name=influxdb,proto3" json:"influxdb,omitempty"`                                // InfluxDB数据库
	Doris         *Data_Doris         `protobuf:"bytes,22,opt,name=doris,proto3" json:"doris,omitempty"`                                      // Doris数据库
	Kafka         *Data_Kafka         `protobuf:"bytes,30,opt,name=kafka,proto3" json:"kafka,omitempty"`                                      // Kafka服务
	Meilisearch   *Data_Meilisearch   `protobuf:"bytes,3,opt,name=meilisearch,proto3" json:"meilisearch,omitempty"`                           // meilisearch 搜索引擎
	// contains filtered or unexported fields
}

数据

func (*Data) Descriptor deprecated

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

Deprecated: Use Data.ProtoReflect.Descriptor instead.

func (*Data) GetClickhouse

func (x *Data) GetClickhouse() *Data_ClickHouse

func (*Data) GetDatabase

func (x *Data) GetDatabase() *Data_Database

func (*Data) GetDoris

func (x *Data) GetDoris() *Data_Doris

func (*Data) GetElasticSearch

func (x *Data) GetElasticSearch() *Data_ElasticSearch

func (*Data) GetInfluxdb

func (x *Data) GetInfluxdb() *Data_InfluxDB

func (*Data) GetKafka

func (x *Data) GetKafka() *Data_Kafka

func (*Data) GetMeilisearch

func (x *Data) GetMeilisearch() *Data_Meilisearch

func (*Data) GetMongodb

func (x *Data) GetMongodb() *Data_MongoDB

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_ClickHouse

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

ClickHouse

func (*Data_ClickHouse) Descriptor deprecated

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

Deprecated: Use Data_ClickHouse.ProtoReflect.Descriptor instead.

func (*Data_ClickHouse) GetAddress

func (x *Data_ClickHouse) GetAddress() string

func (*Data_ClickHouse) ProtoMessage

func (*Data_ClickHouse) ProtoMessage()

func (*Data_ClickHouse) ProtoReflect

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

func (*Data_ClickHouse) Reset

func (x *Data_ClickHouse) Reset()

func (*Data_ClickHouse) String

func (x *Data_ClickHouse) String() string

func (*Data_ClickHouse) Validate

func (m *Data_ClickHouse) Validate() error

Validate checks the field values on Data_ClickHouse 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_ClickHouse) ValidateAll

func (m *Data_ClickHouse) ValidateAll() error

ValidateAll checks the field values on Data_ClickHouse 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_ClickHouseMultiError, or nil if none found.

type Data_ClickHouseMultiError

type Data_ClickHouseMultiError []error

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

func (Data_ClickHouseMultiError) AllErrors

func (m Data_ClickHouseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Data_ClickHouseMultiError) Error

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

type Data_ClickHouseValidationError

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

Data_ClickHouseValidationError is the validation error returned by Data_ClickHouse.Validate if the designated constraints aren't met.

func (Data_ClickHouseValidationError) Cause

Cause function returns cause value.

func (Data_ClickHouseValidationError) Error

Error satisfies the builtin error interface

func (Data_ClickHouseValidationError) ErrorName

func (e Data_ClickHouseValidationError) ErrorName() string

ErrorName returns error name.

func (Data_ClickHouseValidationError) Field

Field function returns field value.

func (Data_ClickHouseValidationError) Key

Key function returns key value.

func (Data_ClickHouseValidationError) Reason

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"`                                                   // 数据迁移开关
	Debug                 bool                 `protobuf:"varint,4,opt,name=debug,proto3" json:"debug,omitempty"`                                                       // 调试开关
	MaxIdleConnections    int32                `protobuf:"varint,5,opt,name=max_idle_connections,json=maxIdleConnections,proto3" json:"max_idle_connections,omitempty"` // 连接池最大空闲连接数
	MaxOpenConnections    int32                `protobuf:"varint,6,opt,name=max_open_connections,json=maxOpenConnections,proto3" json:"max_open_connections,omitempty"` // 连接池最大打开连接数
	ConnectionMaxLifetime *durationpb.Duration ``                                                                                                                       // 连接可重用的最大时间长度
	/* 126-byte string literal not displayed */
	// 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) GetConnectionMaxLifetime

func (x *Data_Database) GetConnectionMaxLifetime() *durationpb.Duration

func (*Data_Database) GetDebug

func (x *Data_Database) GetDebug() bool

func (*Data_Database) GetDriver

func (x *Data_Database) GetDriver() string

func (*Data_Database) GetMaxIdleConnections

func (x *Data_Database) GetMaxIdleConnections() int32

func (*Data_Database) GetMaxOpenConnections

func (x *Data_Database) GetMaxOpenConnections() int32

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_Doris

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

func (*Data_Doris) Descriptor deprecated

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

Deprecated: Use Data_Doris.ProtoReflect.Descriptor instead.

func (*Data_Doris) GetAddress

func (x *Data_Doris) GetAddress() string

func (*Data_Doris) ProtoMessage

func (*Data_Doris) ProtoMessage()

func (*Data_Doris) ProtoReflect

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

func (*Data_Doris) Reset

func (x *Data_Doris) Reset()

func (*Data_Doris) String

func (x *Data_Doris) String() string

func (*Data_Doris) Validate

func (m *Data_Doris) Validate() error

Validate checks the field values on Data_Doris 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_Doris) ValidateAll

func (m *Data_Doris) ValidateAll() error

ValidateAll checks the field values on Data_Doris 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_DorisMultiError, or nil if none found.

type Data_DorisMultiError

type Data_DorisMultiError []error

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

func (Data_DorisMultiError) AllErrors

func (m Data_DorisMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Data_DorisMultiError) Error

func (m Data_DorisMultiError) Error() string

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

type Data_DorisValidationError

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

Data_DorisValidationError is the validation error returned by Data_Doris.Validate if the designated constraints aren't met.

func (Data_DorisValidationError) Cause

func (e Data_DorisValidationError) Cause() error

Cause function returns cause value.

func (Data_DorisValidationError) Error

Error satisfies the builtin error interface

func (Data_DorisValidationError) ErrorName

func (e Data_DorisValidationError) ErrorName() string

ErrorName returns error name.

func (Data_DorisValidationError) Field

Field function returns field value.

func (Data_DorisValidationError) Key

Key function returns key value.

func (Data_DorisValidationError) Reason

func (e Data_DorisValidationError) Reason() string

Reason function returns reason value.

type Data_ElasticSearch

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

func (*Data_ElasticSearch) Descriptor deprecated

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

Deprecated: Use Data_ElasticSearch.ProtoReflect.Descriptor instead.

func (*Data_ElasticSearch) GetAddress

func (x *Data_ElasticSearch) GetAddress() string

func (*Data_ElasticSearch) ProtoMessage

func (*Data_ElasticSearch) ProtoMessage()

func (*Data_ElasticSearch) ProtoReflect

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

func (*Data_ElasticSearch) Reset

func (x *Data_ElasticSearch) Reset()

func (*Data_ElasticSearch) String

func (x *Data_ElasticSearch) String() string

func (*Data_ElasticSearch) Validate

func (m *Data_ElasticSearch) Validate() error

Validate checks the field values on Data_ElasticSearch 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_ElasticSearch) ValidateAll

func (m *Data_ElasticSearch) ValidateAll() error

ValidateAll checks the field values on Data_ElasticSearch 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_ElasticSearchMultiError, or nil if none found.

type Data_ElasticSearchMultiError

type Data_ElasticSearchMultiError []error

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

func (Data_ElasticSearchMultiError) AllErrors

func (m Data_ElasticSearchMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Data_ElasticSearchMultiError) Error

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

type Data_ElasticSearchValidationError

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

Data_ElasticSearchValidationError is the validation error returned by Data_ElasticSearch.Validate if the designated constraints aren't met.

func (Data_ElasticSearchValidationError) Cause

Cause function returns cause value.

func (Data_ElasticSearchValidationError) Error

Error satisfies the builtin error interface

func (Data_ElasticSearchValidationError) ErrorName

ErrorName returns error name.

func (Data_ElasticSearchValidationError) Field

Field function returns field value.

func (Data_ElasticSearchValidationError) Key

Key function returns key value.

func (Data_ElasticSearchValidationError) Reason

Reason function returns reason value.

type Data_InfluxDB

type Data_InfluxDB struct {
	Address     string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Token       string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	Orgnization string `protobuf:"bytes,3,opt,name=orgnization,proto3" json:"orgnization,omitempty"`
	Bucket      string `protobuf:"bytes,4,opt,name=bucket,proto3" json:"bucket,omitempty"`
	// contains filtered or unexported fields
}

InfluxDB

func (*Data_InfluxDB) Descriptor deprecated

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

Deprecated: Use Data_InfluxDB.ProtoReflect.Descriptor instead.

func (*Data_InfluxDB) GetAddress

func (x *Data_InfluxDB) GetAddress() string

func (*Data_InfluxDB) GetBucket

func (x *Data_InfluxDB) GetBucket() string

func (*Data_InfluxDB) GetOrgnization

func (x *Data_InfluxDB) GetOrgnization() string

func (*Data_InfluxDB) GetToken

func (x *Data_InfluxDB) GetToken() string

func (*Data_InfluxDB) ProtoMessage

func (*Data_InfluxDB) ProtoMessage()

func (*Data_InfluxDB) ProtoReflect

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

func (*Data_InfluxDB) Reset

func (x *Data_InfluxDB) Reset()

func (*Data_InfluxDB) String

func (x *Data_InfluxDB) String() string

func (*Data_InfluxDB) Validate

func (m *Data_InfluxDB) Validate() error

Validate checks the field values on Data_InfluxDB 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_InfluxDB) ValidateAll

func (m *Data_InfluxDB) ValidateAll() error

ValidateAll checks the field values on Data_InfluxDB 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_InfluxDBMultiError, or nil if none found.

type Data_InfluxDBMultiError

type Data_InfluxDBMultiError []error

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

func (Data_InfluxDBMultiError) AllErrors

func (m Data_InfluxDBMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Data_InfluxDBMultiError) Error

func (m Data_InfluxDBMultiError) Error() string

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

type Data_InfluxDBValidationError

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

Data_InfluxDBValidationError is the validation error returned by Data_InfluxDB.Validate if the designated constraints aren't met.

func (Data_InfluxDBValidationError) Cause

Cause function returns cause value.

func (Data_InfluxDBValidationError) Error

Error satisfies the builtin error interface

func (Data_InfluxDBValidationError) ErrorName

func (e Data_InfluxDBValidationError) ErrorName() string

ErrorName returns error name.

func (Data_InfluxDBValidationError) Field

Field function returns field value.

func (Data_InfluxDBValidationError) Key

Key function returns key value.

func (Data_InfluxDBValidationError) Reason

Reason function returns reason value.

type Data_Kafka

type Data_Kafka struct {
	Addrs []string `protobuf:"bytes,1,rep,name=addrs,proto3" json:"addrs,omitempty"` // 对端网络地址
	Codec string   `protobuf:"bytes,2,opt,name=codec,proto3" json:"codec,omitempty"` // 编解码器
	// contains filtered or unexported fields
}

Kafka

func (*Data_Kafka) Descriptor deprecated

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

Deprecated: Use Data_Kafka.ProtoReflect.Descriptor instead.

func (*Data_Kafka) GetAddrs

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

func (*Data_Kafka) GetCodec

func (x *Data_Kafka) GetCodec() string

func (*Data_Kafka) ProtoMessage

func (*Data_Kafka) ProtoMessage()

func (*Data_Kafka) ProtoReflect

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

func (*Data_Kafka) Reset

func (x *Data_Kafka) Reset()

func (*Data_Kafka) String

func (x *Data_Kafka) String() string

func (*Data_Kafka) Validate

func (m *Data_Kafka) Validate() error

Validate checks the field values on Data_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 (*Data_Kafka) ValidateAll

func (m *Data_Kafka) ValidateAll() error

ValidateAll checks the field values on Data_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 Data_KafkaMultiError, or nil if none found.

type Data_KafkaMultiError

type Data_KafkaMultiError []error

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

func (Data_KafkaMultiError) AllErrors

func (m Data_KafkaMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Data_KafkaMultiError) Error

func (m Data_KafkaMultiError) Error() string

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

type Data_KafkaValidationError

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

Data_KafkaValidationError is the validation error returned by Data_Kafka.Validate if the designated constraints aren't met.

func (Data_KafkaValidationError) Cause

func (e Data_KafkaValidationError) Cause() error

Cause function returns cause value.

func (Data_KafkaValidationError) Error

Error satisfies the builtin error interface

func (Data_KafkaValidationError) ErrorName

func (e Data_KafkaValidationError) ErrorName() string

ErrorName returns error name.

func (Data_KafkaValidationError) Field

Field function returns field value.

func (Data_KafkaValidationError) Key

Key function returns key value.

func (Data_KafkaValidationError) Reason

func (e Data_KafkaValidationError) Reason() string

Reason function returns reason value.

type Data_Meilisearch

type Data_Meilisearch struct {
	Host    string               `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
	ApiKey  string               `protobuf:"bytes,2,opt,name=api_key,json=apiKey,proto3" json:"api_key,omitempty"`
	Timeout *durationpb.Duration `protobuf:"bytes,3,opt,name=timeout,proto3" json:"timeout,omitempty"`
	// contains filtered or unexported fields
}

func (*Data_Meilisearch) Descriptor deprecated

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

Deprecated: Use Data_Meilisearch.ProtoReflect.Descriptor instead.

func (*Data_Meilisearch) GetApiKey

func (x *Data_Meilisearch) GetApiKey() string

func (*Data_Meilisearch) GetHost

func (x *Data_Meilisearch) GetHost() string

func (*Data_Meilisearch) GetTimeout

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

func (*Data_Meilisearch) ProtoMessage

func (*Data_Meilisearch) ProtoMessage()

func (*Data_Meilisearch) ProtoReflect

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

func (*Data_Meilisearch) Reset

func (x *Data_Meilisearch) Reset()

func (*Data_Meilisearch) String

func (x *Data_Meilisearch) String() string

func (*Data_Meilisearch) Validate

func (m *Data_Meilisearch) Validate() error

Validate checks the field values on Data_Meilisearch 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_Meilisearch) ValidateAll

func (m *Data_Meilisearch) ValidateAll() error

ValidateAll checks the field values on Data_Meilisearch 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_MeilisearchMultiError, or nil if none found.

type Data_MeilisearchMultiError

type Data_MeilisearchMultiError []error

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

func (Data_MeilisearchMultiError) AllErrors

func (m Data_MeilisearchMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Data_MeilisearchMultiError) Error

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

type Data_MeilisearchValidationError

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

Data_MeilisearchValidationError is the validation error returned by Data_Meilisearch.Validate if the designated constraints aren't met.

func (Data_MeilisearchValidationError) Cause

Cause function returns cause value.

func (Data_MeilisearchValidationError) Error

Error satisfies the builtin error interface

func (Data_MeilisearchValidationError) ErrorName

ErrorName returns error name.

func (Data_MeilisearchValidationError) Field

Field function returns field value.

func (Data_MeilisearchValidationError) Key

Key function returns key value.

func (Data_MeilisearchValidationError) Reason

Reason function returns reason value.

type Data_MongoDB

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

MongoDB

func (*Data_MongoDB) Descriptor deprecated

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

Deprecated: Use Data_MongoDB.ProtoReflect.Descriptor instead.

func (*Data_MongoDB) GetAddress

func (x *Data_MongoDB) GetAddress() string

func (*Data_MongoDB) ProtoMessage

func (*Data_MongoDB) ProtoMessage()

func (*Data_MongoDB) ProtoReflect

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

func (*Data_MongoDB) Reset

func (x *Data_MongoDB) Reset()

func (*Data_MongoDB) String

func (x *Data_MongoDB) String() string

func (*Data_MongoDB) Validate

func (m *Data_MongoDB) Validate() error

Validate checks the field values on Data_MongoDB 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_MongoDB) ValidateAll

func (m *Data_MongoDB) ValidateAll() error

ValidateAll checks the field values on Data_MongoDB 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_MongoDBMultiError, or nil if none found.

type Data_MongoDBMultiError

type Data_MongoDBMultiError []error

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

func (Data_MongoDBMultiError) AllErrors

func (m Data_MongoDBMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Data_MongoDBMultiError) Error

func (m Data_MongoDBMultiError) Error() string

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

type Data_MongoDBValidationError

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

Data_MongoDBValidationError is the validation error returned by Data_MongoDB.Validate if the designated constraints aren't met.

func (Data_MongoDBValidationError) Cause

Cause function returns cause value.

func (Data_MongoDBValidationError) Error

Error satisfies the builtin error interface

func (Data_MongoDBValidationError) ErrorName

func (e Data_MongoDBValidationError) ErrorName() string

ErrorName returns error name.

func (Data_MongoDBValidationError) Field

Field function returns field value.

func (Data_MongoDBValidationError) Key

Key function returns key value.

func (Data_MongoDBValidationError) 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"` // 写入超时时间
	EnableTracing bool                 `protobuf:"varint,8,opt,name=enable_tracing,json=enableTracing,proto3" json:"enable_tracing,omitempty"`
	EnableMetrics bool                 `protobuf:"varint,9,opt,name=enable_metrics,json=enableMetrics,proto3" json:"enable_metrics,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) GetEnableMetrics

func (x *Data_Redis) GetEnableMetrics() bool

func (*Data_Redis) GetEnableTracing

func (x *Data_Redis) GetEnableTracing() bool

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 Middleware

type Middleware struct {
	EnableLogging        bool                    `protobuf:"varint,1,opt,name=enable_logging,json=enableLogging,proto3" json:"enable_logging,omitempty"`                        // 日志开关
	EnableRecovery       bool                    `protobuf:"varint,2,opt,name=enable_recovery,json=enableRecovery,proto3" json:"enable_recovery,omitempty"`                     // 异常恢复
	EnableTracing        bool                    `protobuf:"varint,3,opt,name=enable_tracing,json=enableTracing,proto3" json:"enable_tracing,omitempty"`                        // 链路追踪开关
	EnableValidate       bool                    `protobuf:"varint,4,opt,name=enable_validate,json=enableValidate,proto3" json:"enable_validate,omitempty"`                     // 参数校验开关
	EnableCircuitBreaker bool                    `protobuf:"varint,5,opt,name=enable_circuit_breaker,json=enableCircuitBreaker,proto3" json:"enable_circuit_breaker,omitempty"` // 熔断器
	Limiter              *Middleware_RateLimiter `protobuf:"bytes,6,opt,name=limiter,proto3" json:"limiter,omitempty"`
	Metrics              *Middleware_Metrics     `protobuf:"bytes,7,opt,name=metrics,proto3" json:"metrics,omitempty"`
	Auth                 *Middleware_Auth        `protobuf:"bytes,8,opt,name=auth,proto3" json:"auth,omitempty"`
	Authorizer           *Middleware_Authorizer  `protobuf:"bytes,9,opt,name=authorizer,proto3" json:"authorizer,omitempty"`
	Localize             *Middleware_Localize    `protobuf:"bytes,10,opt,name=localize,proto3" json:"localize,omitempty"`
	// contains filtered or unexported fields
}

func (*Middleware) Descriptor deprecated

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

Deprecated: Use Middleware.ProtoReflect.Descriptor instead.

func (*Middleware) GetAuth

func (x *Middleware) GetAuth() *Middleware_Auth

func (*Middleware) GetAuthorizer

func (x *Middleware) GetAuthorizer() *Middleware_Authorizer

func (*Middleware) GetEnableCircuitBreaker

func (x *Middleware) GetEnableCircuitBreaker() bool

func (*Middleware) GetEnableLogging

func (x *Middleware) GetEnableLogging() bool

func (*Middleware) GetEnableRecovery

func (x *Middleware) GetEnableRecovery() bool

func (*Middleware) GetEnableTracing

func (x *Middleware) GetEnableTracing() bool

func (*Middleware) GetEnableValidate

func (x *Middleware) GetEnableValidate() bool

func (*Middleware) GetLimiter

func (x *Middleware) GetLimiter() *Middleware_RateLimiter

func (*Middleware) GetLocalize

func (x *Middleware) GetLocalize() *Middleware_Localize

func (*Middleware) GetMetrics

func (x *Middleware) GetMetrics() *Middleware_Metrics

func (*Middleware) ProtoMessage

func (*Middleware) ProtoMessage()

func (*Middleware) ProtoReflect

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

func (*Middleware) Reset

func (x *Middleware) Reset()

func (*Middleware) String

func (x *Middleware) String() string

func (*Middleware) Validate

func (m *Middleware) Validate() error

Validate checks the field values on Middleware 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 (*Middleware) ValidateAll

func (m *Middleware) ValidateAll() error

ValidateAll checks the field values on Middleware 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 MiddlewareMultiError, or nil if none found.

type MiddlewareMultiError

type MiddlewareMultiError []error

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

func (MiddlewareMultiError) AllErrors

func (m MiddlewareMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (MiddlewareMultiError) Error

func (m MiddlewareMultiError) Error() string

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

type MiddlewareValidationError

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

MiddlewareValidationError is the validation error returned by Middleware.Validate if the designated constraints aren't met.

func (MiddlewareValidationError) Cause

func (e MiddlewareValidationError) Cause() error

Cause function returns cause value.

func (MiddlewareValidationError) Error

Error satisfies the builtin error interface

func (MiddlewareValidationError) ErrorName

func (e MiddlewareValidationError) ErrorName() string

ErrorName returns error name.

func (MiddlewareValidationError) Field

Field function returns field value.

func (MiddlewareValidationError) Key

Key function returns key value.

func (MiddlewareValidationError) Reason

func (e MiddlewareValidationError) Reason() string

Reason function returns reason value.

type Middleware_Auth

type Middleware_Auth struct {
	Method      string               `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"`                              // JWT签名的算法,支持算法:HS256
	Key         string               `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`                                    // JWT 秘钥
	Header      string               `protobuf:"bytes,3,opt,name=header,proto3" json:"header,omitempty"`                              // Header字段:Authentication
	Scheme      string               `protobuf:"bytes,4,opt,name=scheme,proto3" json:"scheme,omitempty"`                              // token 前缀
	Multipoint  bool                 `protobuf:"varint,5,opt,name=multipoint,proto3" json:"multipoint,omitempty"`                     // 是否多设备登录
	ExpiresTime *durationpb.Duration `protobuf:"bytes,6,opt,name=expires_time,json=expiresTime,proto3" json:"expires_time,omitempty"` // 过期时间
	// contains filtered or unexported fields
}

JWT校验

func (*Middleware_Auth) Descriptor deprecated

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

Deprecated: Use Middleware_Auth.ProtoReflect.Descriptor instead.

func (*Middleware_Auth) GetExpiresTime

func (x *Middleware_Auth) GetExpiresTime() *durationpb.Duration

func (*Middleware_Auth) GetHeader

func (x *Middleware_Auth) GetHeader() string

func (*Middleware_Auth) GetKey

func (x *Middleware_Auth) GetKey() string

func (*Middleware_Auth) GetMethod

func (x *Middleware_Auth) GetMethod() string

func (*Middleware_Auth) GetMultipoint

func (x *Middleware_Auth) GetMultipoint() bool

func (*Middleware_Auth) GetScheme

func (x *Middleware_Auth) GetScheme() string

func (*Middleware_Auth) ProtoMessage

func (*Middleware_Auth) ProtoMessage()

func (*Middleware_Auth) ProtoReflect

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

func (*Middleware_Auth) Reset

func (x *Middleware_Auth) Reset()

func (*Middleware_Auth) String

func (x *Middleware_Auth) String() string

func (*Middleware_Auth) Validate

func (m *Middleware_Auth) Validate() error

Validate checks the field values on Middleware_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 (*Middleware_Auth) ValidateAll

func (m *Middleware_Auth) ValidateAll() error

ValidateAll checks the field values on Middleware_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 Middleware_AuthMultiError, or nil if none found.

type Middleware_AuthMultiError

type Middleware_AuthMultiError []error

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

func (Middleware_AuthMultiError) AllErrors

func (m Middleware_AuthMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Middleware_AuthMultiError) Error

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

type Middleware_AuthValidationError

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

Middleware_AuthValidationError is the validation error returned by Middleware_Auth.Validate if the designated constraints aren't met.

func (Middleware_AuthValidationError) Cause

Cause function returns cause value.

func (Middleware_AuthValidationError) Error

Error satisfies the builtin error interface

func (Middleware_AuthValidationError) ErrorName

func (e Middleware_AuthValidationError) ErrorName() string

ErrorName returns error name.

func (Middleware_AuthValidationError) Field

Field function returns field value.

func (Middleware_AuthValidationError) Key

Key function returns key value.

func (Middleware_AuthValidationError) Reason

Reason function returns reason value.

type Middleware_Authorizer

type Middleware_Authorizer struct {
	Type   string                        `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Casbin *Middleware_Authorizer_Casbin `protobuf:"bytes,2,opt,name=casbin,proto3" json:"casbin,omitempty"`
	// contains filtered or unexported fields
}

鉴权

func (*Middleware_Authorizer) Descriptor deprecated

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

Deprecated: Use Middleware_Authorizer.ProtoReflect.Descriptor instead.

func (*Middleware_Authorizer) GetCasbin

func (*Middleware_Authorizer) GetType

func (x *Middleware_Authorizer) GetType() string

func (*Middleware_Authorizer) ProtoMessage

func (*Middleware_Authorizer) ProtoMessage()

func (*Middleware_Authorizer) ProtoReflect

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

func (*Middleware_Authorizer) Reset

func (x *Middleware_Authorizer) Reset()

func (*Middleware_Authorizer) String

func (x *Middleware_Authorizer) String() string

func (*Middleware_Authorizer) Validate

func (m *Middleware_Authorizer) Validate() error

Validate checks the field values on Middleware_Authorizer 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 (*Middleware_Authorizer) ValidateAll

func (m *Middleware_Authorizer) ValidateAll() error

ValidateAll checks the field values on Middleware_Authorizer 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 Middleware_AuthorizerMultiError, or nil if none found.

type Middleware_AuthorizerMultiError

type Middleware_AuthorizerMultiError []error

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

func (Middleware_AuthorizerMultiError) AllErrors

func (m Middleware_AuthorizerMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Middleware_AuthorizerMultiError) Error

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

type Middleware_AuthorizerValidationError

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

Middleware_AuthorizerValidationError is the validation error returned by Middleware_Authorizer.Validate if the designated constraints aren't met.

func (Middleware_AuthorizerValidationError) Cause

Cause function returns cause value.

func (Middleware_AuthorizerValidationError) Error

Error satisfies the builtin error interface

func (Middleware_AuthorizerValidationError) ErrorName

ErrorName returns error name.

func (Middleware_AuthorizerValidationError) Field

Field function returns field value.

func (Middleware_AuthorizerValidationError) Key

Key function returns key value.

func (Middleware_AuthorizerValidationError) Reason

Reason function returns reason value.

type Middleware_Authorizer_Casbin

type Middleware_Authorizer_Casbin struct {
	ModelPath  string `protobuf:"bytes,1,opt,name=model_path,json=modelPath,proto3" json:"model_path,omitempty"`
	PolicyPath string `protobuf:"bytes,2,opt,name=policy_path,json=policyPath,proto3" json:"policy_path,omitempty"`
	// contains filtered or unexported fields
}

func (*Middleware_Authorizer_Casbin) Descriptor deprecated

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

Deprecated: Use Middleware_Authorizer_Casbin.ProtoReflect.Descriptor instead.

func (*Middleware_Authorizer_Casbin) GetModelPath

func (x *Middleware_Authorizer_Casbin) GetModelPath() string

func (*Middleware_Authorizer_Casbin) GetPolicyPath

func (x *Middleware_Authorizer_Casbin) GetPolicyPath() string

func (*Middleware_Authorizer_Casbin) ProtoMessage

func (*Middleware_Authorizer_Casbin) ProtoMessage()

func (*Middleware_Authorizer_Casbin) ProtoReflect

func (*Middleware_Authorizer_Casbin) Reset

func (x *Middleware_Authorizer_Casbin) Reset()

func (*Middleware_Authorizer_Casbin) String

func (*Middleware_Authorizer_Casbin) Validate

func (m *Middleware_Authorizer_Casbin) Validate() error

Validate checks the field values on Middleware_Authorizer_Casbin 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 (*Middleware_Authorizer_Casbin) ValidateAll

func (m *Middleware_Authorizer_Casbin) ValidateAll() error

ValidateAll checks the field values on Middleware_Authorizer_Casbin 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 Middleware_Authorizer_CasbinMultiError, or nil if none found.

type Middleware_Authorizer_CasbinMultiError

type Middleware_Authorizer_CasbinMultiError []error

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

func (Middleware_Authorizer_CasbinMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (Middleware_Authorizer_CasbinMultiError) Error

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

type Middleware_Authorizer_CasbinValidationError

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

Middleware_Authorizer_CasbinValidationError is the validation error returned by Middleware_Authorizer_Casbin.Validate if the designated constraints aren't met.

func (Middleware_Authorizer_CasbinValidationError) Cause

Cause function returns cause value.

func (Middleware_Authorizer_CasbinValidationError) Error

Error satisfies the builtin error interface

func (Middleware_Authorizer_CasbinValidationError) ErrorName

ErrorName returns error name.

func (Middleware_Authorizer_CasbinValidationError) Field

Field function returns field value.

func (Middleware_Authorizer_CasbinValidationError) Key

Key function returns key value.

func (Middleware_Authorizer_CasbinValidationError) Reason

Reason function returns reason value.

type Middleware_Localize

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

语言包

func (*Middleware_Localize) Descriptor deprecated

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

Deprecated: Use Middleware_Localize.ProtoReflect.Descriptor instead.

func (*Middleware_Localize) GetDefault

func (x *Middleware_Localize) GetDefault() string

func (*Middleware_Localize) ProtoMessage

func (*Middleware_Localize) ProtoMessage()

func (*Middleware_Localize) ProtoReflect

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

func (*Middleware_Localize) Reset

func (x *Middleware_Localize) Reset()

func (*Middleware_Localize) String

func (x *Middleware_Localize) String() string

func (*Middleware_Localize) Validate

func (m *Middleware_Localize) Validate() error

Validate checks the field values on Middleware_Localize 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 (*Middleware_Localize) ValidateAll

func (m *Middleware_Localize) ValidateAll() error

ValidateAll checks the field values on Middleware_Localize 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 Middleware_LocalizeMultiError, or nil if none found.

type Middleware_LocalizeMultiError

type Middleware_LocalizeMultiError []error

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

func (Middleware_LocalizeMultiError) AllErrors

func (m Middleware_LocalizeMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Middleware_LocalizeMultiError) Error

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

type Middleware_LocalizeValidationError

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

Middleware_LocalizeValidationError is the validation error returned by Middleware_Localize.Validate if the designated constraints aren't met.

func (Middleware_LocalizeValidationError) Cause

Cause function returns cause value.

func (Middleware_LocalizeValidationError) Error

Error satisfies the builtin error interface

func (Middleware_LocalizeValidationError) ErrorName

ErrorName returns error name.

func (Middleware_LocalizeValidationError) Field

Field function returns field value.

func (Middleware_LocalizeValidationError) Key

Key function returns key value.

func (Middleware_LocalizeValidationError) Reason

Reason function returns reason value.

type Middleware_Metrics

type Middleware_Metrics struct {
	Histogram bool `protobuf:"varint,1,opt,name=histogram,proto3" json:"histogram,omitempty"` // 直方图
	Counter   bool `protobuf:"varint,2,opt,name=counter,proto3" json:"counter,omitempty"`     // 计数器
	Gauge     bool `protobuf:"varint,3,opt,name=gauge,proto3" json:"gauge,omitempty"`         // 仪表盘
	Summary   bool `protobuf:"varint,4,opt,name=summary,proto3" json:"summary,omitempty"`     // 摘要
	// contains filtered or unexported fields
}

性能指标

func (*Middleware_Metrics) Descriptor deprecated

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

Deprecated: Use Middleware_Metrics.ProtoReflect.Descriptor instead.

func (*Middleware_Metrics) GetCounter

func (x *Middleware_Metrics) GetCounter() bool

func (*Middleware_Metrics) GetGauge

func (x *Middleware_Metrics) GetGauge() bool

func (*Middleware_Metrics) GetHistogram

func (x *Middleware_Metrics) GetHistogram() bool

func (*Middleware_Metrics) GetSummary

func (x *Middleware_Metrics) GetSummary() bool

func (*Middleware_Metrics) ProtoMessage

func (*Middleware_Metrics) ProtoMessage()

func (*Middleware_Metrics) ProtoReflect

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

func (*Middleware_Metrics) Reset

func (x *Middleware_Metrics) Reset()

func (*Middleware_Metrics) String

func (x *Middleware_Metrics) String() string

func (*Middleware_Metrics) Validate

func (m *Middleware_Metrics) Validate() error

Validate checks the field values on Middleware_Metrics 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 (*Middleware_Metrics) ValidateAll

func (m *Middleware_Metrics) ValidateAll() error

ValidateAll checks the field values on Middleware_Metrics 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 Middleware_MetricsMultiError, or nil if none found.

type Middleware_MetricsMultiError

type Middleware_MetricsMultiError []error

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

func (Middleware_MetricsMultiError) AllErrors

func (m Middleware_MetricsMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Middleware_MetricsMultiError) Error

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

type Middleware_MetricsValidationError

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

Middleware_MetricsValidationError is the validation error returned by Middleware_Metrics.Validate if the designated constraints aren't met.

func (Middleware_MetricsValidationError) Cause

Cause function returns cause value.

func (Middleware_MetricsValidationError) Error

Error satisfies the builtin error interface

func (Middleware_MetricsValidationError) ErrorName

ErrorName returns error name.

func (Middleware_MetricsValidationError) Field

Field function returns field value.

func (Middleware_MetricsValidationError) Key

Key function returns key value.

func (Middleware_MetricsValidationError) Reason

Reason function returns reason value.

type Middleware_RateLimiter

type Middleware_RateLimiter struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // 限流器名字,支持:bbr。
	// contains filtered or unexported fields
}

限流器

func (*Middleware_RateLimiter) Descriptor deprecated

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

Deprecated: Use Middleware_RateLimiter.ProtoReflect.Descriptor instead.

func (*Middleware_RateLimiter) GetName

func (x *Middleware_RateLimiter) GetName() string

func (*Middleware_RateLimiter) ProtoMessage

func (*Middleware_RateLimiter) ProtoMessage()

func (*Middleware_RateLimiter) ProtoReflect

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

func (*Middleware_RateLimiter) Reset

func (x *Middleware_RateLimiter) Reset()

func (*Middleware_RateLimiter) String

func (x *Middleware_RateLimiter) String() string

func (*Middleware_RateLimiter) Validate

func (m *Middleware_RateLimiter) Validate() error

Validate checks the field values on Middleware_RateLimiter 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 (*Middleware_RateLimiter) ValidateAll

func (m *Middleware_RateLimiter) ValidateAll() error

ValidateAll checks the field values on Middleware_RateLimiter 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 Middleware_RateLimiterMultiError, or nil if none found.

type Middleware_RateLimiterMultiError

type Middleware_RateLimiterMultiError []error

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

func (Middleware_RateLimiterMultiError) AllErrors

func (m Middleware_RateLimiterMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Middleware_RateLimiterMultiError) Error

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

type Middleware_RateLimiterValidationError

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

Middleware_RateLimiterValidationError is the validation error returned by Middleware_RateLimiter.Validate if the designated constraints aren't met.

func (Middleware_RateLimiterValidationError) Cause

Cause function returns cause value.

func (Middleware_RateLimiterValidationError) Error

Error satisfies the builtin error interface

func (Middleware_RateLimiterValidationError) ErrorName

ErrorName returns error name.

func (Middleware_RateLimiterValidationError) Field

Field function returns field value.

func (Middleware_RateLimiterValidationError) Key

Key function returns key value.

func (Middleware_RateLimiterValidationError) Reason

Reason function returns reason value.

type Notification

type Notification struct {
	Sms *Notification_SMS `protobuf:"bytes,1,opt,name=sms,proto3" json:"sms,omitempty"`
	// contains filtered or unexported fields
}

通知消息

func (*Notification) Descriptor deprecated

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

Deprecated: Use Notification.ProtoReflect.Descriptor instead.

func (*Notification) GetSms

func (x *Notification) GetSms() *Notification_SMS

func (*Notification) ProtoMessage

func (*Notification) ProtoMessage()

func (*Notification) ProtoReflect

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

func (*Notification) Reset

func (x *Notification) Reset()

func (*Notification) String

func (x *Notification) String() string

func (*Notification) Validate

func (m *Notification) Validate() error

Validate checks the field values on Notification 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 (*Notification) ValidateAll

func (m *Notification) ValidateAll() error

ValidateAll checks the field values on Notification 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 NotificationMultiError, or nil if none found.

type NotificationMultiError

type NotificationMultiError []error

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

func (NotificationMultiError) AllErrors

func (m NotificationMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (NotificationMultiError) Error

func (m NotificationMultiError) Error() string

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

type NotificationValidationError

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

NotificationValidationError is the validation error returned by Notification.Validate if the designated constraints aren't met.

func (NotificationValidationError) Cause

Cause function returns cause value.

func (NotificationValidationError) Error

Error satisfies the builtin error interface

func (NotificationValidationError) ErrorName

func (e NotificationValidationError) ErrorName() string

ErrorName returns error name.

func (NotificationValidationError) Field

Field function returns field value.

func (NotificationValidationError) Key

Key function returns key value.

func (NotificationValidationError) Reason

Reason function returns reason value.

type Notification_SMS

type Notification_SMS struct {
	Endpoint        string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"`                                        // 公网接入地址
	RegionId        string `protobuf:"bytes,2,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"`                        // 地域ID
	AccessKeyId     string `protobuf:"bytes,3,opt,name=access_key_id,json=accessKeyId,proto3" json:"access_key_id,omitempty"`             // 访问密钥ID
	AccessKeySecret string `protobuf:"bytes,4,opt,name=access_key_secret,json=accessKeySecret,proto3" json:"access_key_secret,omitempty"` // 访问密钥
	// contains filtered or unexported fields
}

短信

func (*Notification_SMS) Descriptor deprecated

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

Deprecated: Use Notification_SMS.ProtoReflect.Descriptor instead.

func (*Notification_SMS) GetAccessKeyId

func (x *Notification_SMS) GetAccessKeyId() string

func (*Notification_SMS) GetAccessKeySecret

func (x *Notification_SMS) GetAccessKeySecret() string

func (*Notification_SMS) GetEndpoint

func (x *Notification_SMS) GetEndpoint() string

func (*Notification_SMS) GetRegionId

func (x *Notification_SMS) GetRegionId() string

func (*Notification_SMS) ProtoMessage

func (*Notification_SMS) ProtoMessage()

func (*Notification_SMS) ProtoReflect

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

func (*Notification_SMS) Reset

func (x *Notification_SMS) Reset()

func (*Notification_SMS) String

func (x *Notification_SMS) String() string

func (*Notification_SMS) Validate

func (m *Notification_SMS) Validate() error

Validate checks the field values on Notification_SMS 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 (*Notification_SMS) ValidateAll

func (m *Notification_SMS) ValidateAll() error

ValidateAll checks the field values on Notification_SMS 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 Notification_SMSMultiError, or nil if none found.

type Notification_SMSMultiError

type Notification_SMSMultiError []error

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

func (Notification_SMSMultiError) AllErrors

func (m Notification_SMSMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Notification_SMSMultiError) Error

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

type Notification_SMSValidationError

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

Notification_SMSValidationError is the validation error returned by Notification_SMS.Validate if the designated constraints aren't met.

func (Notification_SMSValidationError) Cause

Cause function returns cause value.

func (Notification_SMSValidationError) Error

Error satisfies the builtin error interface

func (Notification_SMSValidationError) ErrorName

ErrorName returns error name.

func (Notification_SMSValidationError) Field

Field function returns field value.

func (Notification_SMSValidationError) Key

Key function returns key value.

func (Notification_SMSValidationError) Reason

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"` // 超时时间
	Middleware *Middleware          `protobuf:"bytes,4,opt,name=middleware,proto3" json:"middleware,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) GetMiddleware

func (x *Server_GRPC) GetMiddleware() *Middleware

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"`                                   // 超时时间
	Cors          *Server_HTTP_CORS    `protobuf:"bytes,4,opt,name=cors,proto3" json:"cors,omitempty"`                                         // 服务监听地址
	Middleware    *Middleware          `protobuf:"bytes,5,opt,name=middleware,proto3" json:"middleware,omitempty"`                             // 中间件
	EnableSwagger bool                 `protobuf:"varint,6,opt,name=enable_swagger,json=enableSwagger,proto3" json:"enable_swagger,omitempty"` // 启用SwaggerUI
	EnablePprof   bool                 `protobuf:"varint,7,opt,name=enable_pprof,json=enablePprof,proto3" json:"enable_pprof,omitempty"`       // 启用pprof
	// 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) GetCors

func (x *Server_HTTP) GetCors() *Server_HTTP_CORS

func (*Server_HTTP) GetEnablePprof

func (x *Server_HTTP) GetEnablePprof() bool

func (*Server_HTTP) GetEnableSwagger

func (x *Server_HTTP) GetEnableSwagger() bool

func (*Server_HTTP) GetMiddleware

func (x *Server_HTTP) GetMiddleware() *Middleware

func (*Server_HTTP) GetNetwork

func (x *Server_HTTP) GetNetwork() string

func (*Server_HTTP) GetTimeout

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

func (*Server_HTTP) ProtoMessage

func (*Server_HTTP) ProtoMessage()

func (*Server_HTTP) ProtoReflect

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

func (*Server_HTTP) Reset

func (x *Server_HTTP) Reset()

func (*Server_HTTP) String

func (x *Server_HTTP) String() string

func (*Server_HTTP) Validate

func (m *Server_HTTP) Validate() error

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

func (*Server_HTTP) ValidateAll

func (m *Server_HTTP) ValidateAll() error

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

type Server_HTTPMultiError

type Server_HTTPMultiError []error

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

func (Server_HTTPMultiError) AllErrors

func (m Server_HTTPMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Server_HTTPMultiError) Error

func (m Server_HTTPMultiError) Error() string

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

type Server_HTTPValidationError

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

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

func (Server_HTTPValidationError) Cause

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_HTTP_CORS

type Server_HTTP_CORS struct {
	Headers []string `protobuf:"bytes,1,rep,name=headers,proto3" json:"headers,omitempty"` //
	Methods []string `protobuf:"bytes,2,rep,name=methods,proto3" json:"methods,omitempty"` //
	Origins []string `protobuf:"bytes,3,rep,name=origins,proto3" json:"origins,omitempty"` //
	// contains filtered or unexported fields
}

func (*Server_HTTP_CORS) Descriptor deprecated

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

Deprecated: Use Server_HTTP_CORS.ProtoReflect.Descriptor instead.

func (*Server_HTTP_CORS) GetHeaders

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

func (*Server_HTTP_CORS) GetMethods

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

func (*Server_HTTP_CORS) GetOrigins

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

func (*Server_HTTP_CORS) ProtoMessage

func (*Server_HTTP_CORS) ProtoMessage()

func (*Server_HTTP_CORS) ProtoReflect

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

func (*Server_HTTP_CORS) Reset

func (x *Server_HTTP_CORS) Reset()

func (*Server_HTTP_CORS) String

func (x *Server_HTTP_CORS) String() string

func (*Server_HTTP_CORS) Validate

func (m *Server_HTTP_CORS) Validate() error

Validate checks the field values on Server_HTTP_CORS 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_CORS) ValidateAll

func (m *Server_HTTP_CORS) ValidateAll() error

ValidateAll checks the field values on Server_HTTP_CORS 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_HTTP_CORSMultiError, or nil if none found.

type Server_HTTP_CORSMultiError

type Server_HTTP_CORSMultiError []error

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

func (Server_HTTP_CORSMultiError) AllErrors

func (m Server_HTTP_CORSMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Server_HTTP_CORSMultiError) Error

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

type Server_HTTP_CORSValidationError

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

Server_HTTP_CORSValidationError is the validation error returned by Server_HTTP_CORS.Validate if the designated constraints aren't met.

func (Server_HTTP_CORSValidationError) Cause

Cause function returns cause value.

func (Server_HTTP_CORSValidationError) Error

Error satisfies the builtin error interface

func (Server_HTTP_CORSValidationError) ErrorName

ErrorName returns error name.

func (Server_HTTP_CORSValidationError) Field

Field function returns field value.

func (Server_HTTP_CORSValidationError) Key

Key function returns key value.

func (Server_HTTP_CORSValidationError) 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"`       // 路径
	Codec   string               `protobuf:"bytes,4,opt,name=codec,proto3" json:"codec,omitempty"`     // 编解码器: json,xml,yaml...
	Timeout *durationpb.Duration `protobuf:"bytes,5,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) GetCodec

func (x *Server_Websocket) GetCodec() 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
	Insecure bool    `protobuf:"varint,5,opt,name=insecure,proto3" json:"insecure,omitempty"`
	// 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) GetInsecure

func (x *Tracer) GetInsecure() bool

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