Documentation
¶
Overview ¶
Package rpc implements MessagePack RPC.
Index ¶
- type Call
- type Endpoint
- func (e *Endpoint) Call(method string, reply interface{}, args ...interface{}) error
- func (e *Endpoint) Close() error
- func (e *Endpoint) Go(method string, done chan *Call, reply interface{}, args ...interface{}) *Call
- func (e *Endpoint) Notify(method string, args ...interface{}) error
- func (e *Endpoint) Register(method string, fn interface{}, args ...interface{}) error
- func (e *Endpoint) Serve() error
- type Error
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Endpoint ¶
type Endpoint struct {
// contains filtered or unexported fields
}
Endpoint represents a MessagePack RPC peer.
func NewEndpoint ¶
NewEndpoint returns a new endpoint with the specified options.
Click to show internal directories.
Click to hide internal directories.