Getter und Setter-Funktionen ergänzt

master
Klaus Wendel 8 months ago
parent fbdf531156
commit eef1a9e526

@ -38,6 +38,10 @@ type GosmAdapter interface {
RevalueJson(func(CarrierJson) CarrierJson)
ConvertJson2Buffer() error
ConvertBuffer2Json() error
SetJson(CarrierJson)
SetBuffer([]byte)
GetJson() CarrierJson
GetBuffer() []byte
//WsContainerSend(WsCommunicationMethod, *websocket.Conn, context.Context) (error, interface{})
//WsContainerReceive(WsCommunicationMethod, *websocket.Conn, context.Context, func(interface{}) interface{}) (error, interface{}, interface{}, websocket.MessageType)
}
@ -61,6 +65,22 @@ func (r *GosmContainer) ConvertBuffer2Json() (err error) {
return
}
func (r *GosmContainer) SetJson(cj CarrierJson) {
(*r).CarrierJson = cj
}
func (r *GosmContainer) GetJson() CarrierJson {
return (*r).CarrierJson
}
func (r *GosmContainer) SetBuffer(bb []byte) {
(*r).CarrierBuffer = bb
}
func (r *GosmContainer) GetBuffer() []byte {
return (*r).CarrierBuffer
}
/*
func (r *GosmContainer) WsContainerSend(method WsCommunicationMethod, conn *websocket.Conn, ctx context.Context) (err error, response interface{}) {
switch method {

Loading…
Cancel
Save