Documentation
¶
Index ¶
- func Call[REQ any, REPLY any, CT any, C Client[CT]](ctx context.Context, c C, ...) (_ret REPLY, _err error)
- func CallRetryable[REQ any, REPLY any, CT any, C ClientRetryable[CT]](ctx context.Context, c C, ...) (REPLY, error)
- func UnwrapChan[E any, R any, S Receiver[R], CT any, C Client[CT]](ctx context.Context, c C, fn func(ctx context.Context, client CT) (S, error), ...) (<-chan E, error)
- func WrapChan[T any, E any](ctx context.Context, getChan func(ctx context.Context) (<-chan E, error), ...) (_err error)
- type CallWrapperFunc
- type Client
- type ClientRetryable
- type Receiver
- type RetryConfig
- type Sender
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallRetryable ¶
func CallRetryable[REQ any, REPLY any, CT any, C ClientRetryable[CT]]( ctx context.Context, c C, fn func(context.Context, *REQ, ...grpc.CallOption) (REPLY, error), req *REQ, opts ...grpc.CallOption, ) (REPLY, error)
func UnwrapChan ¶
Types ¶
type CallWrapperFunc ¶
type ClientRetryable ¶
type ClientRetryable[CT any] interface { Client[CT] GetRetryConfig() RetryConfig }
type RetryConfig ¶
Click to show internal directories.
Click to hide internal directories.