Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Debug = false
View Source
var DefaultMap sync.Map
Functions ¶
func NewServerCodec ¶
func NewServerCodec(conn io.ReadWriteCloser) rpc.ServerCodec
NewServerCodec returns a new rpc.ServerCodec using JSON-RPC on conn.
func ServeConn ¶
func ServeConn(conn io.ReadWriteCloser)
ServeConn runs the XRP-RPC server on a single connection. ServeConn blocks, serving the connection until the client hangs up. The caller typically invokes ServeConn in a go statement.
Types ¶
type AcceptStat ¶
type AcceptStat int32
const ( Success AcceptStat = iota // RPC executed successfully ProgMismatch // Remote can't support version number GarbageArgs // Procedure can't decode params SystemError // Other errors )
type AuthFlavor ¶
type AuthFlavor int32
type OpaqueAuth ¶
type OpaqueAuth struct { Flavor AuthFlavor Body []byte }
OpaqueAuth is a structure with AuthFlavor enumeration followed by up to 400 bytes that are opaque to (uninterpreted by) the RPC protocol implementation.
Click to show internal directories.
Click to hide internal directories.