proteanpb

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use Error.ProtoReflect.Descriptor instead.

func (*Error) GetCode

func (x *Error) GetCode() int32

func (*Error) GetData

func (x *Error) GetData() *anypb.Any

func (*Error) GetMessage

func (x *Error) GetMessage() string

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) ProtoReflect

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

func (*Error) Reset

func (x *Error) Reset()

func (*Error) String

func (x *Error) String() string

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

Jump to

Keyboard shortcuts

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