github.com/wfusion/gofusion@v1.1.14/test/mq/cases/types.go (about) 1 package cases 2 3 import "time" 4 5 const ( 6 nameDefault = "default" 7 8 nameRawRabbitmq = "raw_rabbitmq" 9 nameRawKafka = "raw_kafka" 10 nameRawPulsar = "raw_pulsar" 11 nameRawRedis = "raw_redis" 12 nameRawMysql = "raw_mysql" 13 nameRawPostgres = "raw_postgres" 14 nameRawGoChannel = "raw_gochannel" 15 16 nameEventRabbitmq = "event_rabbitmq" 17 nameEventKafka = "event_kafka" 18 nameEventPulsar = "event_pulsar" 19 nameEventRedis = "event_redis" 20 nameEventMysql = "event_mysql" 21 nameEventPostgres = "event_postgres" 22 nameEventGoChannel = "event_gochannel" 23 24 ackTimeout = 2 * time.Second 25 timeout = 20 * time.Second 26 ) 27 28 type cs struct { 29 name string 30 subTest func() 31 } 32 33 type structCreated struct { 34 ID string `json:"id"` 35 } 36 37 func (s *structCreated) EventType() string { 38 return "struct_created" 39 }