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

Interface Sink

binarylog/sink.go:45–55  ·  binarylog/sink.go::Sink

Sink represents the destination for the binary log entries.

Source from the content-addressed store, hash-verified

43
44// Sink represents the destination for the binary log entries.
45type Sink interface {
46 // Write marshals the log entry and writes it to the destination. The format
47 // is not specified, but should have sufficient information to rebuild the
48 // entry. Some options are: proto bytes, or proto json.
49 //
50 // Note this function needs to be thread-safe.
51 Write(*binlogpb.GrpcLogEntry) error
52 // Close closes this sink and cleans up resources (e.g. the flushing
53 // goroutine).
54 Close() error
55}
56
57// NewTempFileSink creates a temp file and returns a Sink that writes to this
58// file.

Callers

nothing calls this directly

Implementers 10

testConncredentials/alts/internal/conn/record_
noopConncredentials/alts/internal/conn/record_
testConncredentials/alts/internal/testutil/tes
unresponsiveTestConncredentials/alts/internal/testutil/tes
testBinLogSinkbinarylog/binarylog_end2end_test.go
pipetest/bufconn/bufconn.go
noopSinkinternal/binarylog/sink.go
writerSinkinternal/binarylog/sink.go
bufferedSinkinternal/binarylog/sink.go
ClientStreaminternal/transport/client_stream.go

Calls

no outgoing calls

Tested by

no test coverage detected