configpb

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_api_config_config_proto protoreflect.FileDescriptor
View Source
var File_api_config_config_testdata_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type App

type App struct {
	ProjectName          string `protobuf:"bytes,1,opt,name=project_name,json=projectName,proto3" json:"project_name,omitempty"`       //
	ServerName           string `protobuf:"bytes,2,opt,name=server_name,json=serverName,proto3" json:"server_name,omitempty"`          //
	ServerEnv            string `protobuf:"bytes,3,opt,name=server_env,json=serverEnv,proto3" json:"server_env,omitempty"`             // 开发环境;值:DEVELOP、TESTING、PREVIEW、PRODUCTION
	ServerVersion        string `protobuf:"bytes,4,opt,name=server_version,json=serverVersion,proto3" json:"server_version,omitempty"` //
	Id                   string `protobuf:"bytes,5,opt,name=id,proto3" json:"id,omitempty"`                                            // 服务注册名称
	ConfigMethod         string `protobuf:"bytes,40,opt,name=config_method,json=configMethod,proto3" json:"config_method,omitempty"`   // 配置方式;值:LOCAL、CONSUL、ETCD
	ConfigPathForGeneral string ``                                                                                                     // 配置中心:基本配置路径
	/* 126-byte string literal not displayed */
	ConfigPathForServer string            `protobuf:"bytes,42,opt,name=config_path_for_server,json=configPathForServer,proto3" json:"config_path_for_server,omitempty"` // 配置中心:本服务的配置路径
	HttpEndpoints       []string          `protobuf:"bytes,60,rep,name=http_endpoints,json=httpEndpoints,proto3" json:"http_endpoints,omitempty"`                       // app站点
	GrpcEndpoints       []string          `protobuf:"bytes,61,rep,name=grpc_endpoints,json=grpcEndpoints,proto3" json:"grpc_endpoints,omitempty"`                       // grpc站点
	Metadata            map[string]string ``                                                                                                                            // 元数据
	/* 159-byte string literal not displayed */
	// contains filtered or unexported fields
}

App application

func (*App) Descriptor deprecated

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

Deprecated: Use App.ProtoReflect.Descriptor instead.

func (*App) GetConfigMethod

func (x *App) GetConfigMethod() string

func (*App) GetConfigPathForGeneral

func (x *App) GetConfigPathForGeneral() string

func (*App) GetConfigPathForServer

func (x *App) GetConfigPathForServer() string

func (*App) GetGrpcEndpoints

func (x *App) GetGrpcEndpoints() []string

func (*App) GetHttpEndpoints

func (x *App) GetHttpEndpoints() []string

func (*App) GetId

func (x *App) GetId() string

func (*App) GetMetadata

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

func (*App) GetProjectName

func (x *App) GetProjectName() string

func (*App) GetServerEnv

func (x *App) GetServerEnv() string

func (*App) GetServerName

func (x *App) GetServerName() string

func (*App) GetServerVersion

func (x *App) GetServerVersion() string

func (*App) ProtoMessage

func (*App) ProtoMessage()

func (*App) ProtoReflect

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

func (*App) Reset

func (x *App) Reset()

func (*App) String

func (x *App) String() string

func (*App) Validate

func (m *App) Validate() error

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

func (m *App) ValidateAll() error

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

type AppMultiError

type AppMultiError []error

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

func (AppMultiError) AllErrors

func (m AppMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AppMultiError) Error

func (m AppMultiError) Error() string

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

type AppValidationError

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

AppValidationError is the validation error returned by App.Validate if the designated constraints aren't met.

func (AppValidationError) Cause

func (e AppValidationError) Cause() error

Cause function returns cause value.

func (AppValidationError) Error

func (e AppValidationError) Error() string

Error satisfies the builtin error interface

func (AppValidationError) ErrorName

func (e AppValidationError) ErrorName() string

ErrorName returns error name.

func (AppValidationError) Field

func (e AppValidationError) Field() string

Field function returns field value.

func (AppValidationError) Key

func (e AppValidationError) Key() bool

Key function returns key value.

func (AppValidationError) Reason

func (e AppValidationError) Reason() string

Reason function returns reason value.

type Bootstrap

type Bootstrap struct {
	App              *App                `protobuf:"bytes,1,opt,name=app,proto3" json:"app,omitempty"`
	Setting          *Setting            `protobuf:"bytes,2,opt,name=setting,proto3" json:"setting,omitempty"`
	Server           *Server             `protobuf:"bytes,101,opt,name=server,proto3" json:"server,omitempty"`
	Log              *Log                `protobuf:"bytes,201,opt,name=log,proto3" json:"log,omitempty"`
	Mysql            *MySQL              `protobuf:"bytes,301,opt,name=mysql,proto3" json:"mysql,omitempty"`
	Psql             *PSQL               `protobuf:"bytes,302,opt,name=psql,proto3" json:"psql,omitempty"`
	Redis            *Redis              `protobuf:"bytes,303,opt,name=redis,proto3" json:"redis,omitempty"`
	Rabbitmq         *Rabbitmq           `protobuf:"bytes,304,opt,name=rabbitmq,proto3" json:"rabbitmq,omitempty"`
	Consul           *Consul             `protobuf:"bytes,305,opt,name=consul,proto3" json:"consul,omitempty"`
	Etcd             *Etcd               `protobuf:"bytes,306,opt,name=etcd,proto3" json:"etcd,omitempty"`
	Jaeger           *Jaeger             `protobuf:"bytes,307,opt,name=jaeger,proto3" json:"jaeger,omitempty"`
	Encrypt          *Encrypt            `protobuf:"bytes,401,opt,name=encrypt,proto3" json:"encrypt,omitempty"`
	ClusterClientApi []*ClusterClientApi `protobuf:"bytes,501,rep,name=cluster_client_api,json=clusterClientApi,proto3" json:"cluster_client_api,omitempty"` // 应用程序接口
	ThirdPartyApi    []*ThirdPartyApi    `protobuf:"bytes,502,rep,name=third_party_api,json=thirdPartyApi,proto3" json:"third_party_api,omitempty"`          // 应用程序接口
	Snowflake        *Snowflake          `protobuf:"bytes,602,opt,name=snowflake,proto3" json:"snowflake,omitempty"`
	// contains filtered or unexported fields
}

Bootstrap 配置引导

func (*Bootstrap) Descriptor deprecated

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

Deprecated: Use Bootstrap.ProtoReflect.Descriptor instead.

func (*Bootstrap) GetApp

func (x *Bootstrap) GetApp() *App

func (*Bootstrap) GetClusterClientApi

func (x *Bootstrap) GetClusterClientApi() []*ClusterClientApi

func (*Bootstrap) GetConsul

func (x *Bootstrap) GetConsul() *Consul

func (*Bootstrap) GetEncrypt

func (x *Bootstrap) GetEncrypt() *Encrypt

func (*Bootstrap) GetEtcd

func (x *Bootstrap) GetEtcd() *Etcd

func (*Bootstrap) GetJaeger

func (x *Bootstrap) GetJaeger() *Jaeger

func (*Bootstrap) GetLog

func (x *Bootstrap) GetLog() *Log

func (*Bootstrap) GetMysql

func (x *Bootstrap) GetMysql() *MySQL

func (*Bootstrap) GetPsql

func (x *Bootstrap) GetPsql() *PSQL

func (*Bootstrap) GetRabbitmq

func (x *Bootstrap) GetRabbitmq() *Rabbitmq

func (*Bootstrap) GetRedis

func (x *Bootstrap) GetRedis() *Redis

func (*Bootstrap) GetServer

func (x *Bootstrap) GetServer() *Server

func (*Bootstrap) GetSetting

func (x *Bootstrap) GetSetting() *Setting

func (*Bootstrap) GetSnowflake

func (x *Bootstrap) GetSnowflake() *Snowflake

func (*Bootstrap) GetThirdPartyApi

func (x *Bootstrap) GetThirdPartyApi() []*ThirdPartyApi

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 ClusterClientApi

type ClusterClientApi struct {
	Name         string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	RegistryName string `protobuf:"bytes,2,opt,name=registry_name,json=registryName,proto3" json:"registry_name,omitempty"`
	HttpHost     string `protobuf:"bytes,3,opt,name=http_host,json=httpHost,proto3" json:"http_host,omitempty"`
	GrpcHost     string `protobuf:"bytes,4,opt,name=grpc_host,json=grpcHost,proto3" json:"grpc_host,omitempty"`
	// contains filtered or unexported fields
}

ClusterClientApi 项目集群客户端api

func (*ClusterClientApi) Descriptor deprecated

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

Deprecated: Use ClusterClientApi.ProtoReflect.Descriptor instead.

func (*ClusterClientApi) GetGrpcHost

func (x *ClusterClientApi) GetGrpcHost() string

func (*ClusterClientApi) GetHttpHost

func (x *ClusterClientApi) GetHttpHost() string

func (*ClusterClientApi) GetName

func (x *ClusterClientApi) GetName() string

func (*ClusterClientApi) GetRegistryName

func (x *ClusterClientApi) GetRegistryName() string

func (*ClusterClientApi) ProtoMessage

func (*ClusterClientApi) ProtoMessage()

func (*ClusterClientApi) ProtoReflect

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

func (*ClusterClientApi) Reset

func (x *ClusterClientApi) Reset()

