grpcreplay

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Entry_Kind_name = map[int32]string{
		0: "TYPE_UNSPECIFIED",
		1: "REQUEST",
		2: "RESPONSE",
		3: "CREATE_STREAM",
		4: "SEND",
		5: "RECV",
	}
	Entry_Kind_value = map[string]int32{
		"TYPE_UNSPECIFIED": 0,
		"REQUEST":          1,
		"RESPONSE":         2,
		"CREATE_STREAM":    3,
		"SEND":             4,
		"RECV":             5,
	}
)

Enum value maps for Entry_Kind.

View Source
var File_grpcreplay_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Kind     Entry_Kind `protobuf:"varint,1,opt,name=kind,proto3,enum=grpcreplay.Entry_Kind" json:"kind,omitempty"`
	Method   string     `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"`                      // method name
	Message  *anypb.Any `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`                    // request, response or error status
	IsError  bool       `protobuf:"varint,4,opt,name=is_error,json=isError,proto3" json:"is_error,omitempty"`    // was response an error?
	RefIndex int32      `protobuf:"varint,5,opt,name=ref_index,json=refIndex,proto3" json:"ref_index,omitempty"` // for RESPONSE, index of matching request;
	// contains filtered or unexported fields
}

An Entry represents a single RPC activity, typically a request or response.

func (*Entry) Descriptor deprecated

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

Deprecated: Use Entry.ProtoReflect.Descriptor instead.

func (*Entry) GetIsError

func (x *Entry) GetIsError() bool

func (*Entry) GetKind

func (x *Entry) GetKind() Entry_Kind

func (*Entry) GetMessage

func (x *Entry) GetMessage() *anypb.Any

func (*Entry) GetMethod

func (x *Entry) GetMethod() string

func (*Entry) GetRefIndex

func (x *Entry) GetRefIndex() int32

func (*Entry) ProtoMessage

func (*Entry) ProtoMessage()

func (*Entry) ProtoReflect

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

func (*Entry) Reset

func (x *Entry) Reset()

func (*Entry) String

func (x *Entry) String() string

type Entry_Kind

type Entry_Kind int32
const (
	Entry_TYPE_UNSPECIFIED Entry_Kind = 0
	// A unary request.
	// method: the full name of the method
	// message: the request proto
	// is_error: false
	// ref_index: 0
	Entry_REQUEST Entry_Kind = 1
	// A unary response.
	// method: the full name of the method
	// message:
	//   if is_error: a google.rpc.Status proto
	//   else:        the response proto
	// ref_index: index in the sequence of Entries of matching request (1-based)
	Entry_RESPONSE Entry_Kind = 2
	// A method that creates a stream.
	// method: the full name of the method
	// message:
	//   if is_error: a google.rpc.Status proto
	//   else:        nil
	// ref_index: 0
	Entry_CREATE_STREAM Entry_Kind = 3
	// A call to Send on the client returned by a stream-creating method.
	// method: unset
	// message: the proto being sent
	// is_error: false
	// ref_index: index of matching CREATE_STREAM entry (1-based)
	Entry_SEND Entry_Kind = 4 // message sent on stream
	// A call to Recv on the client returned by a stream-creating method.
	// method: unset
	// message:
	//   if is_error: a google.rpc.Status proto, or nil on EOF
	//   else:        the received message
	// ref_index: index of matching CREATE_STREAM entry
	Entry_RECV Entry_Kind = 5 // message received from stream
)

func (Entry_Kind) Descriptor

func (Entry_Kind) Descriptor() protoreflect.EnumDescriptor

func (Entry_Kind) Enum

func (x Entry_Kind) Enum() *Entry_Kind

func (Entry_Kind) EnumDescriptor deprecated

func (Entry_Kind) EnumDescriptor() ([]byte, []int)

Deprecated: Use Entry_Kind.Descriptor instead.

func (Entry_Kind) Number

func (x Entry_Kind) Number() protoreflect.EnumNumber

func (Entry_Kind) String

func (x Entry_Kind) String() string

func (Entry_Kind) Type

Jump to

Keyboard shortcuts

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