v1

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: MIT Imports: 18 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_config_registry_v1_registry_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ConfigCenterInfo

type ConfigCenterInfo struct {

	// PathPrefix is prefix key of config center.
	PathPrefix string `protobuf:"bytes,1,opt,name=path_prefix,json=pathPrefix,proto3" json:"path_prefix,omitempty"`
	// Paths is config paths of config center.
	Paths []string `protobuf:"bytes,2,rep,name=paths,proto3" json:"paths,omitempty"`
	// Format is config format of config center.
	Format string `protobuf:"bytes,3,opt,name=format,proto3" json:"format,omitempty"`
	// contains filtered or unexported fields
}

func (*ConfigCenterInfo) Descriptor deprecated

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

Deprecated: Use ConfigCenterInfo.ProtoReflect.Descriptor instead.

func (*ConfigCenterInfo) GetFormat

func (x *ConfigCenterInfo) GetFormat() string

func (*ConfigCenterInfo) GetPathPrefix

func (x *ConfigCenterInfo) GetPathPrefix() string

func (*ConfigCenterInfo) GetPaths

func (x *ConfigCenterInfo) GetPaths() []string

func (*ConfigCenterInfo) ProtoMessage

func (*ConfigCenterInfo) ProtoMessage()

func (*ConfigCenterInfo) ProtoReflect

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

func (*ConfigCenterInfo) Reset

func (x *ConfigCenterInfo) Reset()

func (*ConfigCenterInfo) String

func (x *ConfigCenterInfo) String() string

func (*ConfigCenterInfo) Validate

func (m *ConfigCenterInfo) Validate() error

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

func (m *ConfigCenterInfo) ValidateAll() error

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

type ConfigCenterInfoMultiError

type ConfigCenterInfoMultiError []error

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

func (ConfigCenterInfoMultiError) AllErrors

func (m ConfigCenterInfoMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ConfigCenterInfoMultiError) Error

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

type ConfigCenterInfoValidationError

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

ConfigCenterInfoValidationError is the validation error returned by ConfigCenterInfo.Validate if the designated constraints aren't met.

func (ConfigCenterInfoValidationError) Cause

Cause function returns cause value.

func (ConfigCenterInfoValidationError) Error

Error satisfies the builtin error interface

func (ConfigCenterInfoValidationError) ErrorName

ErrorName returns error name.

func (ConfigCenterInfoValidationError) Field

Field function returns field value.

func (ConfigCenterInfoValidationError) Key

Key function returns key value.

func (ConfigCenterInfoValidationError) Reason

Reason function returns reason value.

type Registry

type Registry struct {
	ConfigCenter *ConfigCenterInfo `protobuf:"bytes,1,opt,name=config_center,json=configCenter,proto3" json:"config_center,omitempty"`
	// Types that are assignable to Reg:
	//	*Registry_Consul
	//	*Registry_Etcd
	Reg isRegistry_Reg `protobuf_oneof:"reg"`
	// contains filtered or unexported fields
}

func (*Registry) Descriptor deprecated

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

Deprecated: Use Registry.ProtoReflect.Descriptor instead.

func (*Registry) GetConfigCenter

func (x *Registry) GetConfigCenter() *ConfigCenterInfo

func (*Registry) GetConsul

func (x *Registry) GetConsul() *RegistryInfo

func (*Registry) GetEtcd

func (x *Registry) GetEtcd() *RegistryInfo

func (*Registry) GetReg

func (m *Registry) GetReg() isRegistry_Reg

func (*Registry) ProtoMessage

func (*Registry) ProtoMessage()

func (*Registry) ProtoReflect

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

func (*Registry) Reset

func (x *Registry) Reset()

func (*Registry) String

func (x *Registry) String() string

func (*Registry) Validate

func (m *Registry) Validate() error

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

func (*Registry) ValidateAll

func (m *Registry) ValidateAll() error

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

type RegistryInfo