func (*ClusterClientApi) String

func (x *ClusterClientApi) String() string

func (*ClusterClientApi) Validate

func (m *ClusterClientApi) Validate() error

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

func (m *ClusterClientApi) ValidateAll() error

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

type ClusterClientApiMultiError

type ClusterClientApiMultiError []error

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

func (ClusterClientApiMultiError) AllErrors

func (m ClusterClientApiMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ClusterClientApiMultiError) Error

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

type ClusterClientApiValidationError

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

ClusterClientApiValidationError is the validation error returned by ClusterClientApi.Validate if the designated constraints aren't met.

func (ClusterClientApiValidationError) Cause

Cause function returns cause value.

func (ClusterClientApiValidationError) Error

Error satisfies the builtin error interface

func (ClusterClientApiValidationError) ErrorName

ErrorName returns error name.

func (ClusterClientApiValidationError) Field

Field function returns field value.

func (ClusterClientApiValidationError) Key

Key function returns key value.

func (ClusterClientApiValidationError) Reason

Reason function returns reason value.

type Consul

type Consul struct {
	Enable             bool                 `protobuf:"varint,100,opt,name=enable,proto3" json:"enable,omitempty"`
	Scheme             string               `protobuf:"bytes,1,opt,name=scheme,proto3" json:"scheme,omitempty"`
	Address            string               `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	PathPrefix         string               `protobuf:"bytes,3,opt,name=path_prefix,json=pathPrefix,proto3" json:"path_prefix,omitempty"`
	Datacenter         string               `protobuf:"bytes,4,opt,name=datacenter,proto3" json:"datacenter,omitempty"`
	WaitTime           *durationpb.Duration `protobuf:"bytes,5,opt,name=wait_time,json=waitTime,proto3" json:"wait_time,omitempty"` // (s)
	Token              string               `protobuf:"bytes,6,opt,name=token,proto3" json:"token,omitempty"`
	Namespace          string               `protobuf:"bytes,7,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Partition          string               `protobuf:"bytes,8,opt,name=partition,proto3" json:"partition,omitempty"`
	WithHttpBasicAuth  bool                 `protobuf:"varint,9,opt,name=with_http_basic_auth,json=withHttpBasicAuth,proto3" json:"with_http_basic_auth,omitempty"`
	AuthUsername       string               `protobuf:"bytes,10,opt,name=auth_username,json=authUsername,proto3" json:"auth_username,omitempty"`
	AuthPassword       string               `protobuf:"bytes,11,opt,name=auth_password,json=authPassword,proto3" json:"auth_password,omitempty"`
	InsecureSkipVerify bool                 `protobuf:"varint,12,opt,name=insecure_skip_verify,json=insecureSkipVerify,proto3" json:"insecure_skip_verify,omitempty"`
	TlsAddress         string               `protobuf:"bytes,13,opt,name=tls_address,json=tlsAddress,proto3" json:"tls_address,omitempty"`
	TlsCaPem           string               `protobuf:"bytes,14,opt,name=tls_ca_pem,json=tlsCaPem,proto3" json:"tls_ca_pem,omitempty"`
	TlsCertPem         string               `protobuf:"bytes,15,opt,name=tls_cert_pem,json=tlsCertPem,proto3" json:"tls_cert_pem,omitempty"`
	TlsKeyPem          string               `protobuf:"bytes,16,opt,name=tls_key_pem,json=tlsKeyPem,proto3" json:"tls_key_pem,omitempty"`
	// contains filtered or unexported fields
}

Consul consul

func (*Consul) Descriptor deprecated

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

Deprecated: Use Consul.ProtoReflect.Descriptor instead.

func (*Consul) GetAddress

func (x *Consul) GetAddress() string

func (*Consul) GetAuthPassword

func (x *Consul) GetAuthPassword() string

func (*Consul) GetAuthUsername

func (x *Consul) GetAuthUsername() string

func (*Consul) GetDatacenter

func (x *Consul) GetDatacenter() string

func (*Consul) GetEnable

func (x *Consul) GetEnable() bool

func (*Consul) GetInsecureSkipVerify

func (x *Consul) GetInsecureSkipVerify() bool

func (*Consul) GetNamespace

func (x *Consul) GetNamespace() string

func (*Consul) GetPartition

func (x *Consul) GetPartition() string

func (*Consul) GetPathPrefix

func (x *Consul) GetPathPrefix() string

func (*Consul) GetScheme

func (x *Consul) GetScheme() string

func (*Consul) GetTlsAddress

func (x *Consul) GetTlsAddress() string

func (*Consul) GetTlsCaPem

func (x *Consul) GetTlsCaPem() string

func (*Consul) GetTlsCertPem

func (x *Consul) GetTlsCertPem() string

func (*Consul) GetTlsKeyPem

func (x *Consul) GetTlsKeyPem() string

func (*Consul) GetToken

func (x *Consul) GetToken() string

func (*Consul) GetWaitTime

func (x *Consul) GetWaitTime() *durationpb.Duration

func (*Consul) GetWithHttpBasicAuth

func (x *Consul) GetWithHttpBasicAuth() bool

func (*Consul) ProtoMessage

func (*Consul) ProtoMessage()

func (*Consul) ProtoReflect

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

func (*Consul) Reset

func (x *Consul) Reset()

func (*Consul) String

func (x *Consul) String() string

func (*Consul) Validate

func (m *Consul) Validate() error

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

func (m *Consul) ValidateAll() error

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

type ConsulMultiError

type ConsulMultiError []error

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

func (ConsulMultiError) AllErrors

func (m ConsulMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ConsulMultiError) Error

func (m ConsulMultiError) Error() string

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

type ConsulValidationError

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

ConsulValidationError is the validation error returned by Consul.Validate if the designated constraints aren't met.

func (ConsulValidationError) Cause

func (e ConsulValidationError) Cause() error

Cause function returns cause value.

func (ConsulValidationError) Error

func (e ConsulValidationError) Error() string

Error satisfies the builtin error interface

func (ConsulValidationError) ErrorName

func (e ConsulValidationError) ErrorName() string

ErrorName returns error name.

func (ConsulValidationError) Field

func (e ConsulValidationError) Field() string

Field function returns field value.

func (ConsulValidationError) Key

func (e ConsulValidationError) Key() bool

Key function returns key value.

func (ConsulValidationError) Reason

func (e ConsulValidationError) Reason() string

Reason function returns reason value.

type Encrypt

type Encrypt struct {
	TransferEncrypt *Encrypt_TransferEncrypt `protobuf:"bytes,1,opt,name=transfer_encrypt,json=transferEncrypt,proto3" json:"transfer_encrypt,omitempty"`
	ServiceEncrypt  *Encrypt_ServiceEncrypt  `protobuf:"bytes,2,opt,name=service_encrypt,json=serviceEncrypt,proto3" json:"service_encrypt,omitempty"`
	TokenEncrypt    *Encrypt_TokenEncrypt    `protobuf:"bytes,3,opt,name=token_encrypt,json=tokenEncrypt,proto3" json:"token_encrypt,omitempty"`
	// contains filtered or unexported fields
}

func (*Encrypt) Descriptor deprecated

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

Deprecated: Use Encrypt.ProtoReflect.Descriptor instead.

func (*Encrypt) GetServiceEncrypt

func (x *Encrypt) GetServiceEncrypt() *Encrypt_ServiceEncrypt

func (*Encrypt) GetTokenEncrypt

func (x *Encrypt) GetTokenEncrypt() *Encrypt_TokenEncrypt

func (*Encrypt) GetTransferEncrypt

func (x *Encrypt) GetTransferEncrypt() *Encrypt_TransferEncrypt

func (*Encrypt) ProtoMessage

func (*Encrypt) ProtoMessage()

func (*Encrypt) ProtoReflect

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

func (*Encrypt) Reset

func (x *Encrypt) Reset()

func (*Encrypt) String

func (x *Encrypt) String() string

func (*Encrypt) Validate

func (m *Encrypt) Validate() error

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

func (m *Encrypt) ValidateAll() error

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

type EncryptMultiError

type EncryptMultiError []error

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

func (EncryptMultiError) AllErrors

