You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

23 lines
556 B

package oplog
import (
"go-common/app/admin/main/dm/conf"
bm "go-common/library/net/http/blademaster"
)
// Dao dao struct for querying infoc data storing in hbase
type Dao struct {
httpCli *bm.Client
key, secret, infocQueryURL string
}
// New new a Dao instance and init.
func New(c *conf.Config) (d *Dao) {
d = &Dao{
key: c.HTTPInfoc.ClientConfig.Key,
secret: c.HTTPInfoc.ClientConfig.Secret,
httpCli: bm.NewClient(c.HTTPInfoc.ClientConfig),
infocQueryURL: c.HTTPInfoc.InfocQueryURL,
}
return
}