1 // Copyright 2018 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
5 // Package jsonrpc2 is a minimal implementation of the JSON RPC 2 spec.
6 // https://www.jsonrpc.org/specification
7 // It is intended to be compatible with other implementations at the wire level.
11 // ErrIdleTimeout is returned when serving timed out waiting for new connections.
12 ErrIdleTimeout = constError("timed out waiting for new connections")
15 type constError string
17 func (e constError) Error() string { return string(e) }