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).
+
==================================================================================
*/
/*
Mnemonic: mangos.go
- Abstract:
+ Abstract:
Date: 3 May 2019
*/
type MangosMessage struct {
Header []byte
- Body []byte
- Pipe MangosPipe
- bbuf []byte
- hbuf []byte
- bsize int
- pool interface {}
+ Body []byte
+ Pipe MangosPipe
+ bbuf []byte
+ hbuf []byte
+ bsize int
+ pool interface{}
}
type MangosProtocolInfo struct {
// Mangos Listener Stub
type MangosListener struct {
-
}
func (l MangosListener) Listen() error {
return nil
}
-func (l MangosListener) GetOption(s string) (interface{},error) {
+func (l MangosListener) GetOption(s string) (interface{}, error) {
return nil, nil
}
// Mangos Dialer Stub
type MangosDialer struct {
- }
+}
func (d MangosDialer) Open() error {
return nil
return nil
}
-func (d MangosDialer) GetOption(s string) (interface{},error) {
+func (d MangosDialer) GetOption(s string) (interface{}, error) {
return nil, nil
}
// Mangos Context Stub
type MangosContext struct {
-
}
func (c MangosContext) Close() error {
return nil
}
-func (c MangosContext) GetOption(s string) (interface{},error) {
+func (c MangosContext) GetOption(s string) (interface{}, error) {
return nil, nil
}
}
func (c MangosContext) Recv() ([]byte, error) {
- return make([]byte,0), nil
+ return make([]byte, 0), nil
}
func (c MangosContext) SendMsg(*MangosMessage) error {
// Mangos Pipe Stub
type MangosPipe struct {
-
}
func (p MangosPipe) ID() uint32 {
return ""
}
-func (p MangosPipe) GetOption(s string) (interface{},error) {
+func (p MangosPipe) GetOption(s string) (interface{}, error) {
return nil, nil
}
// Mangos Socket Stub
type MangosSocket struct {
- GenerateSocketCloseError bool
- GenerateSocketSendError bool
- GenerateSocketDialError bool
+ GenerateSocketCloseError bool
+ GenerateSocketSendError bool
+ GenerateSocketDialError bool
GenerateSocketListenError bool
}
}
func (s MangosSocket) Recv() ([]byte, error) {
- return make([]byte,0), nil
+ return make([]byte, 0), nil
}
func (s MangosSocket) SendMsg(*MangosMessage) error {
return nil
}
-func (s MangosSocket) GetOption(t string) (interface{},error) {
+func (s MangosSocket) GetOption(t string) (interface{}, error) {
return nil, nil
}
// Mangos ProtocolPipe Stub
type MangosProtocolPipe struct {
-
}
func (p MangosProtocolPipe) ID() uint32 {
// Mangos ProtocolContext Stub
type MangosProtocolContext struct {
-
}
func (p MangosProtocolContext) Close() error {