Document that all errors from RPCs are status errors (#1782)

This commit is contained in:
Menghan Li
2018-01-05 15:37:05 -08:00
committed by GitHub
parent 8a8ac82f1f
commit 6913ad5cae
2 changed files with 4 additions and 0 deletions

View File

@ -50,6 +50,8 @@ type StreamDesc struct {
}
// Stream defines the common interface a client or server stream has to satisfy.
//
// All errors returned from Stream are compatible with the status package.
type Stream interface {
// Context returns the context for this stream.
Context() context.Context