func NewEventBus() *EventBus {
	return NewEventBusWithBufferCapacity(defaultCapacity)
}
NewEventBus returns a new event bus.
package types
import (
	"context"
	"fmt"
	cmn "github.com/tendermint/tendermint/libs/common"
	"github.com/tendermint/tendermint/libs/log"
	tmpubsub "github.com/tendermint/tendermint/libs/pubsub"
)
const defaultCapacity = 0
type EventBusSubscriber interface {
	Subscribe(ctx context.Context, subscriber string, query tmpubsub.Query, out chan<- interface{}) error
	Unsubscribe(ctx context.Context, subscriber string, query tmpubsub.Query) error
	UnsubscribeAll(ctx context.Context, subscriber string) error
}
type EventBus struct {
	cmn.BaseService
	pubsub *tmpubsub.Server
}