mirror of
https://github.com/golang/go
synced 2024-11-18 11:24:41 -07:00
d3396bb197
This will allow varying implementations and wrappers, and more closely matches the concepts used in the net library. Change-Id: I4be4c6efb3def0eda2693f482cbb0c6f776e5642 Reviewed-on: https://go-review.googlesource.com/c/tools/+/232877 Run-TryBot: Ian Cottrell <iancottrell@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Robert Findley <rfindley@google.com>
18 lines
616 B
Go
18 lines
616 B
Go
// Copyright 2018 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
// Package jsonrpc2 is a minimal implementation of the JSON RPC 2 spec.
|
|
// https://www.jsonrpc.org/specification
|
|
// It is intended to be compatible with other implementations at the wire level.
|
|
package jsonrpc2
|
|
|
|
const (
|
|
// ErrIdleTimeout is returned when serving timed out waiting for new connections.
|
|
ErrIdleTimeout = constError("timed out waiting for new connections")
|
|
)
|
|
|
|
type constError string
|
|
|
|
func (e constError) Error() string { return string(e) }
|