Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterMux ¶
RegisterMux binds all methods registered on mux to zrpc.Server NATS subscriptions. Business handlers stay on gateway.Mux; zrpc is a separate transport bridge.
Types ¶
type Config ¶
type Config struct {
// Queue is the NATS queue group name for all registered methods.
Queue string
// SubjectPrefix is prepended to each gRPC full method (without leading slash).
// Default: "svc." — e.g. "/pkg.v1.Service/Method" → "svc.pkg.v1.Service/Method".
SubjectPrefix string
}
Config configures NATS/zrpc bindings to a gateway.Mux backend.
Click to show internal directories.
Click to hide internal directories.