feat: add PubSub() accessor to V struct

This commit is contained in:
Ryan Hamamura
2026-02-12 14:32:05 -10:00
parent 27b8540b71
commit 2f19874c17

5
via.go
View File

@@ -419,6 +419,11 @@ func (v *V) HTTPServeMux() *http.ServeMux {
return v.mux return v.mux
} }
// PubSub returns the configured PubSub backend, or nil if none is set.
func (v *V) PubSub() PubSub {
return v.pubsub
}
// Static serves files from a filesystem directory at the given URL prefix. // Static serves files from a filesystem directory at the given URL prefix.
// //
// Example: // Example: