Documentation ¶
Index ¶
- Variables
- type Error
- type SupportedMediaTypes
- func (*SupportedMediaTypes) Descriptor() ([]byte, []int)deprecated
- func (x *SupportedMediaTypes) GetMediaTypes() []string
- func (*SupportedMediaTypes) ProtoMessage()
- func (x *SupportedMediaTypes) ProtoReflect() protoreflect.Message
- func (x *SupportedMediaTypes) Reset()
- func (x *SupportedMediaTypes) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_github_com_dogmatiq_protean_internal_proteanpb_error_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Data *anypb.Any `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
Error is the message used to transfer information about an RPC error to a client.
When serialized using the protojson package it conforms to the structure of a JSON-RPC v2 error object. See https://www.jsonrpc.org/specification#error_object.
func (*Error) Descriptor
deprecated
func (*Error) GetMessage ¶
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
func (*Error) ProtoReflect ¶
func (x *Error) ProtoReflect() protoreflect.Message
type SupportedMediaTypes ¶
type SupportedMediaTypes struct { MediaTypes []string `protobuf:"bytes,1,rep,name=media_types,json=mediaTypes,proto3" json:"media_types,omitempty"` // contains filtered or unexported fields }
SupportedMediaTypes is a list of media types supported by the server, in order of preference.
func (*SupportedMediaTypes) Descriptor
deprecated
func (*SupportedMediaTypes) Descriptor() ([]byte, []int)
Deprecated: Use SupportedMediaTypes.ProtoReflect.Descriptor instead.
func (*SupportedMediaTypes) GetMediaTypes ¶
func (x *SupportedMediaTypes) GetMediaTypes() []string
func (*SupportedMediaTypes) ProtoMessage ¶
func (*SupportedMediaTypes) ProtoMessage()
func (*SupportedMediaTypes) ProtoReflect ¶
func (x *SupportedMediaTypes) ProtoReflect() protoreflect.Message
func (*SupportedMediaTypes) Reset ¶
func (x *SupportedMediaTypes) Reset()
func (*SupportedMediaTypes) String ¶
func (x *SupportedMediaTypes) String() string
Click to show internal directories.
Click to hide internal directories.