type RegistryInfo struct {
	Addr   []string `protobuf:"bytes,1,rep,name=addr,proto3" json:"addr,omitempty"`
	Scheme string   `protobuf:"bytes,2,opt,name=scheme,proto3" json:"scheme,omitempty"`
	// range [10ms, 10s]
	DialTimeoutSec          *durationpb.Duration `protobuf:"bytes,3,opt,name=dial_timeout_sec,json=dialTimeoutSec,proto3" json:"dial_timeout_sec,omitempty"`
	DialKeepAliveTimeSec    *durationpb.Duration `` /* 127-byte string literal not displayed */
	DialKeepAliveTimeoutSec *durationpb.Duration `` /* 136-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*RegistryInfo) Descriptor deprecated

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

Deprecated: Use RegistryInfo.ProtoReflect.Descriptor instead.

func (*RegistryInfo) GetAddr

func (x *RegistryInfo) GetAddr() []string

func (*RegistryInfo) GetDialKeepAliveTimeSec

func (x *RegistryInfo) GetDialKeepAliveTimeSec() *durationpb.Duration

func (*RegistryInfo) GetDialKeepAliveTimeoutSec

func (x *RegistryInfo) GetDialKeepAliveTimeoutSec() *durationpb.Duration

func (*RegistryInfo) GetDialTimeoutSec

func (x *RegistryInfo) GetDialTimeoutSec() *durationpb.Duration

func (*RegistryInfo) GetScheme

func (x *RegistryInfo) GetScheme() string

func (*RegistryInfo) ProtoMessage

func (*RegistryInfo) ProtoMessage()

func (*RegistryInfo) ProtoReflect

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

func (*RegistryInfo) Reset

func (x *RegistryInfo) Reset()

func (*RegistryInfo) String

func (x *RegistryInfo) String() string

func (*RegistryInfo) Validate

func (m *RegistryInfo) Validate() error

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

func (m *RegistryInfo) ValidateAll() error

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

type RegistryInfoMultiError

type RegistryInfoMultiError []error

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

func (RegistryInfoMultiError) AllErrors

func (m RegistryInfoMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RegistryInfoMultiError) Error

func (m RegistryInfoMultiError) Error() string

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

type RegistryInfoValidationError

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

RegistryInfoValidationError is the validation error returned by RegistryInfo.Validate if the designated constraints aren't met.

func (RegistryInfoValidationError) Cause

Cause function returns cause value.

func (RegistryInfoValidationError) Error

Error satisfies the builtin error interface

func (RegistryInfoValidationError) ErrorName

func (e RegistryInfoValidationError) ErrorName() string

ErrorName returns error name.

func (RegistryInfoValidationError) Field

Field function returns field value.

func (RegistryInfoValidationError) Key

Key function returns key value.

func (RegistryInfoValidationError) Reason

Reason function returns reason value.

type RegistryMultiError

type RegistryMultiError []error

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

func (RegistryMultiError) AllErrors

func (m RegistryMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RegistryMultiError) Error

func (m RegistryMultiError) Error() string

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

type RegistryValidationError

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

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

func (RegistryValidationError) Cause

func (e RegistryValidationError) Cause() error

Cause function returns cause value.

func (RegistryValidationError) Error

func (e RegistryValidationError) Error() string

Error satisfies the builtin error interface

func (RegistryValidationError) ErrorName

func (e RegistryValidationError) ErrorName() string

ErrorName returns error name.

func (RegistryValidationError) Field

func (e RegistryValidationError) Field() string

Field function returns field value.

func (RegistryValidationError) Key

func (e RegistryValidationError) Key() bool

Key function returns key value.

func (RegistryValidationError) Reason

func (e RegistryValidationError) Reason() string

Reason function returns reason value.

type Registry_Consul

type Registry_Consul struct {
	Consul *RegistryInfo `protobuf:"bytes,2,opt,name=consul,proto3,oneof"`
}

type Registry_Etcd

type Registry_Etcd struct {
	Etcd *RegistryInfo `protobuf:"bytes,3,opt,name=etcd,proto3,oneof"`
}

Jump to

Keyboard shortcuts

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