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