Skip to content

Commit

Permalink
Fix struct fields order
Browse files Browse the repository at this point in the history
Signed-off-by: Patricia Reinoso <[email protected]>
  • Loading branch information
patriciareinoso committed Jan 25, 2024
1 parent e78bc84 commit e7d887b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 16 deletions.
7 changes: 4 additions & 3 deletions context/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,13 @@ type AppSessionData struct {
// (compN/compN-subCompN/appId-%s) map to PccRule
RelatedPccRuleIds map[string]string
PccRuleIdMapToCompId map[string]string
// EventSubscription
Events map[models.AfEvent]models.AfNotifMethod
// related Session
SmPolicyData *UeSmPolicyData
// EventSubscription
Events map[models.AfEvent]models.AfNotifMethod
EventUri string

AppSessionId string
EventUri string
}

// Create new PCF context
Expand Down
22 changes: 11 additions & 11 deletions context/ue.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ import (

// key is supi
type UeContext struct {
// Ue Context
Supi string
Gpsi string
Pei string
AMPolicyData map[string]*UeAMPolicyData // use PolAssoId(ue.Supi-numPolId) as key
// Udr Ref
UdrUri string
// SMPolicy
Expand All @@ -39,6 +34,11 @@ type UeContext struct {
PolicyDataSubscriptionStore *models.PolicyDataSubscription
PolicyDataChangeStore *models.PolicyDataChangeNotification

// Ue Context
Supi string
Gpsi string
Pei string
AMPolicyData map[string]*UeAMPolicyData // use PolAssoId(ue.Supi-numPolId) as key
GroupIds []string
PolAssociationIDGenerator uint32
}
Expand All @@ -55,19 +55,19 @@ type UeAMPolicyData struct {
Guami *models.Guami
ServiveName string
// TraceReq *TraceData
ServAreaRes *models.ServiceAreaRestriction
UserLoc *models.UserLocation
TimeZone string
SuppFeat string
// about AF request
Pras map[string]models.PresenceInfo
// related to UDR Subscription Data
AmPolicyData *models.AmPolicyData // Svbscription Data
// Corresponding UE
PcfUe *UeContext
// Policy Association
Triggers []models.RequestTrigger
Rfsp int32
ServAreaRes *models.ServiceAreaRestriction
UserLoc *models.UserLocation
TimeZone string
SuppFeat string
Triggers []models.RequestTrigger
Rfsp int32
}

type UeSmPolicyData struct {
Expand Down
5 changes: 3 additions & 2 deletions factory/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,11 @@ type Configuration struct {
ServiceList []Service `yaml:"serviceList,omitempty"`
Mongodb *Mongodb `yaml:"mongodb"`

/* below config received from RoC */
// config received from RoC
DnnList map[string][]string // sst+sd os key
SlicePlmn map[string]PlmnSupportItem
PlmnList []PlmnSupportItem `yaml:"plmnList,omitempty"`

PlmnList []PlmnSupportItem `yaml:"plmnList,omitempty"`
}

type Service struct {
Expand Down

0 comments on commit e7d887b

Please sign in to comment.