X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pkg%2Fsbi%2Ftypes.go;h=9e6fe02fa512bbed156fa1d04a2a65b5a2afdfd8;hb=2037469c7f636b15cc069694b5e7a63cb230ec9a;hp=b6dfcd53f8943ffb09d4b76efbc2b64fed723857;hpb=eb2ff0d217caf158dd15424bf70f8aa79c3742b1;p=ric-plt%2Frtmgr.git diff --git a/pkg/sbi/types.go b/pkg/sbi/types.go index b6dfcd5..9e6fe02 100644 --- a/pkg/sbi/types.go +++ b/pkg/sbi/types.go @@ -14,6 +14,10 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. + + This source code is part of the near-RT RIC (RAN Intelligent Controller) + platform project (RICP). + ================================================================================== */ /* @@ -26,28 +30,30 @@ package sbi import "routing-manager/pkg/rtmgr" -type SbiEngineConfig struct { +type EngineConfig struct { Name string Version string Protocol string - Instance SbiEngine + Instance Engine IsAvailable bool } -type SbiEngine interface { +type Engine interface { Initialize(string) error Terminate() error DistributeAll(*[]string) error AddEndpoint(*rtmgr.Endpoint) error DeleteEndpoint(*rtmgr.Endpoint) error UpdateEndpoints(*rtmgr.RicComponents) + CreateEndpoint(string,string)*rtmgr.Endpoint + DistributeToEp(*[]string, *rtmgr.Endpoint) error } -type NngSocket interface { +/*type NngSocket interface { Listen(string) error Send([]byte) error Close() error DialOptions(string, map[string]interface{}) error } -type CreateNewNngSocketHandler func() (NngSocket, error) +type CreateNewNngSocketHandler func() (NngSocket, error)*/