Documentation ¶
Index ¶
- Constants
- Variables
- func CloseGRPCClient() error
- func CloseMysqlClient() error
- func GetRespMap(r *esapi.Response) (esRespMapper, error)
- func InitESCli(conf *EsConfig)
- func InitGRPCClient(conf *GRPCConfig)
- func InitMysqlClient(conf *MysqlConf)
- type EsClient
- type EsConfig
- type GRPCClient
- type GRPCConfig
- type MysqlClient
- type MysqlConf
Constants ¶
View Source
const ( AggsAttrTypeValue = "value" AggsAttrTypeBuckets = "buckets" )
Variables ¶
View Source
var NoDataError = errors.New("no data found")
Functions ¶
func CloseGRPCClient ¶
func CloseGRPCClient() error
func CloseMysqlClient ¶
func CloseMysqlClient() error
func GetRespMap ¶
GetRespMap 从elasticsearch的Response中获取esRespMap对象
func InitGRPCClient ¶
func InitGRPCClient(conf *GRPCConfig)
Types ¶
type GRPCClient ¶
type GRPCClient struct {
*grpc.ClientConn
}
func GetGRPCClient ¶
func GetGRPCClient() *GRPCClient
type GRPCConfig ¶
type MysqlClient ¶
MysqlClient mysql客户端的封装
Click to show internal directories.
Click to hide internal directories.