func SetDefaultPubSub(ps PubSub) {
	defaultPubSub = ps
}
SetDefaultPubSub sets pubsub used by the package to ps.
package events
import (
	"context"
	"go.thethings.network/lorawan-stack/v3/pkg/ttnpb"
)
type noopPubSub struct{}
func (noopPubSub) Publish(Event) {}
func (noopPubSub) Subscribe(context.Context, []string, []*ttnpb.EntityIdentifiers, Handler) error {
	return nil
}
var defaultPubSub PubSub = &noopPubSub{}