Documentation ¶
Index ¶
- Variables
- type ServerConfig
- func (*ServerConfig) Descriptor() ([]byte, []int)deprecated
- func (x *ServerConfig) GetCredential() *v1.Credential
- func (x *ServerConfig) GetRateLimiterConfig() *v11.RateLimiterConfig
- func (*ServerConfig) ProtoMessage()
- func (x *ServerConfig) ProtoReflect() protoreflect.Message
- func (x *ServerConfig) Reset()
- func (x *ServerConfig) String() string
- func (m *ServerConfig) Validate() error
- func (m *ServerConfig) ValidateAll() error
- type ServerConfigMultiError
- type ServerConfigValidationError
- func (e ServerConfigValidationError) Cause() error
- func (e ServerConfigValidationError) Error() string
- func (e ServerConfigValidationError) ErrorName() string
- func (e ServerConfigValidationError) Field() string
- func (e ServerConfigValidationError) Key() bool
- func (e ServerConfigValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var File_c1_connector_wrapper_v1_connector_wrapper_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ServerConfig ¶
type ServerConfig struct { Credential *v1.Credential `protobuf:"bytes,1,opt,name=credential,proto3" json:"credential,omitempty"` RateLimiterConfig *v11.RateLimiterConfig `protobuf:"bytes,2,opt,name=rate_limiter_config,json=rateLimiterConfig,proto3" json:"rate_limiter_config,omitempty"` // contains filtered or unexported fields }
func (*ServerConfig) Descriptor
deprecated
func (*ServerConfig) Descriptor() ([]byte, []int)
Deprecated: Use ServerConfig.ProtoReflect.Descriptor instead.
func (*ServerConfig) GetCredential ¶
func (x *ServerConfig) GetCredential() *v1.Credential
func (*ServerConfig) GetRateLimiterConfig ¶
func (x *ServerConfig) GetRateLimiterConfig() *v11.RateLimiterConfig
func (*ServerConfig) ProtoMessage ¶
func (*ServerConfig) ProtoMessage()
func (*ServerConfig) ProtoReflect ¶
func (x *ServerConfig) ProtoReflect() protoreflect.Message
func (*ServerConfig) Reset ¶
func (x *ServerConfig) Reset()
func (*ServerConfig) String ¶
func (x *ServerConfig) String() string
func (*ServerConfig) Validate ¶
func (m *ServerConfig) Validate() error
Validate checks the field values on ServerConfig 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 (*ServerConfig) ValidateAll ¶
func (m *ServerConfig) ValidateAll() error
ValidateAll checks the field values on ServerConfig 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 ServerConfigMultiError, or nil if none found.
type ServerConfigMultiError ¶
type ServerConfigMultiError []error
ServerConfigMultiError is an error wrapping multiple validation errors returned by ServerConfig.ValidateAll() if the designated constraints aren't met.
func (ServerConfigMultiError) AllErrors ¶
func (m ServerConfigMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ServerConfigMultiError) Error ¶
func (m ServerConfigMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ServerConfigValidationError ¶
type ServerConfigValidationError struct {
// contains filtered or unexported fields
}
ServerConfigValidationError is the validation error returned by ServerConfig.Validate if the designated constraints aren't met.
func (ServerConfigValidationError) Cause ¶
func (e ServerConfigValidationError) Cause() error
Cause function returns cause value.
func (ServerConfigValidationError) Error ¶
func (e ServerConfigValidationError) Error() string
Error satisfies the builtin error interface
func (ServerConfigValidationError) ErrorName ¶
func (e ServerConfigValidationError) ErrorName() string
ErrorName returns error name.
func (ServerConfigValidationError) Field ¶
func (e ServerConfigValidationError) Field() string
Field function returns field value.
func (ServerConfigValidationError) Key ¶
func (e ServerConfigValidationError) Key() bool
Key function returns key value.
func (ServerConfigValidationError) Reason ¶
func (e ServerConfigValidationError) Reason() string
Reason function returns reason value.