internal

package
v1.16.5 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2021 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error added in v1.16.2

type Error struct {
	Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
	// This is to make the error more compatible with users that expect errors to be Status objects:
	// https://github.com/grpc/grpc/blob/master/src/proto/grpc/status/status.proto
	// It should be the exact same message as the Error field.
	Code                 int32      `protobuf:"varint,2,opt,name=code,proto3" json:"code,omitempty"`
	Message              string     `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	Details              []*any.Any `protobuf:"bytes,4,rep,name=details,proto3" json:"details,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

Error is the generic error returned from unary RPCs.

func (*Error) Descriptor added in v1.16.2

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

func (*Error) GetCode added in v1.16.2

func (m *Error) GetCode() int32

func (*Error) GetDetails added in v1.16.2

func (m *Error) GetDetails() []*any.Any

func (*Error) GetError added in v1.16.2

func (m *Error) GetError() string

func (*Error) GetMessage added in v1.16.2

func (m *Error) GetMessage() string

func (*Error) ProtoMessage added in v1.16.2

func (*Error) ProtoMessage()

func (*Error) Reset added in v1.16.2

func (m *Error) Reset()

func (*Error) String added in v1.16.2

func (m *Error) String() string

func (*Error) XXX_DiscardUnknown added in v1.16.2

func (m *Error) XXX_DiscardUnknown()

func (*Error) XXX_Marshal added in v1.16.2

func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Error) XXX_Merge added in v1.16.2

func (m *Error) XXX_Merge(src proto.Message)

func (*Error) XXX_Size added in v1.16.2

func (m *Error) XXX_Size() int

func (*Error) XXX_Unmarshal added in v1.16.2

func (m *Error) XXX_Unmarshal(b []byte) error

type StreamError

type StreamError struct {
	GrpcCode             int32      `protobuf:"varint,1,opt,name=grpc_code,json=grpcCode,proto3" json:"grpc_code,omitempty"`
	HttpCode             int32      `protobuf:"varint,2,opt,name=http_code,json=httpCode,proto3" json:"http_code,omitempty"`
	Message              string     `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	HttpStatus           string     `protobuf:"bytes,4,opt,name=http_status,json=httpStatus,proto3" json:"http_status,omitempty"`
	Details              []*any.Any `protobuf:"bytes,5,rep,name=details,proto3" json:"details,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

StreamError is a response type which is returned when streaming rpc returns an error.

func (*StreamError) Descriptor

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

func (*StreamError) GetDetails

func (m *StreamError) GetDetails() []*any.Any

func (*StreamError) GetGrpcCode

func (m *StreamError) GetGrpcCode() int32

func (*StreamError) GetHttpCode

func (m *StreamError) GetHttpCode() int32

func (*StreamError) GetHttpStatus

func (m *StreamError) GetHttpStatus() string

func (*StreamError) GetMessage

func (m *StreamError) GetMessage() string

func (*StreamError) ProtoMessage

func (*StreamError) ProtoMessage()

func (*StreamError) Reset

func (m *StreamError) Reset()

func (*StreamError) String

func (m *StreamError) String() string

func (*StreamError) XXX_DiscardUnknown

func (m *StreamError) XXX_DiscardUnknown()

func (*StreamError) XXX_Marshal

func (m *StreamError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StreamError) XXX_Merge

func (m *StreamError) XXX_Merge(src proto.Message)

func (*StreamError) XXX_Size

func (m *StreamError) XXX_Size() int

func (*StreamError) XXX_Unmarshal

func (m *StreamError) XXX_Unmarshal(b []byte) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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