Documentation
¶
Index ¶
- Variables
- type WebSocket
- func (*WebSocket) Descriptor() ([]byte, []int)deprecated
- func (x *WebSocket) GetAddr() string
- func (x *WebSocket) GetEndpoint() string
- func (x *WebSocket) GetNetwork() string
- func (x *WebSocket) GetTimeout() *durationpb.Duration
- func (*WebSocket) ProtoMessage()
- func (x *WebSocket) ProtoReflect() protoreflect.Message
- func (x *WebSocket) Reset()
- func (x *WebSocket) String() string
- func (m *WebSocket) Validate() error
- func (m *WebSocket) ValidateAll() error
- type WebSocketMultiError
- type WebSocketValidationError
Constants ¶
This section is empty.
Variables ¶
var File_runtime_websocket_v1_websocket_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type WebSocket ¶
type WebSocket struct {
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"`
// The endpoint that this server advertises to the service registry.
Endpoint string `protobuf:"bytes,4,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
// contains filtered or unexported fields
}
WebSocket defines the configuration for a WebSocket server.
func (*WebSocket) Descriptor
deprecated
func (*WebSocket) GetEndpoint ¶
func (*WebSocket) GetNetwork ¶
func (*WebSocket) GetTimeout ¶
func (x *WebSocket) GetTimeout() *durationpb.Duration
func (*WebSocket) ProtoMessage ¶
func (*WebSocket) ProtoMessage()
func (*WebSocket) ProtoReflect ¶
func (x *WebSocket) ProtoReflect() protoreflect.Message
func (*WebSocket) Validate ¶
Validate checks the field values on WebSocket 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 (*WebSocket) ValidateAll ¶
ValidateAll checks the field values on WebSocket 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 WebSocketMultiError, or nil if none found.
type WebSocketMultiError ¶
type WebSocketMultiError []error
WebSocketMultiError is an error wrapping multiple validation errors returned by WebSocket.ValidateAll() if the designated constraints aren't met.
func (WebSocketMultiError) AllErrors ¶
func (m WebSocketMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (WebSocketMultiError) Error ¶
func (m WebSocketMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type WebSocketValidationError ¶
type WebSocketValidationError struct {
// contains filtered or unexported fields
}
WebSocketValidationError is the validation error returned by WebSocket.Validate if the designated constraints aren't met.
func (WebSocketValidationError) Cause ¶
func (e WebSocketValidationError) Cause() error
Cause function returns cause value.
func (WebSocketValidationError) Error ¶
func (e WebSocketValidationError) Error() string
Error satisfies the builtin error interface
func (WebSocketValidationError) ErrorName ¶
func (e WebSocketValidationError) ErrorName() string
ErrorName returns error name.
func (WebSocketValidationError) Field ¶
func (e WebSocketValidationError) Field() string
Field function returns field value.
func (WebSocketValidationError) Key ¶
func (e WebSocketValidationError) Key() bool
Key function returns key value.
func (WebSocketValidationError) Reason ¶
func (e WebSocketValidationError) Reason() string
Reason function returns reason value.