MCPcopy
hub / github.com/grpc/grpc-go / newHalfCloseEntry

Method newHalfCloseEntry

binarylog/binarylog_end2end_test.go:553–566  ·  view source on GitHub ↗
(client bool, rpcID, inRPCID uint64)

Source from the content-addressed store, hash-verified

551}
552
553func (ed *expectedData) newHalfCloseEntry(client bool, rpcID, inRPCID uint64) *binlogpb.GrpcLogEntry {
554 logger := binlogpb.GrpcLogEntry_LOGGER_CLIENT
555 if !client {
556 logger = binlogpb.GrpcLogEntry_LOGGER_SERVER
557 }
558 return &binlogpb.GrpcLogEntry{
559 Timestamp: nil,
560 CallId: rpcID,
561 SequenceIdWithinCall: inRPCID,
562 Type: binlogpb.GrpcLogEntry_EVENT_TYPE_CLIENT_HALF_CLOSE,
563 Payload: nil, // No payload here.
564 Logger: logger,
565 }
566}
567
568func (ed *expectedData) newServerTrailerEntry(client bool, rpcID, inRPCID uint64, stErr error) *binlogpb.GrpcLogEntry {
569 logger := binlogpb.GrpcLogEntry_LOGGER_SERVER

Callers 2

toClientLogEntriesMethod · 0.95
toServerLogEntriesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected