X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pkg%2Fsbi%2Ftypes.go;h=d0a98abb65204d764f0c207f92260eb519fbaeb0;hb=dbb88b9d7b2cfcffd017c44ddc234c5cd364fa6f;hp=357d87c6e8108854caabd09984a3b63d2138b3bc;hpb=92162653c9741f2417d1a36ec1c211d6863d0a68;p=ric-plt%2Frtmgr.git diff --git a/pkg/sbi/types.go b/pkg/sbi/types.go index 357d87c..d0a98ab 100644 --- a/pkg/sbi/types.go +++ b/pkg/sbi/types.go @@ -18,7 +18,7 @@ */ /* Mnemonic: sbi/types.go - Abstract: Containes SBI (SouthBound Interface) specific types + Abstract: Contains SBI (SouthBound Interface) specific types Date: 16 March 2019 */ @@ -26,28 +26,28 @@ package sbi import "routing-manager/pkg/rtmgr" -type SbiEngineConfig struct { - Name string - Version string - Protocol string - Instance SbiEngine - IsAvailable bool +type EngineConfig struct { + Name string + Version string + Protocol string + Instance Engine + IsAvailable bool } -type SbiEngine interface { - Initialize(string) error - Terminate() error - DistributeAll(*[]string) error - AddEndpoint(*rtmgr.Endpoint) error - DeleteEndpoint(*rtmgr.Endpoint) error - UpdateEndpoints(*rtmgr.RicComponents) +type Engine interface { + Initialize(string) error + Terminate() error + DistributeAll(*[]string) error + AddEndpoint(*rtmgr.Endpoint) error + DeleteEndpoint(*rtmgr.Endpoint) error + UpdateEndpoints(*rtmgr.RicComponents) } type NngSocket interface { Listen(string) error Send([]byte) error - Close() error - DialOptions(string, map[string]interface{}) error + Close() error + DialOptions(string, map[string]interface{}) error } -type CreateNewNngSocketHandler func() (NngSocket,error) +type CreateNewNngSocketHandler func() (NngSocket, error)