Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrParse = Error{/* contains filtered or unexported fields */} ErrInvalidRequest = Error{/* contains filtered or unexported fields */} ErrMethodNotFound = Error{/* contains filtered or unexported fields */} ErrInvalidParams = Error{/* contains filtered or unexported fields */} ErrInternal = Error{/* contains filtered or unexported fields */} ErrServer = Error{/* contains filtered or unexported fields */} )
Functions ¶
func BuildErrResp ¶
func ServeWithReconnect ¶
func ServeWithReconnect(ctx context.Context, cli TransportWithConnect, caller Caller)
Types ¶
type Caller ¶
Caller interface this method invokes on request and encode response as jsonrpc response
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
type NextReader ¶
type NextWriter ¶
type NextWriter interface {
NextWriter() (io.WriteCloser, error)
}
type Transport ¶
type Transport interface { NextWriter NextReader }
type TransportWithConnect ¶
Click to show internal directories.
Click to hide internal directories.