goapb

package
v2.0.10+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package goapb contains protocol buffer message types used by the code generation logic.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorResponse

type ErrorResponse struct {
	// name is the name for that class of errors.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// id is the unique error instance identifier.
	Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// msg describes the specific error occurrence.
	Msg string `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"`
	// temporary indicates whether the error is temporary.
	Temporary bool `protobuf:"varint,4,opt,name=temporary,proto3" json:"temporary,omitempty"`
	// timeout indicates whether the error is a timeout.
	Timeout bool `protobuf:"varint,5,opt,name=timeout,proto3" json:"timeout,omitempty"`
	// fault indicates whether the error is a server-side fault.
	Fault                bool     `protobuf:"varint,6,opt,name=fault,proto3" json:"fault,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

ErrorResponse message defines the error encoded in the gRPC response that correspond to the errors created by the generated code. This is mainly intended for the clients to decode error responses.

func (*ErrorResponse) Descriptor

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

func (*ErrorResponse) GetFault

func (m *ErrorResponse) GetFault() bool

func (*ErrorResponse) GetId

func (m *ErrorResponse) GetId() string

func (*ErrorResponse) GetMsg

func (m *ErrorResponse) GetMsg() string

func (*ErrorResponse) GetName

func (m *ErrorResponse) GetName() string

func (*ErrorResponse) GetTemporary

func (m *ErrorResponse) GetTemporary() bool

func (*ErrorResponse) GetTimeout

func (m *ErrorResponse) GetTimeout() bool

func (*ErrorResponse) ProtoMessage

func (*ErrorResponse) ProtoMessage()

func (*ErrorResponse) Reset

func (m *ErrorResponse) Reset()

func (*ErrorResponse) String

func (m *ErrorResponse) String() string

func (*ErrorResponse) XXX_DiscardUnknown

func (m *ErrorResponse) XXX_DiscardUnknown()

func (*ErrorResponse) XXX_Marshal

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

func (*ErrorResponse) XXX_Merge

func (dst *ErrorResponse) XXX_Merge(src proto.Message)

func (*ErrorResponse) XXX_Size

func (m *ErrorResponse) XXX_Size() int

func (*ErrorResponse) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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