Browse Source
core/protocol: remove deprecated Negotiator.NegotiateLazy (#1869)
pull/1868/head
Marten Seemann
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
0 additions and
11 deletions
-
core/protocol/switch.go
|
|
@ -51,17 +51,6 @@ type Router interface { |
|
|
|
// Negotiator is a component capable of reaching agreement over what protocols
|
|
|
|
// to use for inbound streams of communication.
|
|
|
|
type Negotiator interface { |
|
|
|
// NegotiateLazy will return the registered protocol handler to use
|
|
|
|
// for a given inbound stream, returning as soon as the protocol has been
|
|
|
|
// determined. Returns an error if negotiation fails.
|
|
|
|
//
|
|
|
|
// NegotiateLazy may return before all protocol negotiation responses have been
|
|
|
|
// written to the stream. This is in contrast to Negotiate, which will block until
|
|
|
|
// the Negotiator is finished with the stream.
|
|
|
|
//
|
|
|
|
// Deprecated: use Negotiate instead.
|
|
|
|
NegotiateLazy(rwc io.ReadWriteCloser) (io.ReadWriteCloser, string, HandlerFunc, error) |
|
|
|
|
|
|
|
// Negotiate will return the registered protocol handler to use for a given
|
|
|
|
// inbound stream, returning after the protocol has been determined and the
|
|
|
|
// Negotiator has finished using the stream for negotiation. Returns an
|
|
|
|