Versions in this module Expand all Collapse all v0 v0.4.0 Nov 19, 2026 Changes in this version + const CodeAborted + const CodeAlreadyExists + const CodeCanceled + const CodeDataLoss + const CodeDeadlineExceeded + const CodeFailedPrecondition + const CodeInternal + const CodeInvalidArgument + const CodeNotFound + const CodeOutOfRange + const CodePermissionDenied + const CodeResourceExhausted + const CodeUnauthenticated + const CodeUnavailable + const CodeUnimplemented + const CodeUnknown + func CallUnary[Res, Req any, PRes message[Res], PReq message[Req]](ctx context.Context, c *Client, procedure string, req *Req) (*Res, error) + func NewServiceHandler(service string, handlers ...*Handler) (string, http.Handler) + type Client struct + func NewClient(httpClient HTTPClient, baseURL string, opts ...ClientOption) *Client + type ClientOption interface + type Code = clientrpc.Code + func CodeOf(err error) Code + type Error = clientrpc.Error + func NewError(code Code, err error) *Error + type HTTPClient = clientrpc.HTTPClient + type Handler struct + func NewUnaryHandler[Req, Res any, PReq message[Req], PRes message[Res]](procedure string, unary func(context.Context, *Req) (*Res, error), ...) *Handler + func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) + type HandlerOption interface + type Interceptor func(next UnaryFunc) UnaryFunc + type Option interface + func WithInterceptors(interceptors ...Interceptor) Option + type UnaryFunc func(ctx context.Context, req proto.Message) (proto.Message, error)