invocation

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 7, 2019 License: Apache-2.0 Imports: 4 Imported by: 6 modules, 17 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithArguments

func WithArguments(arguments []interface{}) option

func WithMethodName

func WithMethodName(methodName string) option

func WithParameterTypes

func WithParameterTypes(parameterTypes []reflect.Type) option

Types

type RPCInvocation

type RPCInvocation struct {
	// contains filtered or unexported fields
}

/////////////////////////// Invocation Impletment of RPC /////////////////////////// todo: is it necessary to separate fields of consumer(provider) from RPCInvocation

func NewRPCInvocationForConsumer

func NewRPCInvocationForConsumer(methodName string, parameterTypes []reflect.Type, arguments []interface{},
	reply interface{}, callBack interface{}, url common.URL, invoker protocol.Invoker) *RPCInvocation

func NewRPCInvocationForProvider

func NewRPCInvocationForProvider(methodName string, arguments []interface{}, attachments map[string]string) *RPCInvocation

func NewRPCInvocationWithOptions

func NewRPCInvocationWithOptions(opts ...option) *RPCInvocation

func (*RPCInvocation) Arguments

func (r *RPCInvocation) Arguments() []interface{}

func (*RPCInvocation) Attachments

func (r *RPCInvocation) Attachments() map[string]string

func (*RPCInvocation) AttachmentsByKey

func (r *RPCInvocation) AttachmentsByKey(key string, defaultValue string) string

func (*RPCInvocation) CallBack

func (r *RPCInvocation) CallBack() interface{}

func (*RPCInvocation) Invoker

func (r *RPCInvocation) Invoker() protocol.Invoker

func (*RPCInvocation) MethodName

func (r *RPCInvocation) MethodName() string

func (*RPCInvocation) ParameterTypes

func (r *RPCInvocation) ParameterTypes() []reflect.Type

func (*RPCInvocation) Reply

func (r *RPCInvocation) Reply() interface{}

func (*RPCInvocation) SetAttachments

func (r *RPCInvocation) SetAttachments(key string, value string)

func (*RPCInvocation) SetCallBack

func (r *RPCInvocation) SetCallBack(c interface{})

func (*RPCInvocation) SetInvoker

func (r *RPCInvocation) SetInvoker() protocol.Invoker

func (*RPCInvocation) SetMethod

func (r *RPCInvocation) SetMethod(method string)

func (*RPCInvocation) SetReply

func (r *RPCInvocation) SetReply(reply interface{})

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL