Documentation ¶
Index ¶
- Variables
- func GetKafkaConfig() *sarama.Config
- func GetRowsCached(keys string) (string, error)
- func InitDB() *gorm.DB
- func InitElastic() *elastic.Client
- func InitRedis() redis.Conn
- func Initetcd() client.KeysAPI
- func Initkafka() sarama.SyncProducer
- func RowsCached(keys string, d []byte, ttl int) ([]byte, error)
- type Data
- type KafkaProducer
- type Respons
Constants ¶
This section is empty.
Variables ¶
View Source
var Conn *gorm.DB
Conn For Global Connect
View Source
var ElConn *elastic.Client
ElConn | Global Var to conn
View Source
var Etcd client.KeysAPI
Etcd to use all object client
View Source
var Kafka sarama.SyncProducer
Kafka Connect to global
View Source
var Store redis.Conn
Store for global connect to cache
Functions ¶
Types ¶
type KafkaProducer ¶
type KafkaProducer struct {
Producer sarama.SyncProducer
}
KafkaProducer Methods
type Respons ¶
type Respons struct { Topic interface{} `json:"topic"` Task interface{} `json:"task"` Offset interface{} `json:"offset"` }
Respons Data
func SendMessage ¶
SendMessage function to send message into kafka
Click to show internal directories.
Click to hide internal directories.