Documentation
¶
Index ¶
- func ClientFromContext[Client Pingable[Req, Resp, RespPtr], Req any, Resp any, ...](ctx context.Context) Client
- func ContextWithClient[Client Pingable[Req, Resp, RespPtr], Req any, Resp any, ...](ctx context.Context, client Client) context.Context
- func IsClientAvailableInContext[Client Pingable[Req, Resp, RespPtr], Req any, Resp any, ...](ctx context.Context) bool
- type PingResponse
- type Pingable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientFromContext ¶
func ClientFromContext[Client Pingable[Req, Resp, RespPtr], Req any, Resp any, RespPtr PingResponse[Resp]](ctx context.Context) Client
ClientFromContext returns the given RPC client from the context, or panics.
func ContextWithClient ¶
func ContextWithClient[Client Pingable[Req, Resp, RespPtr], Req any, Resp any, RespPtr PingResponse[Resp]](ctx context.Context, client Client) context.Context
ContextWithClient returns a context with an RPC client attached.
Types ¶
type PingResponse ¶
Click to show internal directories.
Click to hide internal directories.