invocation

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2020 License: Apache-2.0 Imports: 3 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 WithAttachments added in v1.2.0

func WithAttachments(attachments map[string]string) option

func WithCallBack added in v1.2.0

func WithCallBack(callBack interface{}) option

func WithInvoker added in v1.2.0

func WithInvoker(invoker protocol.Invoker) option

func WithMethodName

func WithMethodName(methodName string) option

func WithParameterTypes

func WithParameterTypes(parameterTypes []reflect.Type) option

func WithParameterValues added in v1.3.0

func WithParameterValues(parameterValues []reflect.Value) option

func WithReply added in v1.2.0

func WithReply(reply interface{}) 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 NewRPCInvocation added in v1.2.0

func NewRPCInvocation(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) ParameterValues added in v1.3.0

func (r *RPCInvocation) ParameterValues() []reflect.Value

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) 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