v1

package
v0.2.12 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
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"`
	ListenPort        uint32                 `protobuf:"varint,3,opt,name=listen_port,json=listenPort,proto3" json:"listen_port,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) GetListenPort added in v0.1.0

func (x *ServerConfig) GetListenPort() uint32

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

Cause function returns cause value.

func (ServerConfigValidationError) Error

Error satisfies the builtin error interface

func (ServerConfigValidationError) ErrorName

func (e ServerConfigValidationError) ErrorName() string

ErrorName returns error name.

func (ServerConfigValidationError) Field

Field function returns field value.

func (ServerConfigValidationError) Key

Key function returns key value.

func (ServerConfigValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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