Documentation ¶
Index ¶
- Variables
- type APIDescriptor
- func (*APIDescriptor) Descriptor() ([]byte, []int)deprecated
- func (x *APIDescriptor) GetServices() []*Service
- func (*APIDescriptor) ProtoMessage()
- func (x *APIDescriptor) ProtoReflect() protoreflect.Message
- func (x *APIDescriptor) Reset()
- func (x *APIDescriptor) String() string
- func (x *APIDescriptor) SupportsServiceAndMethod(service, method string) bool
- func (m *APIDescriptor) Validate() error
- func (m *APIDescriptor) ValidateAll() error
- type APIDescriptorMultiError
- type APIDescriptorValidationError
- func (e APIDescriptorValidationError) Cause() error
- func (e APIDescriptorValidationError) Error() string
- func (e APIDescriptorValidationError) ErrorName() string
- func (e APIDescriptorValidationError) Field() string
- func (e APIDescriptorValidationError) Key() bool
- func (e APIDescriptorValidationError) Reason() string
- type Method
- type MethodMultiError
- type MethodValidationError
- type Service
- func (*Service) Descriptor() ([]byte, []int)deprecated
- func (x *Service) GetMethods() []*Method
- func (x *Service) GetName() string
- func (*Service) ProtoMessage()
- func (x *Service) ProtoReflect() protoreflect.Message
- func (x *Service) Reset()
- func (x *Service) String() string
- func (m *Service) Validate() error
- func (m *Service) ValidateAll() error
- type ServiceMultiError
- type ServiceValidationError
Constants ¶
This section is empty.
Variables ¶
var File_internal_tunnel_info_info_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type APIDescriptor ¶ added in v16.9.0
type APIDescriptor struct { Services []*Service `protobuf:"bytes,1,rep,name=services,proto3" json:"services,omitempty"` // contains filtered or unexported fields }
func (*APIDescriptor) Descriptor
deprecated
added in
v16.9.0
func (*APIDescriptor) Descriptor() ([]byte, []int)
Deprecated: Use APIDescriptor.ProtoReflect.Descriptor instead.
func (*APIDescriptor) GetServices ¶ added in v16.9.0
func (x *APIDescriptor) GetServices() []*Service
func (*APIDescriptor) ProtoMessage ¶ added in v16.9.0
func (*APIDescriptor) ProtoMessage()
func (*APIDescriptor) ProtoReflect ¶ added in v16.9.0
func (x *APIDescriptor) ProtoReflect() protoreflect.Message
func (*APIDescriptor) Reset ¶ added in v16.9.0
func (x *APIDescriptor) Reset()
func (*APIDescriptor) String ¶ added in v16.9.0
func (x *APIDescriptor) String() string
func (*APIDescriptor) SupportsServiceAndMethod ¶ added in v16.9.0
func (x *APIDescriptor) SupportsServiceAndMethod(service, method string) bool
func (*APIDescriptor) Validate ¶ added in v16.9.0
func (m *APIDescriptor) Validate() error
Validate checks the field values on APIDescriptor 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 (*APIDescriptor) ValidateAll ¶ added in v16.9.0
func (m *APIDescriptor) ValidateAll() error
ValidateAll checks the field values on APIDescriptor 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 APIDescriptorMultiError, or nil if none found.
type APIDescriptorMultiError ¶ added in v16.9.0
type APIDescriptorMultiError []error
APIDescriptorMultiError is an error wrapping multiple validation errors returned by APIDescriptor.ValidateAll() if the designated constraints aren't met.
func (APIDescriptorMultiError) AllErrors ¶ added in v16.9.0
func (m APIDescriptorMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (APIDescriptorMultiError) Error ¶ added in v16.9.0
func (m APIDescriptorMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type APIDescriptorValidationError ¶ added in v16.9.0
type APIDescriptorValidationError struct {
// contains filtered or unexported fields
}
APIDescriptorValidationError is the validation error returned by APIDescriptor.Validate if the designated constraints aren't met.
func (APIDescriptorValidationError) Cause ¶ added in v16.9.0
func (e APIDescriptorValidationError) Cause() error
Cause function returns cause value.
func (APIDescriptorValidationError) Error ¶ added in v16.9.0
func (e APIDescriptorValidationError) Error() string
Error satisfies the builtin error interface
func (APIDescriptorValidationError) ErrorName ¶ added in v16.9.0
func (e APIDescriptorValidationError) ErrorName() string
ErrorName returns error name.
func (APIDescriptorValidationError) Field ¶ added in v16.9.0
func (e APIDescriptorValidationError) Field() string
Field function returns field value.
func (APIDescriptorValidationError) Key ¶ added in v16.9.0
func (e APIDescriptorValidationError) Key() bool
Key function returns key value.
func (APIDescriptorValidationError) Reason ¶ added in v16.9.0
func (e APIDescriptorValidationError) Reason() string
Reason function returns reason value.
type Method ¶
type Method struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*Method) Descriptor
deprecated
func (*Method) ProtoMessage ¶
func (*Method) ProtoMessage()
func (*Method) ProtoReflect ¶
func (x *Method) ProtoReflect() protoreflect.Message
func (*Method) Validate ¶
Validate checks the field values on Method 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 (*Method) ValidateAll ¶
ValidateAll checks the field values on Method 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 MethodMultiError, or nil if none found.
type MethodMultiError ¶
type MethodMultiError []error
MethodMultiError is an error wrapping multiple validation errors returned by Method.ValidateAll() if the designated constraints aren't met.
func (MethodMultiError) AllErrors ¶
func (m MethodMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MethodMultiError) Error ¶
func (m MethodMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MethodValidationError ¶
type MethodValidationError struct {
// contains filtered or unexported fields
}
MethodValidationError is the validation error returned by Method.Validate if the designated constraints aren't met.
func (MethodValidationError) Cause ¶
func (e MethodValidationError) Cause() error
Cause function returns cause value.
func (MethodValidationError) Error ¶
func (e MethodValidationError) Error() string
Error satisfies the builtin error interface
func (MethodValidationError) ErrorName ¶
func (e MethodValidationError) ErrorName() string
ErrorName returns error name.
func (MethodValidationError) Field ¶
func (e MethodValidationError) Field() string
Field function returns field value.
func (MethodValidationError) Key ¶
func (e MethodValidationError) Key() bool
Key function returns key value.
func (MethodValidationError) Reason ¶
func (e MethodValidationError) Reason() string
Reason function returns reason value.
type Service ¶
type Service struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Methods []*Method `protobuf:"bytes,2,rep,name=methods,proto3" json:"methods,omitempty"` // contains filtered or unexported fields }
func (*Service) Descriptor
deprecated
func (*Service) GetMethods ¶
func (*Service) ProtoMessage ¶
func (*Service) ProtoMessage()
func (*Service) ProtoReflect ¶
func (x *Service) ProtoReflect() protoreflect.Message
func (*Service) Validate ¶
Validate checks the field values on Service 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 (*Service) ValidateAll ¶
ValidateAll checks the field values on Service 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 ServiceMultiError, or nil if none found.
type ServiceMultiError ¶
type ServiceMultiError []error
ServiceMultiError is an error wrapping multiple validation errors returned by Service.ValidateAll() if the designated constraints aren't met.
func (ServiceMultiError) AllErrors ¶
func (m ServiceMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ServiceMultiError) Error ¶
func (m ServiceMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ServiceValidationError ¶
type ServiceValidationError struct {
// contains filtered or unexported fields
}
ServiceValidationError is the validation error returned by Service.Validate if the designated constraints aren't met.
func (ServiceValidationError) Cause ¶
func (e ServiceValidationError) Cause() error
Cause function returns cause value.
func (ServiceValidationError) Error ¶
func (e ServiceValidationError) Error() string
Error satisfies the builtin error interface
func (ServiceValidationError) ErrorName ¶
func (e ServiceValidationError) ErrorName() string
ErrorName returns error name.
func (ServiceValidationError) Field ¶
func (e ServiceValidationError) Field() string
Field function returns field value.
func (ServiceValidationError) Key ¶
func (e ServiceValidationError) Key() bool
Key function returns key value.
func (ServiceValidationError) Reason ¶
func (e ServiceValidationError) Reason() string
Reason function returns reason value.