Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Body ¶
type Body struct {
RequestHeader RequestHeader
RequestBody RequestBody
ReplyHeader ReplyHeader
ReplyBody interface{}
}
type Invocation ¶
type Invocation struct {
ObjectId int
IpAddress string
PortNumber int
OperationName string
Parameters []interface{}
}
func NewInvocation ¶
func NewInvocation(objectId int, ipAddress string, portNumber int, operationName string, parameters []interface{}) *Invocation
type InvokerImpl ¶
type InvokerImpl struct {
// contains filtered or unexported fields
}
func (*InvokerImpl) Invoke ¶
func (inv *InvokerImpl) Invoke(port int, initialConnections int) (err error)
func (*InvokerImpl) Register ¶
func (inv *InvokerImpl) Register(objectId int, remoteObject interface{})
type LookupProxy ¶
type LookupProxy struct {
// contains filtered or unexported fields
}
func NewLookupProxy ¶
func NewLookupProxy(host string, port int) *LookupProxy
func (LookupProxy) Bind ¶
func (lp LookupProxy) Bind(sn string, cp common.ClientProxy) (err error)
func (LookupProxy) Close ¶
func (lp LookupProxy) Close() error
func (LookupProxy) List ¶
func (lp LookupProxy) List() (services []common.NamingRecord, err error)
func (LookupProxy) Lookup ¶
func (lp LookupProxy) Lookup(serviceName string) (cp common.ClientProxy, err error)
type Message ¶
func Unmarshall ¶
type ReplyHeader ¶
type RequestBody ¶
type RequestBody struct {
Parameters []interface{}
}
type RequestHeader ¶
type Requestor ¶
type Requestor interface {
Invoke(inv Invocation) (t Termination, err error)
Close() error
}
type RequestorImpl ¶
type RequestorImpl struct {
// contains filtered or unexported fields
}
Implements requestor
func NewRequestorImpl ¶
func NewRequestorImpl(ipAddress string, portNumber int) *RequestorImpl
func (*RequestorImpl) Close ¶
func (r *RequestorImpl) Close() error
func (*RequestorImpl) Invoke ¶
func (r *RequestorImpl) Invoke(inv Invocation) (t Termination, err error)
type Termination ¶
type Termination struct {
Result interface{}
}
Click to show internal directories.
Click to hide internal directories.