Documentation
¶
Index ¶
- func NewHandler[T any](fn func(svc T, opts ...connect.HandlerOption) (string, http.Handler), svc T, ...) (string, http.Handler)
- func RecoveryUnaryConnectInterceptor(handler recovery.RecoveryHandlerFuncContext) connect.UnaryInterceptorFunc
- func Response[T any](res *T, err error) (*connect.Response[T], error)
- type Mux
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
func RecoveryUnaryConnectInterceptor ¶
func RecoveryUnaryConnectInterceptor(handler recovery.RecoveryHandlerFuncContext) connect.UnaryInterceptorFunc
Types ¶
type Mux ¶
type Mux struct {
// contains filtered or unexported fields
}
func NewMux ¶
func NewMux(ib *i18nx.I18N, opts ...connect.HandlerOption) *Mux
NewMux builds a Connect mux that returns Connect errors by default.
func NewVProtoMux ¶
func NewVProtoMux(ib *i18nx.I18N, opts ...connect.HandlerOption) *Mux
NewVProtoMux builds a Connect mux that returns VProto errors by default.
Click to show internal directories.
Click to hide internal directories.