grpcws

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_resources_common_grpcws_grpcws_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Body

type Body struct {
	Data     []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	Complete bool   `protobuf:"varint,2,opt,name=complete,proto3" json:"complete,omitempty"`
	// contains filtered or unexported fields
}

func (*Body) Descriptor deprecated

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

Deprecated: Use Body.ProtoReflect.Descriptor instead.

func (*Body) GetComplete

func (x *Body) GetComplete() bool

func (*Body) GetData

func (x *Body) GetData() []byte

func (*Body) ProtoMessage

func (*Body) ProtoMessage()

func (*Body) ProtoReflect

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

func (*Body) Reset

func (x *Body) Reset()

func (*Body) Sanitize added in v0.9.4

func (m *Body) Sanitize() error

func (*Body) String

func (x *Body) String() string

func (*Body) Validate

func (m *Body) Validate() error

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

func (m *Body) ValidateAll() error

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

type BodyMultiError

type BodyMultiError []error

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

func (BodyMultiError) AllErrors

func (m BodyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (BodyMultiError) Error

func (m BodyMultiError) Error() string

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

type BodyValidationError

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

BodyValidationError is the validation error returned by Body.Validate if the designated constraints aren't met.

func (BodyValidationError) Cause

func (e BodyValidationError) Cause() error

Cause function returns cause value.

func (BodyValidationError) Error

func (e BodyValidationError) Error() string

Error satisfies the builtin error interface

func (BodyValidationError) ErrorName

func (e BodyValidationError) ErrorName() string

ErrorName returns error name.

func (BodyValidationError) Field

func (e BodyValidationError) Field() string

Field function returns field value.

func (BodyValidationError) Key

func (e BodyValidationError) Key() bool

Key function returns key value.

func (BodyValidationError) Reason

func (e BodyValidationError) Reason() string

Reason function returns reason value.

type Cancel

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

func (*Cancel) Descriptor deprecated

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

Deprecated: Use Cancel.ProtoReflect.Descriptor instead.

func (*Cancel) ProtoMessage

func (*Cancel) ProtoMessage()

func (*Cancel) ProtoReflect

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

func (*Cancel) Reset

func (x *Cancel) Reset()

func (*Cancel) Sanitize added in v0.9.4

func (m *Cancel) Sanitize() error

func (*Cancel) String

func (x *Cancel) String() string

func (*Cancel) Validate

func (m *Cancel) Validate() error

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

func (m *Cancel) ValidateAll() error

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

type CancelMultiError

type CancelMultiError []error

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

func (CancelMultiError) AllErrors

func (m CancelMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CancelMultiError) Error

func (m CancelMultiError) Error() string

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

type CancelValidationError

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

CancelValidationError is the validation error returned by Cancel.Validate if the designated constraints aren't met.

func (CancelValidationError) Cause

func (e CancelValidationError) Cause() error

Cause function returns cause value.

func (CancelValidationError) Error

func (e CancelValidationError) Error() string

Error satisfies the builtin error interface

func (CancelValidationError) ErrorName

func (e CancelValidationError) ErrorName() string

ErrorName returns error name.

func (CancelValidationError) Field

func (e CancelValidationError) Field() string

Field function returns field value.

func (CancelValidationError) Key

func (e CancelValidationError) Key() bool

Key function returns key value.

func (CancelValidationError) Reason

func (e CancelValidationError) Reason() string

Reason function returns reason value.

type Complete

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

func (*Complete) Descriptor deprecated

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

Deprecated: Use Complete.ProtoReflect.Descriptor instead.

func (*Complete) ProtoMessage

func (*Complete) ProtoMessage()

func (*Complete) ProtoReflect

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

func (*Complete) Reset

func (x *Complete) Reset()

func (*Complete) Sanitize added in v0.9.4

func (m *Complete) Sanitize() error

func (*Complete) String

func (x *Complete) String() string

func (*Complete) Validate

func (m *Complete) Validate() error

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

func (m *Complete) ValidateAll() error

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

type CompleteMultiError

type CompleteMultiError []error

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

func (CompleteMultiError) AllErrors

func (m CompleteMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CompleteMultiError) Error

func (m CompleteMultiError) Error() string

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

type CompleteValidationError

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

CompleteValidationError is the validation error returned by Complete.Validate if the designated constraints aren't met.

func (CompleteValidationError) Cause

func (e CompleteValidationError) Cause() error

Cause function returns cause value.

func (CompleteValidationError) Error

func (e CompleteValidationError) Error() string

Error satisfies the builtin error interface

func (CompleteValidationError) ErrorName

func (e CompleteValidationError) ErrorName() string

ErrorName returns error name.

func (CompleteValidationError) Field

func (e CompleteValidationError) Field() string

Field function returns field value.

func (CompleteValidationError) Key

func (e CompleteValidationError) Key() bool

Key function returns key value.

func (CompleteValidationError) Reason

func (e CompleteValidationError) Reason() string

Reason function returns reason value.

type Failure

type Failure struct {
	ErrorMessage string                  `protobuf:"bytes,1,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
	ErrorStatus  string                  `protobuf:"bytes,2,opt,name=error_status,json=errorStatus,proto3" json:"error_status,omitempty"`
	Headers      map[string]*HeaderValue `` /* 155-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Failure) Descriptor deprecated

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

Deprecated: Use Failure.ProtoReflect.Descriptor instead.

func (*Failure) GetErrorMessage

func (x *Failure) GetErrorMessage() string

func (*Failure) GetErrorStatus

func (x *Failure) GetErrorStatus() string

func (*Failure) GetHeaders

func (x *Failure) GetHeaders() map[string]*HeaderValue

func (*Failure) ProtoMessage

func (*Failure) ProtoMessage()

func (*Failure) ProtoReflect

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

func (*Failure) Reset

func (x *Failure) Reset()

func (*Failure) Sanitize added in v0.9.4

func (m *Failure) Sanitize() error

func (*Failure) String

func (x *Failure) String() string

func (*Failure) Validate

func (m *Failure) Validate() error

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

func (m *Failure) ValidateAll() error

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

type FailureMultiError

type FailureMultiError []error

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

func (FailureMultiError) AllErrors

func (m FailureMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FailureMultiError) Error

func (m FailureMultiError) Error() string

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

type FailureValidationError

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

FailureValidationError is the validation error returned by Failure.Validate if the designated constraints aren't met.

func (FailureValidationError) Cause

func (e FailureValidationError) Cause() error

Cause function returns cause value.

func (FailureValidationError) Error

func (e FailureValidationError) Error() string

Error satisfies the builtin error interface

func (FailureValidationError) ErrorName

func (e FailureValidationError) ErrorName() string

ErrorName returns error name.

func (FailureValidationError) Field

func (e FailureValidationError) Field() string

Field function returns field value.

func (FailureValidationError) Key

func (e FailureValidationError) Key() bool

Key function returns key value.

func (FailureValidationError) Reason

func (e FailureValidationError) Reason() string

Reason function returns reason value.

type GrpcFrame

type GrpcFrame struct {
	StreamId uint32 `protobuf:"varint,1,opt,name=streamId,proto3" json:"streamId,omitempty"`
	// Types that are assignable to Payload:
	//
	//	*GrpcFrame_Ping
	//	*GrpcFrame_Header
	//	*GrpcFrame_Body
	//	*GrpcFrame_Complete
	//	*GrpcFrame_Failure
	//	*GrpcFrame_Cancel
	Payload isGrpcFrame_Payload `protobuf_oneof:"payload"`
	// contains filtered or unexported fields
}

func (*GrpcFrame) Descriptor deprecated

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

Deprecated: Use GrpcFrame.ProtoReflect.Descriptor instead.

func (*GrpcFrame) GetBody

func (x *GrpcFrame) GetBody() *Body

func (*GrpcFrame) GetCancel

func (x *GrpcFrame) GetCancel() *Cancel

func (*GrpcFrame) GetComplete

func (x *GrpcFrame) GetComplete() *Complete

func (*GrpcFrame) GetFailure

func (x *GrpcFrame) GetFailure() *Failure

func (*GrpcFrame) GetHeader

func (x *GrpcFrame) GetHeader() *Header

func (*GrpcFrame) GetPayload

func (m *GrpcFrame) GetPayload() isGrpcFrame_Payload

func (*GrpcFrame) GetPing added in v0.9.2

func (x *GrpcFrame) GetPing() *Ping

func (*GrpcFrame) GetStreamId

func (x *GrpcFrame) GetStreamId() uint32

func (*GrpcFrame) ProtoMessage

func (*GrpcFrame) ProtoMessage()

func (*GrpcFrame) ProtoReflect

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

func (*GrpcFrame) Reset

func (x *GrpcFrame) Reset()

func (*GrpcFrame) Sanitize added in v0.9.4

func (m *GrpcFrame) Sanitize() error

func (*GrpcFrame) String

func (x *GrpcFrame) String() string

func (*GrpcFrame) Validate

func (m *GrpcFrame) Validate() error

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

func (m *GrpcFrame) ValidateAll() error

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

type GrpcFrameMultiError

type GrpcFrameMultiError []error

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

func (GrpcFrameMultiError) AllErrors

func (m GrpcFrameMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GrpcFrameMultiError) Error

func (m GrpcFrameMultiError) Error() string

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

type GrpcFrameValidationError

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

GrpcFrameValidationError is the validation error returned by GrpcFrame.Validate if the designated constraints aren't met.

func (GrpcFrameValidationError) Cause

func (e GrpcFrameValidationError) Cause() error

Cause function returns cause value.

func (GrpcFrameValidationError) Error

func (e GrpcFrameValidationError) Error() string

Error satisfies the builtin error interface

func (GrpcFrameValidationError) ErrorName

func (e GrpcFrameValidationError) ErrorName() string

ErrorName returns error name.

func (GrpcFrameValidationError) Field

func (e GrpcFrameValidationError) Field() string

Field function returns field value.

func (GrpcFrameValidationError) Key

Key function returns key value.

func (GrpcFrameValidationError) Reason

func (e GrpcFrameValidationError) Reason() string

Reason function returns reason value.

type GrpcFrame_Body

type GrpcFrame_Body struct {
	Body *Body `protobuf:"bytes,4,opt,name=body,proto3,oneof"`
}

type GrpcFrame_Cancel

type GrpcFrame_Cancel struct {
	Cancel *Cancel `protobuf:"bytes,7,opt,name=cancel,proto3,oneof"`
}

type GrpcFrame_Complete

type GrpcFrame_Complete struct {
	Complete *Complete `protobuf:"bytes,5,opt,name=complete,proto3,oneof"`
}

type GrpcFrame_Failure

type GrpcFrame_Failure struct {
	Failure *Failure `protobuf:"bytes,6,opt,name=failure,proto3,oneof"`
}

type GrpcFrame_Header

type GrpcFrame_Header struct {
	Header *Header `protobuf:"bytes,3,opt,name=header,proto3,oneof"`
}

type GrpcFrame_Ping added in v0.9.2

type GrpcFrame_Ping struct {
	Ping *Ping `protobuf:"bytes,2,opt,name=ping,proto3,oneof"`
}
type Header struct {
	Operation string                  `protobuf:"bytes,1,opt,name=operation,proto3" json:"operation,omitempty"`
	Headers   map[string]*HeaderValue `` /* 155-byte string literal not displayed */
	Status    int32                   `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*Header) Descriptor deprecated

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

Deprecated: Use Header.ProtoReflect.Descriptor instead.

func (*Header) GetHeaders

func (x *Header) GetHeaders() map[string]*HeaderValue

func (*Header) GetOperation

func (x *Header) GetOperation() string

func (*Header) GetStatus

func (x *Header) GetStatus() int32

func (*Header) ProtoMessage

func (*Header) ProtoMessage()

func (*Header) ProtoReflect

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

func (*Header) Reset

func (x *Header) Reset()

func (*Header) Sanitize added in v0.9.4

func (m *Header) Sanitize() error

func (*Header) String

func (x *Header) String() string

func (*Header) Validate

func (m *Header) Validate() error

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

func (m *Header) ValidateAll() error

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

type HeaderMultiError

type HeaderMultiError []error

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

func (HeaderMultiError) AllErrors

func (m HeaderMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (HeaderMultiError) Error

func (m HeaderMultiError) Error() string

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

type HeaderValidationError

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

HeaderValidationError is the validation error returned by Header.Validate if the designated constraints aren't met.

func (HeaderValidationError) Cause

func (e HeaderValidationError) Cause() error

Cause function returns cause value.

func (HeaderValidationError) Error

func (e HeaderValidationError) Error() string

Error satisfies the builtin error interface

func (HeaderValidationError) ErrorName

func (e HeaderValidationError) ErrorName() string

ErrorName returns error name.

func (HeaderValidationError) Field

func (e HeaderValidationError) Field() string

Field function returns field value.

func (HeaderValidationError) Key

func (e HeaderValidationError) Key() bool

Key function returns key value.

func (HeaderValidationError) Reason

func (e HeaderValidationError) Reason() string

Reason function returns reason value.

type HeaderValue

type HeaderValue struct {
	Value []string `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*HeaderValue) Descriptor deprecated

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

Deprecated: Use HeaderValue.ProtoReflect.Descriptor instead.

func (*HeaderValue) GetValue

func (x *HeaderValue) GetValue() []string

func (*HeaderValue) ProtoMessage

func (*HeaderValue) ProtoMessage()

func (*HeaderValue) ProtoReflect

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

func (*HeaderValue) Reset

func (x *HeaderValue) Reset()

func (*HeaderValue) Sanitize added in v0.9.4

func (m *HeaderValue) Sanitize() error

func (*HeaderValue) String

func (x *HeaderValue) String() string

func (*HeaderValue) Validate

func (m *HeaderValue) Validate() error

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

func (m *HeaderValue) ValidateAll() error

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

type HeaderValueMultiError

type HeaderValueMultiError []error

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

func (HeaderValueMultiError) AllErrors

func (m HeaderValueMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (HeaderValueMultiError) Error

func (m HeaderValueMultiError) Error() string

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

type HeaderValueValidationError

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

HeaderValueValidationError is the validation error returned by HeaderValue.Validate if the designated constraints aren't met.

func (HeaderValueValidationError) Cause

Cause function returns cause value.

func (HeaderValueValidationError) Error

Error satisfies the builtin error interface

func (HeaderValueValidationError) ErrorName

func (e HeaderValueValidationError) ErrorName() string

ErrorName returns error name.

func (HeaderValueValidationError) Field

Field function returns field value.

func (HeaderValueValidationError) Key

Key function returns key value.

func (HeaderValueValidationError) Reason

Reason function returns reason value.

type Ping added in v0.9.2

type Ping struct {
	Pong bool `protobuf:"varint,1,opt,name=pong,proto3" json:"pong,omitempty"`
	// contains filtered or unexported fields
}

func (*Ping) Descriptor deprecated added in v0.9.2

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

Deprecated: Use Ping.ProtoReflect.Descriptor instead.

func (*Ping) GetPong added in v0.9.2

func (x *Ping) GetPong() bool

func (*Ping) ProtoMessage added in v0.9.2

func (*Ping) ProtoMessage()

func (*Ping) ProtoReflect added in v0.9.2

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

func (*Ping) Reset added in v0.9.2

func (x *Ping) Reset()

func (*Ping) Sanitize added in v0.9.4

func (m *Ping) Sanitize() error

func (*Ping) String added in v0.9.2

func (x *Ping) String() string

func (*Ping) Validate added in v0.9.2

func (m *Ping) Validate() error

Validate checks the field values on Ping 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 (*Ping) ValidateAll added in v0.9.2

func (m *Ping) ValidateAll() error

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

type PingMultiError added in v0.9.2

type PingMultiError []error

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

func (PingMultiError) AllErrors added in v0.9.2

func (m PingMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PingMultiError) Error added in v0.9.2

func (m PingMultiError) Error() string

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

type PingValidationError added in v0.9.2

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

PingValidationError is the validation error returned by Ping.Validate if the designated constraints aren't met.

func (PingValidationError) Cause added in v0.9.2

func (e PingValidationError) Cause() error

Cause function returns cause value.

func (PingValidationError) Error added in v0.9.2

func (e PingValidationError) Error() string

Error satisfies the builtin error interface

func (PingValidationError) ErrorName added in v0.9.2

func (e PingValidationError) ErrorName() string

ErrorName returns error name.

func (PingValidationError) Field added in v0.9.2

func (e PingValidationError) Field() string

Field function returns field value.

func (PingValidationError) Key added in v0.9.2

func (e PingValidationError) Key() bool

Key function returns key value.

func (PingValidationError) Reason added in v0.9.2

func (e PingValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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