goapb

package
v3.14.6 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: MIT Imports: 4 Imported by: 15

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

View Source
var File_goadesign_goa_error_proto protoreflect.FileDescriptor

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"`
	// contains filtered or unexported fields
}

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 deprecated

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

Deprecated: Use ErrorResponse.ProtoReflect.Descriptor instead.

func (*ErrorResponse) GetFault

func (x *ErrorResponse) GetFault() bool

func (*ErrorResponse) GetId

func (x *ErrorResponse) GetId() string

func (*ErrorResponse) GetMsg

func (x *ErrorResponse) GetMsg() string

func (*ErrorResponse) GetName

func (x *ErrorResponse) GetName() string

func (*ErrorResponse) GetTemporary

func (x *ErrorResponse) GetTemporary() bool

func (*ErrorResponse) GetTimeout

func (x *ErrorResponse) GetTimeout() bool

func (*ErrorResponse) ProtoMessage

func (*ErrorResponse) ProtoMessage()

func (*ErrorResponse) ProtoReflect added in v3.3.0

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

func (*ErrorResponse) Reset

func (x *ErrorResponse) Reset()

func (*ErrorResponse) String

func (x *ErrorResponse) String() string

Jump to

Keyboard shortcuts

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