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.
24 lines
417 B
24 lines
417 B
package data |
|
|
|
import ( |
|
"go-common/app/service/main/up/conf" |
|
"go-common/library/database/hbase.v2" |
|
"time" |
|
) |
|
|
|
//Dao hbase dao |
|
type Dao struct { |
|
c *conf.Config |
|
hbase *hbase.Client |
|
hbaseTimeOut time.Duration |
|
} |
|
|
|
//New create dao |
|
func New(c *conf.Config) (d *Dao) { |
|
d = &Dao{ |
|
c: c, |
|
hbase: hbase.NewClient(&c.HBase.Config), |
|
hbaseTimeOut: time.Millisecond * 500, |
|
} |
|
return |
|
}
|
|
|