|
|
|
@ -9,10 +9,11 @@ import (
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type CarrierJson struct {
|
|
|
|
|
TagID string `json:"tagid"`
|
|
|
|
|
Attribute string `json:"attribute"` // might left empty
|
|
|
|
|
Content string `json:"content"`
|
|
|
|
|
Request string `json:"request"`
|
|
|
|
|
TagID string `json:"tagid"`
|
|
|
|
|
Attribute string `json:"attribute"` // might left empty
|
|
|
|
|
Content string `json:"content"`
|
|
|
|
|
Request string `json:"request"`
|
|
|
|
|
Ports []uint16 `json:"ports"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
@ -41,7 +42,7 @@ type GosmAdapter interface {
|
|
|
|
|
//WsContainerReceive(WsCommunicationMethod, *websocket.Conn, context.Context, func(interface{}) interface{}) (error, interface{}, interface{}, websocket.MessageType)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (r *GosmContainer) RevalueJson(dosth func(CarrierJson) CarrierJson) {
|
|
|
|
|
func (r *GosmContainer) RevalueJson(dosth func(CarrierJson) CarrierJson) { // Überarbeite den Carrier, setze ein Ergebnis ein etc.
|
|
|
|
|
(*r).CarrierJson = dosth((*r).CarrierJson)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|