Versions in this module Expand all Collapse all v1 v1.0.0 Feb 2, 2021 Changes in this version + var DB *gorm.DB + var Kafka = &Server + var Mdb *mongo.Client + var Mem *cache.Cache + var Rdb *redis.Client + func InitDB() + func InitKafkaProducer() + func InitMdb() + func InitMemory() + func InitRdb() + type KafkaConfig struct + Brokers []string + CaFile string + CertFile string + KeyFile string + VerifySsl bool + type Server struct + AsyncProducer sarama.AsyncProducer + SyncProducer sarama.SyncProducer + func (s *Server) PrepareMessage(topic, message string) *sarama.ProducerMessage + func (s *Server) SendSyncMsg(topic, message string) (partition int32, offset int64, err error)