代码拉取完成,页面将自动刷新
package context
import "github.com/free5gc/openapi/models"
type SNssai struct {
Sst int32
Sd string
}
// Equal return true if two S-NSSAI is equal
func (s *SNssai) Equal(target *SNssai) bool {
return s.Sst == target.Sst && s.Sd == target.Sd
}
type SnssaiUPFInfo struct {
SNssai SNssai
DnnList []DnnUPFInfoItem
}
// DnnUpfInfoItem presents UPF dnn information
type DnnUPFInfoItem struct {
Dnn string
DnaiList []string
PduSessionTypes []models.PduSessionType
}
// ContainsDNAI return true if the this dnn Info contains the specify DNAI
func (d *DnnUPFInfoItem) ContainsDNAI(targetDnai string) bool {
if targetDnai == "" {
return d.DnaiList == nil || len(d.DnaiList) == 0
}
for _, dnai := range d.DnaiList {
if dnai == targetDnai {
return true
}
}
return false
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。