Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FatalIfUnexpected ¶
func FatalIfUnexpected(err error)
FatalIfUnexpected calls Log.Fatal(err) unless err is nil, cmux.ErrListenerClosed, or the net package's errClosed.
func IsClosedConnection ¶
IsClosedConnection returns true if err is cmux.ErrListenerClosed, grpc.ErrServerStopped, io.EOF, or the net package's errClosed.
Types ¶
type Server ¶
Server is a thin wrapper around http.Server. See MakeServer for more detail.
func MakeServer ¶
MakeServer constructs a Server that tracks active connections, closing them when signalled by stopper.
Click to show internal directories.
Click to hide internal directories.