func (e EventType) SubCommand() string {
	switch e {
	case PlainEvent:
		return "SUBSCRIBE"
	case PatternEvent:
		return "PSUBSCRIBE"
	default:
		panic(fmt.Sprintf("redutil/pubsub: unknown event type %d", e))
	}
}
SubCommand returns the command issued to subscribe to the event in Redis.
package pubsub
import (
	"fmt"
	"strconv"
	"strings"
)
type EventType int
const (
	PlainEvent EventType = iota
	PatternEvent
)
type patternType uint8
const (
	patternPlain patternType = iota
	patternStar
	patternAlts
	patternPlaceholder
)