dao.go 377 B

12345678910111213141516171819202122232425
  1. package hbase
  2. import (
  3. "go-common/app/job/main/videoup-report/conf"
  4. "go-common/library/database/hbase.v2"
  5. )
  6. // Dao is redis dao.
  7. type Dao struct {
  8. c *conf.Config
  9. hbase *hbase.Client
  10. }
  11. // New new a archive dao.
  12. func New(c *conf.Config) (d *Dao) {
  13. d = &Dao{
  14. c: c,
  15. hbase: hbase.NewClient(&c.Hbase.Config),
  16. }
  17. return d
  18. }
  19. // Close fn
  20. func (d *Dao) Close() {
  21. }