deployment added
This commit is contained in:
@ -6,6 +6,7 @@ import (
|
||||
"time"
|
||||
"strconv"
|
||||
"encoding/json"
|
||||
"udi/config"
|
||||
"udi/handlers/handler"
|
||||
"udi/database"
|
||||
)
|
||||
@ -29,12 +30,12 @@ type Observation struct {
|
||||
}
|
||||
|
||||
|
||||
func NewMbgw3Handler() *Mbgw3Handler {
|
||||
func NewMbgw3Handler(config config.HandlerConfigT) *Mbgw3Handler {
|
||||
t := &Mbgw3Handler {
|
||||
id: idSeq,
|
||||
}
|
||||
idSeq += 1
|
||||
t.dbh = database.NewDatabaseHandle("")
|
||||
t.dbh = database.NewDatabaseHandle(config.DatabaseConnStr)
|
||||
return t
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user