Documentation
¶
Index ¶
- Constants
- Variables
- func CheckKafka(kafkaStu *Kafka) (string, sarama.Client, error)
- func CheckMinio(minioStu *Minio) (string, error)
- func CheckMongo(mongoStu *Mongo) (string, error)
- func CheckMySQL(mysqlStu *MySQL) (string, error)
- func CheckRedis(redisStu *Redis) (string, error)
- func CheckZookeeper(zkStu *Zookeeper) (string, error)
- func ErrStr(err error, str string) error
- func ErrorPrint(s string)
- func SuccessPrint(s string)
- func WarningPrint(s string)
- type Kafka
- type Minio
- type Mongo
- type MySQL
- type Redis
- type Zookeeper
Constants ¶
View Source
const (
MaxRetry = 300
)
Variables ¶
View Source
var ( ErrComponentStart = errs.NewCodeError(componentStartErrCode, "ComponentStartErr") ErrConfig = errs.NewCodeError(configErrCode, "Config file is incorrect") )
Functions ¶
func CheckKafka ¶
CheckKafka checks the Kafka connection
func CheckMinio ¶
CheckMinio checks the MinIO connection
func CheckMongo ¶
CheckMongo checks the MongoDB connection without retries
func CheckMySQL ¶
CheckMySQL checks the mysql connection
func CheckRedis ¶
CheckRedis checks the Redis connection
func CheckZookeeper ¶
CheckZookeeper checks the Zookeeper connection
func ErrorPrint ¶
func ErrorPrint(s string)
func SuccessPrint ¶
func SuccessPrint(s string)
func WarningPrint ¶
func WarningPrint(s string)
Types ¶
Click to show internal directories.
Click to hide internal directories.