X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pkg%2Fcontrol%2Ftypes.go;h=c8c09dca0f79ad0a63a57d0210d59212f8613c0f;hb=55d2a285e4914afce7492c6b4b6feebe5485210b;hp=64fd15f1fcfe67567dddc8e118fb7cc51da8167c;hpb=0d064ecdb5239a875857b5910f7f6e83f827d7a6;p=ric-plt%2Fsubmgr.git diff --git a/pkg/control/types.go b/pkg/control/types.go index 64fd15f..c8c09dc 100644 --- a/pkg/control/types.go +++ b/pkg/control/types.go @@ -20,29 +20,24 @@ package control import ( - "strconv" + "gerrit.o-ran-sc.org/r/ric-plt/e2ap/pkg/e2ap" ) -type RmrDatagram struct { - MessageType int - SubscriptionId uint16 - Payload []byte +//----------------------------------------------------------------------------- +// +//----------------------------------------------------------------------------- +type RequestId struct { + e2ap.RequestId } -type SubRouteInfo struct { - Command Action - Address string - Port uint16 - SubID uint16 +func (rid *RequestId) String() string { + return "reqid(" + rid.RequestId.String() + ")" } -type RmrEndpoint struct { - Addr string // xapp addr - Port uint16 // xapp port +type Sdlnterface interface { + Set(pairs ...interface{}) error + Get(keys []string) (map[string]interface{}, error) + GetAll() ([]string, error) + Remove(keys []string) error + RemoveAll() error } - -func (endpoint RmrEndpoint) String() string { - return endpoint.Addr + ":" + strconv.FormatUint(uint64(endpoint.Port), 10) -} - -type Action int