项目文件夹

文件

项目文件夹

0
T

20 行
512 B
Go

2015-12-03 01:02:14 +00:00
package client
2016-11-07 17:49:35 +00:00
import (
2018-03-03 11:53:52 +00:00
"context"
2019-01-18 12:30:39 +00:00
"go-micro.dev/v6/registry"
2016-11-07 17:49:35 +00:00
)
2022-09-30 16:27:07 +02:00
// CallFunc represents the individual call func.
2019-01-18 12:30:39 +00:00
type CallFunc func(ctx context.Context, node *registry.Node, req Request, rsp interface{}, opts CallOptions) error
2016-11-07 17:49:35 +00:00
2022-09-30 16:27:07 +02:00
// CallWrapper is a low level wrapper for the CallFunc.
type CallWrapper func(CallFunc) CallFunc
2016-11-07 17:49:35 +00:00
2022-09-30 16:27:07 +02:00
// Wrapper wraps a client and returns a client.
2015-11-26 20:36:42 +00:00
type Wrapper func(Client) Client
2015-12-18 01:01:59 +00:00
2022-09-30 16:27:07 +02:00
// StreamWrapper wraps a Stream and returns the equivalent.
2018-04-14 18:15:09 +01:00
type StreamWrapper func(Stream) Stream