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

Struct bufferedSink

internal/binarylog/sink.go:88–97  ·  internal/binarylog/sink.go::bufferedSink

Source from the content-addressed store, hash-verified

86func (ws *writerSink) Close() error { return nil }
87
88type bufferedSink struct {
89 mu sync.Mutex
90 closer io.Closer
91 out Sink // out is built on buf.
92 buf *bufio.Writer // buf is kept for flush.
93 flusherStarted bool
94
95 writeTicker *time.Ticker
96 done chan struct{}
97}
98
99func (fs *bufferedSink) Write(e *binlogpb.GrpcLogEntry) error {
100 fs.mu.Lock()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected