Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Invoke ¶
type Invoke struct {
// contains filtered or unexported fields
}
func NewInvoke ¶
func NewInvoke(c *context.Context, method string, opts ...InvokeOptions) (*context.Context, *Invoke, error)
NewInvoke create a invoke
func (*Invoke) Opts ¶
func (invoke *Invoke) Opts() InvokeOption
type InvokeOption ¶
type InvokeOption struct {
// contains filtered or unexported fields
}
type InvokeOptions ¶
type InvokeOptions func(*InvokeOption)
func Codec ¶
func Codec(cc codec.Codec) InvokeOptions
func InvokeBuffSize ¶
func InvokeBuffSize(buffSize int) InvokeOptions
InvokeBuffSize set buff size for requestChannel
func WithAddress ¶
func WithAddress(name, address string, version ...string) InvokeOptions
WithAddress set service discover prefix with both service serviceName and address
func WithName ¶
func WithName(name string, version ...string) InvokeOptions
WithName set service discover prefix with service serviceName
Click to show internal directories.
Click to hide internal directories.