func (m EncryptMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (EncryptMultiError) Error

func (m EncryptMultiError) Error() string

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

type EncryptValidationError

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

EncryptValidationError is the validation error returned by Encrypt.Validate if the designated constraints aren't met.

func (EncryptValidationError) Cause

func (e EncryptValidationError) Cause() error

Cause function returns cause value.

func (EncryptValidationError) Error

func (e EncryptValidationError) Error() string

Error satisfies the builtin error interface

func (EncryptValidationError) ErrorName

func (e EncryptValidationError) ErrorName() string

ErrorName returns error name.

func (EncryptValidationError) Field

func (e EncryptValidationError) Field() string

Field function returns field value.

func (EncryptValidationError) Key

func (e EncryptValidationError) Key() bool

Key function returns key value.

func (EncryptValidationError) Reason

func (e EncryptValidationError) Reason() string

Reason function returns reason value.

type Encrypt_ServiceEncrypt

type Encrypt_ServiceEncrypt struct {
	PublicKey  string `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	PrivateKey string `protobuf:"bytes,2,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
	// contains filtered or unexported fields
}

ServiceEncrypt 非对称加密传输,主要用于服务请求鉴权,服务间的鉴权

func (*Encrypt_ServiceEncrypt) Descriptor deprecated

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

Deprecated: Use Encrypt_ServiceEncrypt.ProtoReflect.Descriptor instead.

func (*Encrypt_ServiceEncrypt) GetPrivateKey

func (x *Encrypt_ServiceEncrypt) GetPrivateKey() string

func (*Encrypt_ServiceEncrypt) GetPublicKey

func (x *Encrypt_ServiceEncrypt) GetPublicKey() string

func (*Encrypt_ServiceEncrypt) ProtoMessage

func (*Encrypt_ServiceEncrypt) ProtoMessage()

func (*Encrypt_ServiceEncrypt) ProtoReflect

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

func (*Encrypt_ServiceEncrypt) Reset

func (x *Encrypt_ServiceEncrypt) Reset()

func (*Encrypt_ServiceEncrypt) String

func (x *Encrypt_ServiceEncrypt) String() string

func (*Encrypt_ServiceEncrypt) Validate

func (m *Encrypt_ServiceEncrypt) Validate() error

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

func (m *Encrypt_ServiceEncrypt) ValidateAll() error

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

type Encrypt_ServiceEncryptMultiError

type Encrypt_ServiceEncryptMultiError []error

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

func (Encrypt_ServiceEncryptMultiError) AllErrors

func (m Encrypt_ServiceEncryptMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Encrypt_ServiceEncryptMultiError) Error

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

type Encrypt_ServiceEncryptValidationError

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

Encrypt_ServiceEncryptValidationError is the validation error returned by Encrypt_ServiceEncrypt.Validate if the designated constraints aren't met.

func (Encrypt_ServiceEncryptValidationError) Cause

Cause function returns cause value.

func (Encrypt_ServiceEncryptValidationError) Error

Error satisfies the builtin error interface

func (Encrypt_ServiceEncryptValidationError) ErrorName

ErrorName returns error name.

func (Encrypt_ServiceEncryptValidationError) Field

Field function returns field value.

func (Encrypt_ServiceEncryptValidationError) Key

Key function returns key value.

func (Encrypt_ServiceEncryptValidationError) Reason

Reason function returns reason value.

type Encrypt_TokenEncrypt

type Encrypt_TokenEncrypt struct {
	SignKey    string `protobuf:"bytes,1,opt,name=sign_key,json=signKey,proto3" json:"sign_key,omitempty"`
	RefreshKey string `protobuf:"bytes,2,opt,name=refresh_key,json=refreshKey,proto3" json:"refresh_key,omitempty"`
	// contains filtered or unexported fields
}

TokenEncrypt token

func (*Encrypt_TokenEncrypt) Descriptor deprecated

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

Deprecated: Use Encrypt_TokenEncrypt.ProtoReflect.Descriptor instead.

func (*Encrypt_TokenEncrypt) GetRefreshKey

func (x *Encrypt_TokenEncrypt) GetRefreshKey() string

func (*Encrypt_TokenEncrypt) GetSignKey

func (x *Encrypt_TokenEncrypt) GetSignKey() string

func (*Encrypt_TokenEncrypt) ProtoMessage

func (*Encrypt_TokenEncrypt) ProtoMessage()

func (*Encrypt_TokenEncrypt) ProtoReflect

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

func (*Encrypt_TokenEncrypt) Reset

func (x *Encrypt_TokenEncrypt) Reset()

func (*Encrypt_TokenEncrypt) String

func (x *Encrypt_TokenEncrypt) String() string

func (*Encrypt_TokenEncrypt) Validate

func (m *Encrypt_TokenEncrypt) Validate() error

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

func (m *Encrypt_TokenEncrypt) ValidateAll() error

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

type Encrypt_TokenEncryptMultiError

type Encrypt_TokenEncryptMultiError []error

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

func (Encrypt_TokenEncryptMultiError) AllErrors

func (m Encrypt_TokenEncryptMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Encrypt_TokenEncryptMultiError) Error

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

type Encrypt_TokenEncryptValidationError

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

Encrypt_TokenEncryptValidationError is the validation error returned by Encrypt_TokenEncrypt.Validate if the designated constraints aren't met.

func (Encrypt_TokenEncryptValidationError) Cause

Cause function returns cause value.

func (Encrypt_TokenEncryptValidationError) Error

Error satisfies the builtin error interface

func (Encrypt_TokenEncryptValidationError) ErrorName

ErrorName returns error name.

func (Encrypt_TokenEncryptValidationError) Field

Field function returns field value.

func (Encrypt_TokenEncryptValidationError) Key

Key function returns key value.

func (Encrypt_TokenEncryptValidationError) Reason

Reason function returns reason value.

type Encrypt_TransferEncrypt

type Encrypt_TransferEncrypt struct {
	PublicKey  string `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	PrivateKey string `protobuf:"bytes,2,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
	// contains filtered or unexported fields
}

TransferEncrypt 非对称加密传输,主要用于密码传递等,防止传递过程中明文信息被log,导致泄露

func (*Encrypt_TransferEncrypt) Descriptor deprecated

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

Deprecated: Use Encrypt_TransferEncrypt.ProtoReflect.Descriptor instead.

func (*Encrypt_TransferEncrypt) GetPrivateKey

func (x *Encrypt_TransferEncrypt) GetPrivateKey() string

func (*Encrypt_TransferEncrypt) GetPublicKey

func (x *Encrypt_TransferEncrypt) GetPublicKey() string

func (*Encrypt_TransferEncrypt) ProtoMessage

func (*Encrypt_TransferEncrypt) ProtoMessage()

func (*Encrypt_TransferEncrypt) ProtoReflect

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

func (*Encrypt_TransferEncrypt) Reset

func (x *Encrypt_TransferEncrypt) Reset()

func (*Encrypt_TransferEncrypt) String

func (x *Encrypt_TransferEncrypt) String() string

func (*Encrypt_TransferEncrypt) Validate

func (m *Encrypt_TransferEncrypt) Validate() error

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

func (m *Encrypt_TransferEncrypt) ValidateAll() error

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

type Encrypt_TransferEncryptMultiError

type Encrypt_TransferEncryptMultiError []error

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

func (Encrypt_TransferEncryptMultiError) AllErrors

func (m Encrypt_TransferEncryptMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Encrypt_TransferEncryptMultiError) Error

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

type Encrypt_TransferEncryptValidationError

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

Encrypt_TransferEncryptValidationError is the validation error returned by Encrypt_TransferEncrypt.Validate if the designated constraints aren't met.

func (Encrypt_TransferEncryptValidationError) Cause

Cause function returns cause value.

func (Encrypt_TransferEncryptValidationError) Error

Error satisfies the builtin error interface

func (Encrypt_TransferEncryptValidationError) ErrorName

ErrorName returns error name.

func (Encrypt_TransferEncryptValidationError) Field

Field function returns field value.

func (Encrypt_TransferEncryptValidationError) Key

Key function returns key value.

func (Encrypt_TransferEncryptValidationError) Reason

Reason function returns reason value.

type Etcd

type Etcd struct {
	Endpoints          []string             `protobuf:"bytes,1,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
	Username           string               `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	Password           string               `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	DialTimeout        *durationpb.Duration `protobuf:"bytes,4,opt,name=dial_timeout,json=dialTimeout,proto3" json:"dial_timeout,omitempty"` // (s)
	CaCert             []byte               `protobuf:"bytes,5,opt,name=ca_cert,json=caCert,proto3" json:"ca_cert,omitempty"`
	InsecureSkipVerify bool                 `protobuf:"varint,6,opt,name=insecure_skip_verify,json=insecureSkipVerify,proto3" json:"insecure_skip_verify,omitempty"`
	// contains filtered or unexported fields
}

func (*Etcd) Descriptor deprecated

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

Deprecated: Use Etcd.ProtoReflect.Descriptor instead.

func (*Etcd) GetCaCert

func (x *Etcd) GetCaCert() []byte

func (*Etcd) GetDialTimeout

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

func (*Etcd) GetEndpoints

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

func (*Etcd) GetInsecureSkipVerify

func (x *Etcd) GetInsecureSkipVerify() bool

func (*Etcd) GetPassword

func (x *Etcd) GetPassword() string

func (*Etcd) GetUsername

func (x *Etcd) GetUsername() string

func (*Etcd) ProtoMessage

func (*Etcd) ProtoMessage()

func (*Etcd) ProtoReflect

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

func (*Etcd) Reset

func (x *Etcd) Reset()

func (*Etcd) String

func (x *Etcd) String() string

func (*Etcd) Validate

func (m *Etcd) Validate() error

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

func (m *Etcd) ValidateAll() error

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

type EtcdMultiError

type EtcdMultiError []error

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

func (EtcdMultiError) AllErrors

func (m EtcdMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (EtcdMultiError) Error

func (m EtcdMultiError) Error() string

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

type EtcdValidationError

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

EtcdValidationError is the validation error returned by Etcd.Validate if the designated constraints aren't met.

func (EtcdValidationError) Cause

func (e EtcdValidationError) Cause() error

Cause function returns cause value.

func (EtcdValidationError) Error

func (e EtcdValidationError) Error() string

Error satisfies the builtin error interface

func (EtcdValidationError) ErrorName

func (e EtcdValidationError) ErrorName() string

ErrorName returns error name.

func (EtcdValidationError) Field

func (e EtcdValidationError) Field() string

Field function returns field value.

func (EtcdValidationError) Key

func (e EtcdValidationError) Key() bool

Key function returns key value.

func (EtcdValidationError) Reason

func (e EtcdValidationError) Reason() string

Reason function returns reason value.

type Jaeger

type Jaeger struct {
	Enable            bool   `protobuf:"varint,100,opt,name=enable,proto3" json:"enable,omitempty"`
	Endpoint          string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
	WithHttpBasicAuth bool   `protobuf:"varint,2,opt,name=with_http_basic_auth,json=withHttpBasicAuth,proto3" json:"with_http_basic_auth,omitempty"`
	Username          string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"`
	Password          string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

Jaeger jaeger

func (*Jaeger) Descriptor deprecated

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

Deprecated: Use Jaeger.ProtoReflect.Descriptor instead.

func (*Jaeger) GetEnable

func (x *Jaeger) GetEnable() bool

func (*Jaeger) GetEndpoint

func (x *Jaeger) GetEndpoint() string

func (*Jaeger) GetPassword

func (x *Jaeger) GetPassword() string

func (*Jaeger) GetUsername

func (x *Jaeger) GetUsername() string

func (*Jaeger) GetWithHttpBasicAuth

func (x *Jaeger) GetWithHttpBasicAuth() bool

func (*Jaeger) ProtoMessage

func (*Jaeger) ProtoMessage()

func (*Jaeger) ProtoReflect

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

func (*Jaeger) Reset

func (x *Jaeger) Reset()

func (*Jaeger) String

func (x *Jaeger) String() string

func (*Jaeger) Validate

func (m *Jaeger) Validate() error

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

func (m *Jaeger) ValidateAll() error

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

type JaegerMultiError

type JaegerMultiError []error

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

func (JaegerMultiError) AllErrors

func (m JaegerMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (JaegerMultiError) Error

func (m JaegerMultiError) Error() string

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

type JaegerValidationError

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

JaegerValidationError is the validation error returned by Jaeger.Validate if the designated constraints aren't met.

func (JaegerValidationError) Cause

func (e JaegerValidationError) Cause() error

Cause function returns cause value.

func (JaegerValidationError) Error

func (e JaegerValidationError) Error() string

Error satisfies the builtin error interface

func (JaegerValidationError) ErrorName

func (e JaegerValidationError) ErrorName() string

ErrorName returns error name.

func (JaegerValidationError) Field

func (e JaegerValidationError) Field() string

Field function returns field value.

func (JaegerValidationError) Key

func (e JaegerValidationError) Key() bool

Key function returns key value.

func (JaegerValidationError) Reason

func (e JaegerValidationError) Reason() string

Reason function returns reason value.

type Log

type Log struct {
	Console *Log_Console `protobuf:"bytes,1,opt,name=console,proto3" json:"console,omitempty"` // console 输出到控制台
	File    *Log_File    `protobuf:"bytes,2,opt,name=file,proto3" json:"file,omitempty"`       // file 输出到文件
	// contains filtered or unexported fields
}

func (*Log) Descriptor deprecated

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

Deprecated: Use Log.ProtoReflect.Descriptor instead.

func (*Log) GetConsole

func (x *Log) GetConsole() *Log_Console

func (*Log) GetFile

func (x *Log) GetFile() *Log_File

func (*Log) ProtoMessage

func (*Log) ProtoMessage()

func (*Log) ProtoReflect

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

func (*Log) Reset

func (x *Log) Reset()

func (*Log) String

func (x *Log) String() string

func (*Log) Validate

func (m *Log) Validate() error

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

func (m *Log) ValidateAll() error

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

type LogMultiError

type LogMultiError []error

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

func (LogMultiError) AllErrors

func (m LogMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LogMultiError) Error

func (m LogMultiError) Error() string

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

type LogValidationError

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

LogValidationError is the validation error returned by Log.Validate if the designated constraints aren't met.

func (LogValidationError) Cause

func (e LogValidationError) Cause() error

Cause function returns cause value.

func (LogValidationError) Error

func (e LogValidationError) Error() string

Error satisfies the builtin error interface

func (LogValidationError) ErrorName

func (e LogValidationError) ErrorName() string

ErrorName returns error name.

func (LogValidationError) Field

func (e LogValidationError) Field() string

Field function returns field value.

func (LogValidationError) Key

func (e LogValidationError) Key() bool

Key function returns key value.

func (LogValidationError) Reason

func (e LogValidationError) Reason() string

Reason function returns reason value.

type Log_Console

type Log_Console struct {
	Enable bool   `protobuf:"varint,1,opt,name=enable,proto3" json:"enable,omitempty"` // 是否启用
	Level  string `protobuf:"bytes,2,opt,name=level,proto3" json:"level,omitempty"`    // 日志级别;DEBUG、INFO、WARN、ERROR、FATAL
	// contains filtered or unexported fields
}

Console 输出到控制台

func (*Log_Console) Descriptor deprecated

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

Deprecated: Use Log_Console.ProtoReflect.Descriptor instead.

func (*Log_Console) GetEnable

func (x *Log_Console) GetEnable() bool

func (*Log_Console) GetLevel

func (x *Log_Console) GetLevel() string

func (*Log_Console) ProtoMessage

func (*Log_Console) ProtoMessage()

func (*Log_Console) ProtoReflect

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

func (*Log_Console) Reset

func (x *Log_Console) Reset()

func (*Log_Console) String

func (x *Log_Console) String() string

func (*Log_Console) Validate

func (m *Log_Console) Validate() error

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

func (m *Log_Console) ValidateAll() error

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

type Log_ConsoleMultiError

type Log_ConsoleMultiError []error

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

func (Log_ConsoleMultiError) AllErrors

func (m Log_ConsoleMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Log_ConsoleMultiError) Error

func (m Log_ConsoleMultiError) Error() string

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

type Log_ConsoleValidationError

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

Log_ConsoleValidationError is the validation error returned by Log_Console.Validate if the designated constraints aren't met.

func (Log_ConsoleValidationError) Cause

Cause function returns cause value.

func (Log_ConsoleValidationError) Error

Error satisfies the builtin error interface

func (Log_ConsoleValidationError) ErrorName

func (e Log_ConsoleValidationError) ErrorName() string

ErrorName returns error name.

func (Log_ConsoleValidationError) Field

Field function returns field value.

func (Log_ConsoleValidationError) Key

Key function returns key value.

func (Log_ConsoleValidationError) Reason

Reason function returns reason value.

type Log_File

type Log_File struct {
	Enable         bool                 `protobuf:"varint,1,opt,name=enable,proto3" json:"enable,omitempty"`                                       // 是否启用
	Level          string               `protobuf:"bytes,2,opt,name=level,proto3" json:"level,omitempty"`                                          // 日志级别;DEBUG、INFO、WARN、ERROR、FATAL
	Dir            string               `protobuf:"bytes,3,opt,name=dir,proto3" json:"dir,omitempty"`                                              // 存储目录
	Filename       string               `protobuf:"bytes,4,opt,name=filename,proto3" json:"filename,omitempty"`                                    // 文件名(默认:${filename}_app.%Y%m%d%H%M%S.log)
	RotateTime     *durationpb.Duration `protobuf:"bytes,5,opt,name=rotate_time,json=rotateTime,proto3" json:"rotate_time,omitempty"`              // 轮询规则:n久(默认:86400s # 86400s = 1天);轮询规则:默认为:rotate_time(s)
	RotateSize     int64                `protobuf:"varint,6,opt,name=rotate_size,json=rotateSize,proto3" json:"rotate_size,omitempty"`             // 轮询规则:按文件大小(默认:52428800 # 50<<20 = 50M);轮询规则:默认为:rotate_time
	StorageAge     *durationpb.Duration `protobuf:"bytes,7,opt,name=storage_age,json=storageAge,proto3" json:"storage_age,omitempty"`              // 存储n久(默认:2592000s = 30天);存储规则:默认为:storage_age(s)
	StorageCounter uint32               `protobuf:"varint,8,opt,name=storage_counter,json=storageCounter,proto3" json:"storage_counter,omitempty"` // 存储:n个 或 有效期storage_age(默认:2592000s = 30天);存储规则:默认为:storage_age
	// contains filtered or unexported fields
}

File 输出到文件

func (*Log_File) Descriptor deprecated

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

Deprecated: Use Log_File.ProtoReflect.Descriptor instead.

func (*Log_File) GetDir

func (x *Log_File) GetDir() string

func (*Log_File) GetEnable

func (x *Log_File) GetEnable() bool

func (*Log_File) GetFilename

func (x *Log_File) GetFilename() string

func (*Log_File) GetLevel

func (x *Log_File) GetLevel() string

func (*Log_File) GetRotateSize

func (x *Log_File) GetRotateSize() int64

func (*Log_File) GetRotateTime

func (x *Log_File) GetRotateTime() *durationpb.Duration

func (*Log_File) GetStorageAge

func (x *Log_File) GetStorageAge() *durationpb.Duration

func (*Log_File) GetStorageCounter

func (x *Log_File) GetStorageCounter() uint32

func (*Log_File) ProtoMessage

func (*Log_File) ProtoMessage()

func (*Log_File) ProtoReflect

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

func (*Log_File) Reset

func (x *Log_File) Reset()

func (*Log_File) String

func (x *Log_File) String() string

func (*Log_File) Validate

func (m *Log_File) Validate() error

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

func (m *Log_File) ValidateAll() error

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

type Log_FileMultiError

type Log_FileMultiError []error

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

func (Log_FileMultiError) AllErrors

func (m Log_FileMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Log_FileMultiError) Error

func (m Log_FileMultiError) Error() string

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

type Log_FileValidationError

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

Log_FileValidationError is the validation error returned by Log_File.Validate if the designated constraints aren't met.

func (Log_FileValidationError) Cause

func (e Log_FileValidationError) Cause() error

Cause function returns cause value.

func (Log_FileValidationError) Error

func (e Log_FileValidationError) Error() string

Error satisfies the builtin error interface

func (Log_FileValidationError) ErrorName

func (e Log_FileValidationError) ErrorName() string

ErrorName returns error name.

func (Log_FileValidationError) Field

func (e Log_FileValidationError) Field() string

Field function returns field value.

func (Log_FileValidationError) Key

func (e Log_FileValidationError) Key() bool

Key function returns key value.

func (Log_FileValidationError) Reason

func (e Log_FileValidationError) Reason() string

Reason function returns reason value.

type MySQL

type MySQL struct {
	Enable          bool                 `protobuf:"varint,100,opt,name=enable,proto3" json:"enable,omitempty"`                                           // 是否启动
	Dsn             string               `protobuf:"bytes,1,opt,name=dsn,proto3" json:"dsn,omitempty"`                                                    // dsn
	SlowThreshold   *durationpb.Duration `protobuf:"bytes,2,opt,name=slow_threshold,json=slowThreshold,proto3" json:"slow_threshold,omitempty"`           // 慢查询(s)
	LoggerEnable    bool                 `protobuf:"varint,3,opt,name=logger_enable,json=loggerEnable,proto3" json:"logger_enable,omitempty"`             // 启用日志
	LoggerColorful  bool                 `protobuf:"varint,4,opt,name=logger_colorful,json=loggerColorful,proto3" json:"logger_colorful,omitempty"`       // 多彩日志
	LoggerLevel     string               `protobuf:"bytes,5,opt,name=logger_level,json=loggerLevel,proto3" json:"logger_level,omitempty"`                 // 日志级别;值:DEBUG、INFO、WARN、ERROR、FATAL
	ConnMaxActive   uint32               `protobuf:"varint,6,opt,name=conn_max_active,json=connMaxActive,proto3" json:"conn_max_active,omitempty"`        // 连接可复用的最大时间
	ConnMaxLifetime *durationpb.Duration `protobuf:"bytes,7,opt,name=conn_max_lifetime,json=connMaxLifetime,proto3" json:"conn_max_lifetime,omitempty"`   // 可复用的最大时间(s)
	ConnMaxIdle     uint32               `protobuf:"varint,8,opt,name=conn_max_idle,json=connMaxIdle,proto3" json:"conn_max_idle,omitempty"`              // 连接池中空闲连接的最大数量
	ConnMaxIdleTime *durationpb.Duration `protobuf:"bytes,9,opt,name=conn_max_idle_time,json=connMaxIdleTime,proto3" json:"conn_max_idle_time,omitempty"` // 设置连接空闲的最长时间(s)
	// contains filtered or unexported fields
}

MySQL MySQL

func (*MySQL) Descriptor deprecated

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

Deprecated: Use MySQL.ProtoReflect.Descriptor instead.

func (*MySQL) GetConnMaxActive

func (x *MySQL) GetConnMaxActive() uint32

func (*MySQL) GetConnMaxIdle

func (x *MySQL) GetConnMaxIdle() uint32

func (*MySQL) GetConnMaxIdleTime

func (x *MySQL) GetConnMaxIdleTime() *durationpb.Duration

func (*MySQL) GetConnMaxLifetime

func (x *MySQL) GetConnMaxLifetime() *durationpb.Duration

func (*MySQL) GetDsn

func (x *MySQL) GetDsn() string

func (*MySQL) GetEnable

func (x *MySQL) GetEnable() bool

func (*MySQL) GetLoggerColorful

func (x *MySQL) GetLoggerColorful() bool

func (*MySQL) GetLoggerEnable

func (x *MySQL) GetLoggerEnable() bool

func (*MySQL) GetLoggerLevel

func (x *MySQL) GetLoggerLevel() string

func (*MySQL) GetSlowThreshold

func (x *MySQL) GetSlowThreshold() *durationpb.Duration

func (*MySQL) ProtoMessage

func (*MySQL) ProtoMessage()

func (*MySQL) ProtoReflect

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

func (*MySQL) Reset

func (x *MySQL) Reset()

func (*MySQL) String

func (x *MySQL) String() string

func (*MySQL) Validate

func (m *MySQL) Validate() error

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

func (m *MySQL) ValidateAll() error

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

type MySQLMultiError

type MySQLMultiError []error

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

func (MySQLMultiError) AllErrors

func (m MySQLMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (MySQLMultiError) Error

func (m MySQLMultiError) Error() string

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

type MySQLValidationError

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

MySQLValidationError is the validation error returned by MySQL.Validate if the designated constraints aren't met.

func (MySQLValidationError) Cause

func (e MySQLValidationError) Cause() error

Cause function returns cause value.

func (MySQLValidationError) Error

func (e MySQLValidationError) Error() string

Error satisfies the builtin error interface

func (MySQLValidationError) ErrorName

func (e MySQLValidationError) ErrorName() string

ErrorName returns error name.

func (MySQLValidationError) Field

func (e MySQLValidationError) Field() string

Field function returns field value.

func (MySQLValidationError) Key

func (e MySQLValidationError) Key() bool

Key function returns key value.

func (MySQLValidationError) Reason

func (e MySQLValidationError) Reason() string

Reason function returns reason value.

type PSQL

type PSQL struct {
	Enable          bool                 `protobuf:"varint,100,opt,name=enable,proto3" json:"enable,omitempty"` // 是否启动
	Dsn             string               `protobuf:"bytes,1,opt,name=dsn,proto3" json:"dsn,omitempty"`
	SlowThreshold   *durationpb.Duration `protobuf:"bytes,2,opt,name=slow_threshold,json=slowThreshold,proto3" json:"slow_threshold,omitempty"` // 慢查询(s)
	LoggerEnable    bool                 `protobuf:"varint,3,opt,name=logger_enable,json=loggerEnable,proto3" json:"logger_enable,omitempty"`
	LoggerColorful  bool                 `protobuf:"varint,4,opt,name=logger_colorful,json=loggerColorful,proto3" json:"logger_colorful,omitempty"`
	LoggerLevel     string               `protobuf:"bytes,5,opt,name=logger_level,json=loggerLevel,proto3" json:"logger_level,omitempty"`                 // 日志级别;值:DEBUG、INFO、WARN、ERROR、FATAL
	ConnMaxActive   uint32               `protobuf:"varint,6,opt,name=conn_max_active,json=connMaxActive,proto3" json:"conn_max_active,omitempty"`        // 连接可复用的最大时间
	ConnMaxLifetime *durationpb.Duration `protobuf:"bytes,7,opt,name=conn_max_lifetime,json=connMaxLifetime,proto3" json:"conn_max_lifetime,omitempty"`   // 可复用的最大时间(s)
	ConnMaxIdle     uint32               `protobuf:"varint,8,opt,name=conn_max_idle,json=connMaxIdle,proto3" json:"conn_max_idle,omitempty"`              // 连接池中空闲连接的最大数量
	ConnMaxIdleTime *durationpb.Duration `protobuf:"bytes,9,opt,name=conn_max_idle_time,json=connMaxIdleTime,proto3" json:"conn_max_idle_time,omitempty"` // 设置连接空闲的最长时间(s)
	// contains filtered or unexported fields
}

PSQL postgres

func (*PSQL) Descriptor deprecated

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

Deprecated: Use PSQL.ProtoReflect.Descriptor instead.

func (*PSQL) GetConnMaxActive

func (x *PSQL) GetConnMaxActive() uint32

func (*PSQL) GetConnMaxIdle

func (x *PSQL) GetConnMaxIdle() uint32

func (*PSQL) GetConnMaxIdleTime

func (x *PSQL) GetConnMaxIdleTime() *durationpb.Duration

func (*PSQL) GetConnMaxLifetime

func (x *PSQL) GetConnMaxLifetime() *durationpb.Duration

func (*PSQL) GetDsn

func (x *PSQL) GetDsn() string

func (*PSQL) GetEnable

func (x *PSQL) GetEnable() bool

func (*PSQL) GetLoggerColorful

func (x *PSQL) GetLoggerColorful() bool

func (*PSQL) GetLoggerEnable

func (x *PSQL) GetLoggerEnable() bool

func (*PSQL) GetLoggerLevel

func (x *PSQL) GetLoggerLevel() string

func (*PSQL) GetSlowThreshold

func (x *PSQL) GetSlowThreshold() *durationpb.Duration

func (*PSQL) ProtoMessage

func (*PSQL) ProtoMessage()

func (*PSQL) ProtoReflect

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

func (*PSQL) Reset

func (x *PSQL) Reset()

func (*PSQL) String

func (x *PSQL) String() string

func (*PSQL) Validate

func (m *PSQL) Validate() error

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

func (m *PSQL) ValidateAll() error

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

type PSQLMultiError

type PSQLMultiError []error

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

func (PSQLMultiError) AllErrors

func (m PSQLMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PSQLMultiError) Error

func (m PSQLMultiError) Error() string

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

type PSQLValidationError

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

PSQLValidationError is the validation error returned by PSQL.Validate if the designated constraints aren't met.

func (PSQLValidationError) Cause

func (e PSQLValidationError) Cause() error

Cause function returns cause value.

func (PSQLValidationError) Error

func (e PSQLValidationError) Error() string

Error satisfies the builtin error interface

func (PSQLValidationError) ErrorName

func (e PSQLValidationError) ErrorName() string

ErrorName returns error name.

func (PSQLValidationError) Field

func (e PSQLValidationError) Field() string

Field function returns field value.

func (PSQLValidationError) Key

func (e PSQLValidationError) Key() bool

Key function returns key value.

func (PSQLValidationError) Reason

func (e PSQLValidationError) Reason() string

Reason function returns reason value.

type Rabbitmq

type Rabbitmq struct {
	Enable     bool   `protobuf:"varint,100,opt,name=enable,proto3" json:"enable,omitempty"`
	Url        string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	TlsAddress string `protobuf:"bytes,2,opt,name=tls_address,json=tlsAddress,proto3" json:"tls_address,omitempty"`
	TlsCaPem   string `protobuf:"bytes,3,opt,name=tls_ca_pem,json=tlsCaPem,proto3" json:"tls_ca_pem,omitempty"`
	TlsCertPem string `protobuf:"bytes,4,opt,name=tls_cert_pem,json=tlsCertPem,proto3" json:"tls_cert_pem,omitempty"`
	TlsKeyPem  string `protobuf:"bytes,5,opt,name=tls_key_pem,json=tlsKeyPem,proto3" json:"tls_key_pem,omitempty"`
	// contains filtered or unexported fields
}

RabbitMQ rabbitmq

func (*Rabbitmq) Descriptor deprecated

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

Deprecated: Use Rabbitmq.ProtoReflect.Descriptor instead.

func (*Rabbitmq) GetEnable

func (x *Rabbitmq) GetEnable() bool

func (*Rabbitmq) GetTlsAddress

func (x *Rabbitmq) GetTlsAddress() string

func (*Rabbitmq) GetTlsCaPem

func (x *Rabbitmq) GetTlsCaPem() string

func (*Rabbitmq) GetTlsCertPem

func (x *Rabbitmq) GetTlsCertPem() string

func (*Rabbitmq) GetTlsKeyPem

func (x *Rabbitmq) GetTlsKeyPem() string

func (*Rabbitmq) GetUrl

func (x *Rabbitmq) GetUrl() string

func (*Rabbitmq) ProtoMessage

func (*Rabbitmq) ProtoMessage()

func (*Rabbitmq) ProtoReflect

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

func (*Rabbitmq) Reset

func (x *Rabbitmq) Reset()

func (*Rabbitmq) String

func (x *Rabbitmq) String() string

func (*Rabbitmq) Validate

func (m *Rabbitmq) Validate() error

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

func (m *Rabbitmq) ValidateAll() error

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

type RabbitmqMultiError

type RabbitmqMultiError []error

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

func (RabbitmqMultiError) AllErrors

func (m RabbitmqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RabbitmqMultiError) Error

func (m RabbitmqMultiError) Error() string

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

type RabbitmqValidationError

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

RabbitmqValidationError is the validation error returned by Rabbitmq.Validate if the designated constraints aren't met.

func (RabbitmqValidationError) Cause

func (e RabbitmqValidationError) Cause() error

Cause function returns cause value.

func (RabbitmqValidationError) Error

func (e RabbitmqValidationError) Error() string

Error satisfies the builtin error interface

func (RabbitmqValidationError) ErrorName

func (e RabbitmqValidationError) ErrorName() string

ErrorName returns error name.

func (RabbitmqValidationError) Field

func (e RabbitmqValidationError) Field() string

Field function returns field value.

func (RabbitmqValidationError) Key

func (e RabbitmqValidationError) Key() bool

Key function returns key value.

func (RabbitmqValidationError) Reason

func (e RabbitmqValidationError) Reason() string

Reason function returns reason value.

type Redis

type Redis struct {

	// enable 是否启动
	Enable          bool                 `protobuf:"varint,100,opt,name=enable,proto3" json:"enable,omitempty"`
	Addresses       []string             `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"`
	Username        string               `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	Password        string               `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	Db              uint32               `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"`                  // (s)
	ReadTimeout     *durationpb.Duration `protobuf:"bytes,6,opt,name=read_timeout,json=readTimeout,proto3" json:"read_timeout,omitempty"`                  // (s)
	WriteTimeout    *durationpb.Duration `protobuf:"bytes,7,opt,name=write_timeout,json=writeTimeout,proto3" json:"write_timeout,omitempty"`               // (s)
	ConnMaxActive   uint32               `protobuf:"varint,8,opt,name=conn_max_active,json=connMaxActive,proto3" json:"conn_max_active,omitempty"`         // 连接的最大数量
	ConnMaxLifetime *durationpb.Duration `protobuf:"bytes,9,opt,name=conn_max_lifetime,json=connMaxLifetime,proto3" json:"conn_max_lifetime,omitempty"`    // 连接可复用的最大时间(s)
	ConnMaxIdle     uint32               `protobuf:"varint,10,opt,name=conn_max_idle,json=connMaxIdle,proto3" json:"conn_max_idle,omitempty"`              // 连接池中空闲连接的最大数量
	ConnMinIdle     uint32               `protobuf:"varint,11,opt,name=conn_min_idle,json=connMinIdle,proto3" json:"conn_min_idle,omitempty"`              // 连接池中空闲连接的最小数量
	ConnMaxIdleTime *durationpb.Duration `protobuf:"bytes,12,opt,name=conn_max_idle_time,json=connMaxIdleTime,proto3" json:"conn_max_idle_time,omitempty"` // 设置连接空闲的最长时间(s)
	// contains filtered or unexported fields
}

Redis redis

func (*Redis) Descriptor deprecated

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

Deprecated: Use Redis.ProtoReflect.Descriptor instead.

func (*Redis) GetAddresses

func (x *Redis) GetAddresses() []string

func (*Redis) GetConnMaxActive

func (x *Redis) GetConnMaxActive() uint32

func (*Redis) GetConnMaxIdle

func (x *Redis) GetConnMaxIdle() uint32

func (*Redis) GetConnMaxIdleTime

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

func (*Redis) GetConnMaxLifetime

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

func (*Redis) GetConnMinIdle

func (x *Redis) GetConnMinIdle() uint32

func (*Redis) GetDb

func (x *Redis) GetDb() uint32

func (*Redis) GetDialTimeout

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

func (*Redis) GetEnable

func (x *Redis) GetEnable() bool

func (*Redis) GetPassword

func (x *Redis) GetPassword() string

func (*Redis) GetReadTimeout

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

func (*Redis) GetUsername

func (x *Redis) GetUsername() string

func (*Redis) GetWriteTimeout

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

func (*Redis) ProtoMessage

func (*Redis) ProtoMessage()

func (*Redis) ProtoReflect

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

func (*Redis) Reset

func (x *Redis) Reset()

func (*Redis) String

func (x *Redis) String() string

func (*Redis) Validate

func (m *Redis) Validate() error

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

func (m *Redis) ValidateAll() error

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

type RedisMultiError

type RedisMultiError []error

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

func (RedisMultiError) AllErrors

func (m RedisMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RedisMultiError) Error

func (m RedisMultiError) Error() string

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

type RedisValidationError

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

RedisValidationError is the validation error returned by Redis.Validate if the designated constraints aren't met.

func (RedisValidationError) Cause

func (e RedisValidationError) Cause() error

Cause function returns cause value.

func (RedisValidationError) Error

func (e RedisValidationError) Error() string

Error satisfies the builtin error interface

func (RedisValidationError) ErrorName

func (e RedisValidationError) ErrorName() string

ErrorName returns error name.

func (RedisValidationError) Field

func (e RedisValidationError) Field() string

Field function returns field value.

func (RedisValidationError) Key

func (e RedisValidationError) Key() bool

Key function returns key value.

func (RedisValidationError) Reason

func (e RedisValidationError) Reason() string

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服务配置
	// contains filtered or unexported fields
}

Server 服务

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) 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 {
	Enable  bool                 `protobuf:"varint,100,opt,name=enable,proto3" json:"enable,omitempty"` // 是否启动
	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"`  // 超时时间(s)
	// contains filtered or unexported fields
}

GRPC grpc服务配置

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

func (x *Server_GRPC) GetEnable() bool

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 {
	Enable  bool                 `protobuf:"varint,100,opt,name=enable,proto3" json:"enable,omitempty"` // 是否启动
	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"`  // 超时时间(s)
	// contains filtered or unexported fields
}

HTTP 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) GetEnable

func (x *Server_HTTP) GetEnable() bool

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 Setting

type Setting struct {
	EnableAuthMiddleware  bool `protobuf:"varint,1,opt,name=enable_auth_middleware,json=enableAuthMiddleware,proto3" json:"enable_auth_middleware,omitempty"` // 启用验证中间件
	EnableJaegerTracer    bool `protobuf:"varint,2,opt,name=enable_jaeger_tracer,json=enableJaegerTracer,proto3" json:"enable_jaeger_tracer,omitempty"`       // 启用jaeger追踪
	EnableConsulRegistry  bool `protobuf:"varint,3,opt,name=enable_consul_registry,json=enableConsulRegistry,proto3" json:"enable_consul_registry,omitempty"` // 启用服务注册与发现
	EnableMigrateDb       bool `protobuf:"varint,4,opt,name=enable_migrate_db,json=enableMigrateDb,proto3" json:"enable_migrate_db,omitempty"`                // 启用数据库迁移
	EnableScheduleTask    bool `protobuf:"varint,5,opt,name=enable_schedule_task,json=enableScheduleTask,proto3" json:"enable_schedule_task,omitempty"`       // 启用定时任务、计划任务
	EnableSnowflakeWorker bool ``                                                                                                                             // 雪花算法节点
	/* 127-byte string literal not displayed */
	Captcha *Setting_Captcha `protobuf:"bytes,101,opt,name=captcha,proto3" json:"captcha,omitempty"`
	Login   *Setting_Login   `protobuf:"bytes,201,opt,name=login,proto3" json:"login,omitempty"`
	// contains filtered or unexported fields
}

Setting 设置

func (*Setting) Descriptor deprecated

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

Deprecated: Use Setting.ProtoReflect.Descriptor instead.

func (*Setting) GetCaptcha

func (x *Setting) GetCaptcha() *Setting_Captcha

func (*Setting) GetEnableAuthMiddleware

func (x *Setting) GetEnableAuthMiddleware() bool

func (*Setting) GetEnableConsulRegistry

func (x *Setting) GetEnableConsulRegistry() bool

func (*Setting) GetEnableJaegerTracer

func (x *Setting) GetEnableJaegerTracer() bool

func (*Setting) GetEnableMigrateDb

func (x *Setting) GetEnableMigrateDb() bool

func (*Setting) GetEnableScheduleTask

func (x *Setting) GetEnableScheduleTask() bool

func (*Setting) GetEnableSnowflakeWorker

func (x *Setting) GetEnableSnowflakeWorker() bool

func (*Setting) GetLogin

func (x *Setting) GetLogin() *Setting_Login

func (*Setting) ProtoMessage

func (*Setting) ProtoMessage()

func (*Setting) ProtoReflect

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

func (*Setting) Reset

func (x *Setting) Reset()

func (*Setting) String

func (x *Setting) String() string

func (*Setting) Validate

func (m *Setting) Validate() error

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

func (m *Setting) ValidateAll() error

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

type SettingMultiError

type SettingMultiError []error

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

func (SettingMultiError) AllErrors

func (m SettingMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SettingMultiError) Error

func (m SettingMultiError) Error() string

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

type SettingValidationError

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

SettingValidationError is the validation error returned by Setting.Validate if the designated constraints aren't met.

func (SettingValidationError) Cause

func (e SettingValidationError) Cause() error

Cause function returns cause value.

func (SettingValidationError) Error

func (e SettingValidationError) Error() string

Error satisfies the builtin error interface

func (SettingValidationError) ErrorName

func (e SettingValidationError) ErrorName() string

ErrorName returns error name.

func (SettingValidationError) Field

func (e SettingValidationError) Field() string

Field function returns field value.

func (SettingValidationError) Key

func (e SettingValidationError) Key() bool

Key function returns key value.

func (SettingValidationError) Reason

func (e SettingValidationError) Reason() string

Reason function returns reason value.

type Setting_Captcha

type Setting_Captcha struct {
	CaptchaLen uint32               `protobuf:"varint,1,opt,name=captcha_len,json=captchaLen,proto3" json:"captcha_len,omitempty"` // 验证码长度
	CaptchaTtl *durationpb.Duration `protobuf:"bytes,2,opt,name=captcha_ttl,json=captchaTtl,proto3" json:"captcha_ttl,omitempty"`  // 验证码有效时间(s)
	// contains filtered or unexported fields
}

Captcha 验证码

func (*Setting_Captcha) Descriptor deprecated

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

Deprecated: Use Setting_Captcha.ProtoReflect.Descriptor instead.

func (*Setting_Captcha) GetCaptchaLen

func (x *Setting_Captcha) GetCaptchaLen() uint32

func (*Setting_Captcha) GetCaptchaTtl

func (x *Setting_Captcha) GetCaptchaTtl() *durationpb.Duration

func (*Setting_Captcha) ProtoMessage

func (*Setting_Captcha) ProtoMessage()

func (*Setting_Captcha) ProtoReflect

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

func (*Setting_Captcha) Reset

func (x *Setting_Captcha) Reset()

func (*Setting_Captcha) String

func (x *Setting_Captcha) String() string

func (*Setting_Captcha) Validate

func (m *Setting_Captcha) Validate() error

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

func (m *Setting_Captcha) ValidateAll() error

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

type Setting_CaptchaMultiError

type Setting_CaptchaMultiError []error

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

func (Setting_CaptchaMultiError) AllErrors

func (m Setting_CaptchaMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Setting_CaptchaMultiError) Error

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

type Setting_CaptchaValidationError

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

Setting_CaptchaValidationError is the validation error returned by Setting_Captcha.Validate if the designated constraints aren't met.

func (Setting_CaptchaValidationError) Cause

Cause function returns cause value.

func (Setting_CaptchaValidationError) Error

Error satisfies the builtin error interface

func (Setting_CaptchaValidationError) ErrorName

func (e Setting_CaptchaValidationError) ErrorName() string

ErrorName returns error name.

func (Setting_CaptchaValidationError) Field

Field function returns field value.

func (Setting_CaptchaValidationError) Key

Key function returns key value.

func (Setting_CaptchaValidationError) Reason

Reason function returns reason value.

type Setting_Login

type Setting_Login struct {
	PasswordErrSerialTimes uint32 `` // 密码连续输错N次后短暂锁定账号
	/* 132-byte string literal not displayed */
	PasswordErrSerialDuration *durationpb.Duration `` // N分钟内连续输错密码(s);默认1分钟(60s)
	/* 140-byte string literal not displayed */
	PasswordErrLockDuration *durationpb.Duration `` // 密码连续错误后,锁定N分钟后重试(s)
	/* 134-byte string literal not displayed */
	PasswordErrDailyLimitTimes uint32 `` // 当日密码错误上限
	/* 146-byte string literal not displayed */
	// contains filtered or unexported fields
}

Login 登录

func (*Setting_Login) Descriptor deprecated

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

Deprecated: Use Setting_Login.ProtoReflect.Descriptor instead.

func (*Setting_Login) GetPasswordErrDailyLimitTimes

func (x *Setting_Login) GetPasswordErrDailyLimitTimes() uint32

func (*Setting_Login) GetPasswordErrLockDuration

func (x *Setting_Login) GetPasswordErrLockDuration() *durationpb.Duration

func (*Setting_Login) GetPasswordErrSerialDuration

func (x *Setting_Login) GetPasswordErrSerialDuration() *durationpb.Duration

func (*Setting_Login) GetPasswordErrSerialTimes

func (x *Setting_Login) GetPasswordErrSerialTimes() uint32

func (*Setting_Login) ProtoMessage

func (*Setting_Login) ProtoMessage()

func (*Setting_Login) ProtoReflect

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

func (*Setting_Login) Reset

func (x *Setting_Login) Reset()

func (*Setting_Login) String

func (x *Setting_Login) String() string

func (*Setting_Login) Validate

func (m *Setting_Login) Validate() error

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

func (m *Setting_Login) ValidateAll() error

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

type Setting_LoginMultiError

type Setting_LoginMultiError []error

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

func (Setting_LoginMultiError) AllErrors

func (m Setting_LoginMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Setting_LoginMultiError) Error

func (m Setting_LoginMultiError) Error() string

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

type Setting_LoginValidationError

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

Setting_LoginValidationError is the validation error returned by Setting_Login.Validate if the designated constraints aren't met.

func (Setting_LoginValidationError) Cause

Cause function returns cause value.

func (Setting_LoginValidationError) Error

Error satisfies the builtin error interface

func (Setting_LoginValidationError) ErrorName

func (e Setting_LoginValidationError) ErrorName() string

ErrorName returns error name.

func (Setting_LoginValidationError) Field

Field function returns field value.

func (Setting_LoginValidationError) Key

Key function returns key value.

func (Setting_LoginValidationError) Reason

Reason function returns reason value.

type Snowflake

type Snowflake struct {
	Enable            bool   `protobuf:"varint,100,opt,name=enable,proto3" json:"enable,omitempty"`
	Endpoint          string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
	WithDiscovery     bool   `protobuf:"varint,2,opt,name=with_discovery,json=withDiscovery,proto3" json:"with_discovery,omitempty"`
	WithHttpBasicAuth bool   `protobuf:"varint,3,opt,name=with_http_basic_auth,json=withHttpBasicAuth,proto3" json:"with_http_basic_auth,omitempty"`
	Username          string `protobuf:"bytes,4,opt,name=username,proto3" json:"username,omitempty"`
	Password          string `protobuf:"bytes,5,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

Snowflake snowflake

func (*Snowflake) Descriptor deprecated

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

Deprecated: Use Snowflake.ProtoReflect.Descriptor instead.

func (*Snowflake) GetEnable

func (x *Snowflake) GetEnable() bool

func (*Snowflake) GetEndpoint

func (x *Snowflake) GetEndpoint() string

func (*Snowflake) GetPassword

func (x *Snowflake) GetPassword() string

func (*Snowflake) GetUsername

func (x *Snowflake) GetUsername() string

func (*Snowflake) GetWithDiscovery

func (x *Snowflake) GetWithDiscovery() bool

func (*Snowflake) GetWithHttpBasicAuth

func (x *Snowflake) GetWithHttpBasicAuth() bool

func (*Snowflake) ProtoMessage

func (*Snowflake) ProtoMessage()

func (*Snowflake) ProtoReflect

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

func (*Snowflake) Reset

func (x *Snowflake) Reset()

func (*Snowflake) String

func (x *Snowflake) String() string

func (*Snowflake) Validate

func (m *Snowflake) Validate() error

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

func (m *Snowflake) ValidateAll() error

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

type SnowflakeMultiError

type SnowflakeMultiError []error

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

func (SnowflakeMultiError) AllErrors

func (m SnowflakeMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SnowflakeMultiError) Error

func (m SnowflakeMultiError) Error() string

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

type SnowflakeValidationError

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

SnowflakeValidationError is the validation error returned by Snowflake.Validate if the designated constraints aren't met.

func (SnowflakeValidationError) Cause

func (e SnowflakeValidationError) Cause() error

Cause function returns cause value.

func (SnowflakeValidationError) Error

func (e SnowflakeValidationError) Error() string

Error satisfies the builtin error interface

func (SnowflakeValidationError) ErrorName

func (e SnowflakeValidationError) ErrorName() string

ErrorName returns error name.

func (SnowflakeValidationError) Field

func (e SnowflakeValidationError) Field() string

Field function returns field value.

func (SnowflakeValidationError) Key

Key function returns key value.

func (SnowflakeValidationError) Reason

func (e SnowflakeValidationError) Reason() string

Reason function returns reason value.

type TestingConfig

type TestingConfig struct {
	Testdata *TestingConfig_Testdata `protobuf:"bytes,1,opt,name=testdata,proto3" json:"testdata,omitempty"`
	// contains filtered or unexported fields
}

func (*TestingConfig) Descriptor deprecated

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

Deprecated: Use TestingConfig.ProtoReflect.Descriptor instead.

func (*TestingConfig) GetTestdata

func (x *TestingConfig) GetTestdata() *TestingConfig_Testdata

func (*TestingConfig) ProtoMessage

func (*TestingConfig) ProtoMessage()

func (*TestingConfig) ProtoReflect

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

func (*TestingConfig) Reset

func (x *TestingConfig) Reset()

func (*TestingConfig) String

func (x *TestingConfig) String() string

func (*TestingConfig) Validate

func (m *TestingConfig) Validate() error

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

func (m *TestingConfig) ValidateAll() error

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

type TestingConfigMultiError

type TestingConfigMultiError []error

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

func (TestingConfigMultiError) AllErrors

func (m TestingConfigMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TestingConfigMultiError) Error

func (m TestingConfigMultiError) Error() string

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

type TestingConfigValidationError

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

TestingConfigValidationError is the validation error returned by TestingConfig.Validate if the designated constraints aren't met.

func (TestingConfigValidationError) Cause

Cause function returns cause value.

func (TestingConfigValidationError) Error

Error satisfies the builtin error interface

func (TestingConfigValidationError) ErrorName

func (e TestingConfigValidationError) ErrorName() string

ErrorName returns error name.

func (TestingConfigValidationError) Field

Field function returns field value.

func (TestingConfigValidationError) Key

Key function returns key value.

func (TestingConfigValidationError) Reason

Reason function returns reason value.

type TestingConfig_Testdata

type TestingConfig_Testdata struct {
	Key   string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*TestingConfig_Testdata) Descriptor deprecated

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

Deprecated: Use TestingConfig_Testdata.ProtoReflect.Descriptor instead.

func (*TestingConfig_Testdata) GetKey

func (x *TestingConfig_Testdata) GetKey() string

func (*TestingConfig_Testdata) GetValue

func (x *TestingConfig_Testdata) GetValue() string

func (*TestingConfig_Testdata) ProtoMessage

func (*TestingConfig_Testdata) ProtoMessage()

func (*TestingConfig_Testdata) ProtoReflect

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

func (*TestingConfig_Testdata) Reset

func (x *TestingConfig_Testdata) Reset()

func (*TestingConfig_Testdata) String

func (x *TestingConfig_Testdata) String() string

func (*TestingConfig_Testdata) Validate

func (m *TestingConfig_Testdata) Validate() error

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

func (m *TestingConfig_Testdata) ValidateAll() error

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

type TestingConfig_TestdataMultiError

type TestingConfig_TestdataMultiError []error

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

func (TestingConfig_TestdataMultiError) AllErrors

func (m TestingConfig_TestdataMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TestingConfig_TestdataMultiError) Error

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

type TestingConfig_TestdataValidationError

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

TestingConfig_TestdataValidationError is the validation error returned by TestingConfig_Testdata.Validate if the designated constraints aren't met.

func (TestingConfig_TestdataValidationError) Cause

Cause function returns cause value.

func (TestingConfig_TestdataValidationError) Error

Error satisfies the builtin error interface

func (TestingConfig_TestdataValidationError) ErrorName

ErrorName returns error name.

func (TestingConfig_TestdataValidationError) Field

Field function returns field value.

func (TestingConfig_TestdataValidationError) Key

Key function returns key value.

func (TestingConfig_TestdataValidationError) Reason

Reason function returns reason value.

type ThirdPartyApi

type ThirdPartyApi struct {
	Name          string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	HttpHost      string `protobuf:"bytes,2,opt,name=http_host,json=httpHost,proto3" json:"http_host,omitempty"`
	GrpcHost      string `protobuf:"bytes,3,opt,name=grpc_host,json=grpcHost,proto3" json:"grpc_host,omitempty"`
	IsDebug       bool   `protobuf:"varint,4,opt,name=is_debug,json=isDebug,proto3" json:"is_debug,omitempty"`
	AccessId      string `protobuf:"bytes,5,opt,name=access_id,json=accessId,proto3" json:"access_id,omitempty"`
	AccessSecret  string `protobuf:"bytes,6,opt,name=access_secret,json=accessSecret,proto3" json:"access_secret,omitempty"`
	EncryptId     string `protobuf:"bytes,7,opt,name=encrypt_id,json=encryptId,proto3" json:"encrypt_id,omitempty"`
	EncryptSecret string `protobuf:"bytes,8,opt,name=encrypt_secret,json=encryptSecret,proto3" json:"encrypt_secret,omitempty"`
	// contains filtered or unexported fields
}

ThirdPartyApi 第三方api

func (*ThirdPartyApi) Descriptor deprecated

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

Deprecated: Use ThirdPartyApi.ProtoReflect.Descriptor instead.

func (*ThirdPartyApi) GetAccessId

func (x *ThirdPartyApi) GetAccessId() string

func (*ThirdPartyApi) GetAccessSecret

func (x *ThirdPartyApi) GetAccessSecret() string

func (*ThirdPartyApi) GetEncryptId

func (x *ThirdPartyApi) GetEncryptId() string

func (*ThirdPartyApi) GetEncryptSecret

func (x *ThirdPartyApi) GetEncryptSecret() string

func (*ThirdPartyApi) GetGrpcHost

func (x *ThirdPartyApi) GetGrpcHost() string

func (*ThirdPartyApi) GetHttpHost

func (x *ThirdPartyApi) GetHttpHost() string

func (*ThirdPartyApi) GetIsDebug

func (x *ThirdPartyApi) GetIsDebug() bool

func (*ThirdPartyApi) GetName

func (x *ThirdPartyApi) GetName() string

func (*ThirdPartyApi) ProtoMessage

func (*ThirdPartyApi) ProtoMessage()

func (*ThirdPartyApi) ProtoReflect

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

func (*ThirdPartyApi) Reset

func (x *ThirdPartyApi) Reset()

func (*ThirdPartyApi) String

func (x *ThirdPartyApi) String() string

func (*ThirdPartyApi) Validate

func (m *ThirdPartyApi) Validate() error

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

func (m *ThirdPartyApi) ValidateAll() error

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

type ThirdPartyApiMultiError

type ThirdPartyApiMultiError []error

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

func (ThirdPartyApiMultiError) AllErrors

func (m ThirdPartyApiMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ThirdPartyApiMultiError) Error

func (m ThirdPartyApiMultiError) Error() string

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

type ThirdPartyApiValidationError

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

ThirdPartyApiValidationError is the validation error returned by ThirdPartyApi.Validate if the designated constraints aren't met.

func (ThirdPartyApiValidationError) Cause

Cause function returns cause value.

func (ThirdPartyApiValidationError) Error

Error satisfies the builtin error interface

func (ThirdPartyApiValidationError) ErrorName

func (e ThirdPartyApiValidationError) ErrorName() string

ErrorName returns error name.

func (ThirdPartyApiValidationError) Field

Field function returns field value.

func (ThirdPartyApiValidationError) Key

Key function returns key value.

func (ThirdPartyApiValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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