hrpcv1

package
v0.0.0-...-a9cc36f Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2022 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLength        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflow          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group")
)
View Source
var File_protocol_hrpc_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Error

type Error struct {

	// The identifier of this error, can be used as an i18n key.
	Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"`
	// A human readable message in English, explaining why the error occured.
	HumanMessage string `protobuf:"bytes,2,opt,name=human_message,json=humanMessage,proto3" json:"human_message,omitempty"`
	// Details about this message. This is dependent on the error identifier.
	Details []byte `protobuf:"bytes,3,opt,name=details,proto3" json:"details,omitempty"`
	// contains filtered or unexported fields
}

Error type that will be returned by servers.

func (*Error) Descriptor deprecated

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

Deprecated: Use Error.ProtoReflect.Descriptor instead.

func (*Error) GetDetails

func (x *Error) GetDetails() []byte

func (*Error) GetHumanMessage

func (x *Error) GetHumanMessage() string

func (*Error) GetIdentifier

func (x *Error) GetIdentifier() string

func (*Error) MarshalToSizedBufferVT

func (m *Error) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Error) MarshalToVT

func (m *Error) MarshalToVT(dAtA []byte) (int, error)

func (*Error) MarshalVT

func (m *Error) MarshalVT() (dAtA []byte, err error)

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) ProtoReflect

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

func (*Error) Reset

func (x *Error) Reset()

func (*Error) SizeVT

func (m *Error) SizeVT() (n int)

func (*Error) String

func (x *Error) String() string

func (*Error) UnmarshalVT

func (m *Error) UnmarshalVT(dAtA []byte) error

type RetryInfo

type RetryInfo struct {

	// How many seconds to wait before retrying the request.
	RetryAfter uint32 `protobuf:"varint,1,opt,name=retry_after,json=retryAfter,proto3" json:"retry_after,omitempty"`
	// contains filtered or unexported fields
}

Information that can be used by clients for retrying requests.

func (*RetryInfo) Descriptor deprecated

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

Deprecated: Use RetryInfo.ProtoReflect.Descriptor instead.

func (*RetryInfo) GetRetryAfter

func (x *RetryInfo) GetRetryAfter() uint32

func (*RetryInfo) MarshalToSizedBufferVT

func (m *RetryInfo) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*RetryInfo) MarshalToVT

func (m *RetryInfo) MarshalToVT(dAtA []byte) (int, error)

func (*RetryInfo) MarshalVT

func (m *RetryInfo) MarshalVT() (dAtA []byte, err error)

func (*RetryInfo) ProtoMessage

func (*RetryInfo) ProtoMessage()

func (*RetryInfo) ProtoReflect

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

func (*RetryInfo) Reset

func (x *RetryInfo) Reset()

func (*RetryInfo) SizeVT

func (m *RetryInfo) SizeVT() (n int)

func (*RetryInfo) String

func (x *RetryInfo) String() string

func (*RetryInfo) UnmarshalVT

func (m *RetryInfo) UnmarshalVT(dAtA []byte) error

Jump to

Keyboard shortcuts

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