Documentation ¶
Index ¶
- func Register(mu *http.ServeMux, en *encoding.Map)
- func Request(ctx context.Context) *http.Request
- func Response(ctx context.Context) http.ResponseWriter
- func Unary[Req any, Res any](path string, handler UnaryHandler[Req, Res])
- func WithRequest(ctx context.Context, r *http.Request) context.Context
- func WithResponse(ctx context.Context, r http.ResponseWriter) context.Context
- func WriteError(ctx context.Context, err error)
- type Client
- type UnaryHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Response ¶ added in v1.244.0
func Response(ctx context.Context) http.ResponseWriter
Response for rpc.
func Unary ¶ added in v1.244.0
func Unary[Req any, Res any](path string, handler UnaryHandler[Req, Res])
Unary for rpc.
func WithRequest ¶ added in v1.244.0
WithRequest for rpc.
func WithResponse ¶ added in v1.244.0
WithResponse for rpc.
func WriteError ¶ added in v1.241.0
WriteError for rpc.
Types ¶
Click to show internal directories.
Click to hide internal directories.