Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SMF There is a memory increase in SMF due to the IDGenerator's leakage to Allocate #11

Closed
wants to merge 259 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
259 commits
Select commit Hold shift + click to select a range
aed4a59
Find branching points done
Dec 28, 2019
cb99204
Merged in feature/FR5GC-854-calculate-ulcl-branching-point (pull requ…
Feb 13, 2020
1d2c1d8
SDF filter rule test
Feb 3, 2020
6a7bc43
Add branching point cheching in PfcpSessionEstablishmentResponse
Feb 5, 2020
11f0c67
Refactor response queue
Feb 5, 2020
fc14537
SDFFilter msg send successfully
Feb 5, 2020
cdf995b
Adjust to golint style
Feb 5, 2020
a9cb2a7
Change the flow of checking branching points
Feb 8, 2020
62fcc35
Add API in ue_path.go for keeping Endpoint Info
Feb 8, 2020
72d7a26
Add Branching Point Manager
Feb 10, 2020
8317499
Add forwarding parameters for branching point
Feb 10, 2020
432acc2
Send uplink pfcp rule to each upf successfully, but still have some i…
Feb 11, 2020
4c89d9f
add ue route to do
turtle11311 Feb 13, 2020
1b26b25
Merged in feature/FR5GC-855-build-sdf-filter-request (pull request #5)
Feb 13, 2020
890e712
Add handle pdu establishment accept pdu type
turtle11311 Feb 13, 2020
3684c05
PDU Session Establishment Accept PDU Address
turtle11311 Feb 13, 2020
84e3c9a
Merged in bugfix/FR5GC-851-pdu-session-establishment-accept-without-p…
Feb 14, 2020
496b704
new datapath struct
turtle11311 Feb 14, 2020
013d943
Merged in feature/FR5GC-607-refactor-smcontext-userplane (pull reques…
Feb 14, 2020
839cd98
Allocate ID for each UPF
Feb 15, 2020
3bc17e3
change the upf id type from uint32 to string
Feb 17, 2020
0cfff1e
Merged in feature/FR5GC-856-upf-id-generation (pull request #7)
Feb 21, 2020
06e19ed
Refactor pdr/far/bar id management.
Feb 13, 2020
2f6bfc4
Add TEID Management
Feb 13, 2020
045ed5d
ID management done and verified
Feb 13, 2020
b6999a8
Modify FAR BAR test case
Feb 13, 2020
1dbbcb4
Merged in FR5GC-849-refactor-pfcp-rules-id-managem (pull request #1)
Feb 21, 2020
0ca5320
Add QoSRule in PDU Establishment
turtle11311 Feb 25, 2020
628431f
Merged in bugfix/FR5GC-863-pdu-establishment-accept-no-qos (pull requ…
Feb 25, 2020
428102c
make teidPool map
turtle11311 Feb 25, 2020
50cfe48
Merged in bugfix/FR5GC-869-teid-allcation-error-in-registration (pull…
Feb 25, 2020
a1967f1
Allocate ID for each UPF
Feb 15, 2020
ddeaf6e
rename UPFInformation to UPF
turtle11311 Feb 16, 2020
2ff3217
Add ue_datapath.go
Feb 17, 2020
72622b9
add status for upf and change related api
Feb 19, 2020
5545ee5
NewUEDataGraph done and verified
Feb 19, 2020
0293c9b
Refactor finding branching point
Feb 19, 2020
754fd87
change output log
Feb 19, 2020
44d2fbd
move api from ue_datapath.go to datapath.go
Feb 19, 2020
74fb4a1
Change print Graph to trace level
Feb 19, 2020
32970af
Allocate ID for each UPF
Feb 15, 2020
a230246
Refactor pdr/far/bar id management.
Feb 13, 2020
089c292
ID management done and verified
Feb 13, 2020
c734d13
rebase to FR5GC-857 and fix confict
Feb 22, 2020
0c90198
Caculate default path for different dnn
Feb 23, 2020
f9f3f59
Add testcase for Generate Default Path. Default Path done and verified
Feb 23, 2020
c1662b7
Fix IP length bug in processUPTopology
Feb 23, 2020
1b46368
Seperate flow for pre-configed ue and un pre-configed ue
Feb 23, 2020
d341969
Finish Constructing UPF default Topo
Feb 24, 2020
0df4fb5
Add test case for GetDefaultUPFTopoByDNN
Feb 24, 2020
0d3a41a
finish uplink user plane message and management
Feb 24, 2020
f4c94be
Add topo_manager_test.go
Feb 24, 2020
1c01ac6
SetUpUplinkUserPlane test success
Feb 25, 2020
09a038f
fix bug of SelectUPFByDnn
Feb 25, 2020
7ff51ff
fix topo_manager_test.go
Feb 26, 2020
e266aa8
SetUp new DownLink UserPlane
Feb 26, 2020
670327e
Fix topo_manafer_test.go for correct pfcp packet form
Feb 26, 2020
a575445
Add DLDataPathLinkForPSA for special case in DataPathNode
Feb 26, 2020
c64876e
Add UPFRoot to UPTunnel
Feb 27, 2020
78476ff
Merged in feature/FR5GC-858-move-nsmf_pdusession-to-new-userplane (pu…
Feb 27, 2020
b160c05
Fix dl PDR LocalFTEID IE error
Feb 29, 2020
87c9300
Merged in bugfix/FR5GC-890-smf-dl-pdr-ie-error (pull request #12)
Mar 2, 2020
8a87f10
rename DataPathLink
turtle11311 Mar 3, 2020
95175d5
Merged in feature/FR5GC-895-move-struct-datapathnode (pull request #13)
Mar 3, 2020
2ee330f
restore old pfcp send message
turtle11311 Mar 9, 2020
d18d91a
Merged in bugfix/FR5GC-907-fix-teid-in-pfcp-and-ngap (pull request #14)
Mar 9, 2020
03e1fb9
add version and CHANGELOG
dobie-chiu Mar 10, 2020
01ea75c
Merged in feature/FR5GC-802-show-network-function-version (pull reque…
dobie-chiu Mar 11, 2020
b1391d5
complete pdu session release
Mar 18, 2020
1f01494
fix pdu session hard code issue
Mar 18, 2020
6e0fd05
Merged in bugfix/FR5GC-923-smf-pdu-session-release-issue (pull reques…
Mar 20, 2020
59e24a1
rename tbl to table
turtle11311 Mar 23, 2020
7cfd908
Merged in feature/FR5GC-928-remane-tbl-to-table (pull request #17)
Mar 23, 2020
895c8e8
PCF Selection for SM Context
turtle11311 Mar 25, 2020
666d827
get smData from UDM
turtle11311 Mar 26, 2020
55aac7e
add SM Policy Association
turtle11311 Mar 27, 2020
192f765
Merged in feature/FR5GC-929-setup-sm-policy-association-with-pcf (pul…
Mar 27, 2020
3795f60
Add OAM API: Get ue pdu session info
jay16213 Mar 22, 2020
fbc915e
modify return type
jay16213 Mar 23, 2020
ae01af4
fix data type
jay16213 Mar 28, 2020
f49b7a1
Merged in feature/FR5GC-927-backend-api-at-smf (pull request #18)
jay16213 Mar 30, 2020
52c262b
dynamically register nf service to nrf
jay16213 Mar 30, 2020
41d4041
remove debug log
jay16213 Mar 30, 2020
b33dd94
Merged in feature/FR5GC-950-backend-proxy-at-webconsole (pull request…
jay16213 Mar 30, 2020
e8ba81b
Fix dl PDR LocalFTEID IE error
Feb 27, 2020
84e85df
Finish Step 3 of ULCL procedure(select ULCL)
Mar 1, 2020
c921c2a
Re-Design BPManager and Re-Design ULCL procedure
Mar 2, 2020
2c4aa34
Establishing PSA2
Mar 2, 2020
f0b42ff
Finish Establishing PSA2
Mar 4, 2020
0acae0b
Intergrate original prcedure with Establish PSA1
Mar 5, 2020
10daa96
Intergrate original prcedure with Establish PSA2
Mar 5, 2020
3efd21a
Establishing ULCL
Mar 6, 2020
2c4f4be
Finish establishing ULCL
Mar 7, 2020
fd3aaef
Integrate EstablishULCL with the original procedure
Mar 7, 2020
ce1f028
Finish Update PSA2 Downlink
Mar 8, 2020
a4e45fe
Integrate original procedure with update downlink PSA2
Mar 8, 2020
6bc6b47
rename DataLinkToAn and DataLinkToDn
Mar 11, 2020
40671cd
Fix pfcp malformed issue
Mar 12, 2020
2c46464
test ulcl
Mar 20, 2020
8fd337f
Rename Tbl to Table
turtle11311 Mar 1, 2020
f0ccb14
Rename pfcp rule list name
turtle11311 Mar 28, 2020
4a52a38
move stdout to logger out
turtle11311 Mar 28, 2020
37d5c89
rename upf_node.go to upf.go
turtle11311 Mar 29, 2020
d070947
rename id to ID
turtle11311 Mar 29, 2020
4e21809
add check in pfcp association handler
turtle11311 Mar 29, 2020
44ca29c
fix Decision typo
turtle11311 Mar 29, 2020
70c335e
remove fmt.Print in test
turtle11311 Mar 29, 2020
a03f3ca
default path generate
turtle11311 Mar 30, 2020
45e6897
calculate default Path
turtle11311 Mar 30, 2020
fb27246
Send default Path
turtle11311 Mar 30, 2020
09f32d9
ULCL trigger
turtle11311 Mar 30, 2020
e8344b1
fix old userplane
turtle11311 Mar 30, 2020
1146c65
fix single UPF registration
turtle11311 Mar 30, 2020
e00c48e
fix AN DL error
turtle11311 Mar 30, 2020
c1e3bc3
fix NOCP in Registration
turtle11311 Mar 30, 2020
b5bd702
Check allocate PDR success
turtle11311 Mar 31, 2020
ed8398a
ULCL config
turtle11311 Mar 31, 2020
1831f5f
move PDUSessionRelease to new userplane
turtle11311 Mar 31, 2020
43ee122
Merged in bugfix/FR5GC-961-smf-panic-when-test-testpdusession (pull r…
Mar 31, 2020
db467d5
Change to Warning level
Mar 31, 2020
bcb114a
Merged in hotfix/FR5GC-960-change-log-level-to-warning (pull request …
Mar 31, 2020
92195f1
Add seqNum to queue
turtle11311 Mar 31, 2020
8adcebb
Merged in bugfix/FR5GC-961-smf-panic-when-test-testpdusession (pull r…
Mar 31, 2020
2b2e5fc
fix DeletionRequest seqNum alloc error
turtle11311 Mar 31, 2020
3009c4a
Merged in bugfix/FR5GC-961-smf-panic-when-test-testpdusession (pull r…
Mar 31, 2020
325b9b6
SMContextStatusNotification fix
turtle11311 Mar 31, 2020
694b797
Merged in bugfix/FR5GC-1017-testpdusessionreleaserequest- (pull reque…
Mar 31, 2020
63dd47c
Missing one DL OHC/ OHC ForwardingParameter error
Mar 31, 2020
2555efa
Fix default PSA downlink PDR teid error / BP UpdatePSA1FAR error
Apr 1, 2020
62b9561
redundent add link
turtle11311 Apr 1, 2020
05ae354
fix wrong RAN TEID
Apr 2, 2020
4a46e13
Merged in bugfix/FR5GC-1024-smf-ran-ul-teid-is-wrong (pull request #28)
Apr 2, 2020
36bf7b0
fix wrong RAN TEID
Apr 2, 2020
0b9656b
Merged in bugfix/FR5GC-1024-smf-ran-ul-teid-is-wrong (pull request #29)
Apr 2, 2020
cc49fef
Finish UEIP workaround
Apr 2, 2020
55edea7
Merged in hotfix/FR5GC-1030-workaround-for-fr5gc-1029-ue- (pull reque…
Apr 2, 2020
8ce34a7
read snssai_infomation
turtle11311 Apr 8, 2020
2d71892
Merged in bugfix/FR5GC-1036-smf-configurable-s-nssai (pull request #31)
Apr 9, 2020
a1d2576
Do not return pointer UPFRoot in OAM
Apr 9, 2020
77d44cc
comment out UpfRoot
Apr 9, 2020
83364b0
Merged in bugfix/FR5GC-1033-oam---smf-stack-overflow-bug (pull reques…
Apr 9, 2020
eafe18f
Deregister with NRF when SMF shutdown
turtle11311 Apr 21, 2020
06a6956
Merged in feature/FR5GC-1094-smf-deregistration-to-nrf (pull request …
Apr 21, 2020
536f0ed
handle N2SMinfo PDU_RES_REL_RSP
Apr 23, 2020
229582c
Merged in hotfix/FR5GC-1107-smf-didnt-handle-n2sminfo-pdu (pull reque…
Apr 23, 2020
29af395
Correct the order of step 10b and step 11 of PDU Session Release
Apr 23, 2020
8c66c02
Move UpCnxState assignment
Apr 23, 2020
52affaa
Merged in hotfix/FR5GC-1107-smf-didnt-handle-n2sminfo-pdu (pull reque…
Apr 23, 2020
fb5e217
Modify log info for http2 server setup
Apr 23, 2020
c308cca
Merged in feature/FR5GC-1056-error-handling-at-starting-ht (pull requ…
Apr 23, 2020
c15c916
Change "gofree5gc" to "free5gc"
Apr 23, 2020
436ce3d
Merged in feature/FR5GC-1109-rename-project-from-gofree5gc (pull requ…
Apr 24, 2020
e50b0e2
rename EventExposure
Apr 23, 2020
0c26eb5
rename PDUSession to pdusession
Apr 23, 2020
c619d99
rename OAM to oam
Apr 23, 2020
0835dc7
rename smf_consumer to consumer
Apr 23, 2020
3ad446d
rename smf_context to context
Apr 23, 2020
5797b78
rename smf_handler to handler
Apr 23, 2020
7e3f6b7
rename smf_message to message
Apr 23, 2020
2d0a190
rename smf_pfcp to pfcp
Apr 23, 2020
416b1c4
rename pfcp_handler to handler
Apr 23, 2020
1f6cfd6
rename pfcp_message to message
Apr 23, 2020
b92ec09
rename pfcp_udp to udp
Apr 23, 2020
e365450
rename pfcp_util to util
Apr 23, 2020
268080f
rename smf_producer to producer
Apr 23, 2020
af71bf5
rename smf_service to service
Apr 23, 2020
00bb426
rename smf_util to util
Apr 23, 2020
325eb07
Rebase: for branch 1109
Apr 24, 2020
0053ca2
Merged in feature/FR5GC-1106-smf-go-coding-style (pull request #37)
Apr 27, 2020
75b300a
Output log in files
Apr 27, 2020
e97ff97
add entry point
Apr 14, 2020
131bb98
Finish release PDU session
Apr 15, 2020
ff30035
handle PDUSessionRelease_DUE_TO_DUP_PDU_ID
Apr 21, 2020
b37a7f7
Change Info level log to Trace level log
Apr 24, 2020
828b621
Modify smf_consumer to consumer
Apr 27, 2020
11caeeb
Merged in feature/FR5GC-865-support-duplicated-pdu-session (pull requ…
Apr 27, 2020
293890e
Merged in feature/FR5GC-1089-logger-support-output-to-file (pull requ…
Apr 28, 2020
b76a4c2
refactor file name
Apr 28, 2020
f21e1cc
pass go-lint
Apr 28, 2020
e2f473f
Merged in feature/FR5GC-1106-refactor-smf-change-file-name (pull requ…
Apr 29, 2020
cfaeae2
refactor(smf): remove unused PFCP rule init
turtle11311 May 6, 2020
80d3ec3
fix(smf): release sm context panic error
turtle11311 May 6, 2020
a613c30
Merged in bugfix/FR5GC-1155-smf-failed-in-smcontext-release (pull req…
May 6, 2020
95a2d40
fix(smf): fix A-UPF use NodeID not UPIP in DL
turtle11311 May 6, 2020
54a1783
Merged in bugfix/FR5GC-1154-a-upf-outer-head-creation-ip (pull reques…
May 6, 2020
dee9b68
feat(smf): merge config model
turtle11311 May 12, 2020
a0c02fb
Merged in feature/FR5GC-1169-merge-config-model-to-one-file (pull req…
May 13, 2020
bae808c
fix(smf): fix ulcl workaround in release v3.0.0
May 6, 2020
f247552
Merged in bugfix/FR5GC-1137-fix-ulcl-workaround-in-releas (pull reque…
May 13, 2020
56dad13
feat(smf): server support h2c
turtle11311 May 13, 2020
abebe55
Merged in feature/FR5GC-1129-sbi-port-h2c-code (pull request #47)
May 14, 2020
93f63a7
Designing PFCP Context
May 17, 2020
689e488
Finish PFCP Session Context
May 19, 2020
fc886df
verify pfcp session context
May 19, 2020
59cd54a
modify client import path
turtle11311 May 21, 2020
de51279
Merged in FR5GC-1182-merge-client-code-to-openapi (pull request #49)
May 21, 2020
55a5b04
Merged in feature/FR5GC-1104-smf-pfcp-session-context (pull request #48)
Jun 1, 2020
fc61076
fix(smf): correct the qos rule length to two bytes
turtle11311 Jun 3, 2020
f46bbcd
Merged in bugfix/FR5GC-1206-qos-rule-length-length-error (pull reques…
Jun 3, 2020
4f1d8f6
feat(smf): add smpolicy update handler
turtle11311 Jun 10, 2020
8ded39e
fix(smf): smpolicy update uri
turtle11311 Jun 10, 2020
caea564
feat(smf): add sm policy update notify handle
turtle11311 Jun 17, 2020
7790b47
refactor(smf): handle sm policy decision
turtle11311 Jun 17, 2020
9aeb3fe
Merged in feature/FR5GC-1199-update-smpolicy-from-pcf-notify (pull re…
Jun 17, 2020
9dda9dd
feat(smf): finish and verify reliable delivery of PFCP Request
May 13, 2020
39f8bda
feat(pfcp): verify reliable delivery of pfcp rsp
May 17, 2020
5880406
Merged in feature/FR5GC-1105-pfcp-transaction-management (pull reques…
Jun 18, 2020
438a193
fix(smf): log level not properly set
turtle11311 Jun 19, 2020
f76f9e0
Merged in bugfix/FR5GC-1247-logger-level-not-properly-set (pull reque…
Jun 19, 2020
0d19a98
feat(smf): Change UEDataGraph to UEPreConfigPaths
Jun 19, 2020
659ffc8
feat(smf): Remove PDR/FAR before releasing PDU session
Jun 22, 2020
2eaffac
refactor(smf): HandlePDUSessionSMContextUpdate UP Topo refactor
Jun 24, 2020
094a333
refactor(smf): HandlePDUSessionSMContextRelease UP Topo refactor
Jun 24, 2020
7334fb4
Single UPF build pass
Jun 29, 2020
de1236e
Add ULCLSupport detect
Jun 29, 2020
093587c
pass all Single UPF testcase
Jun 29, 2020
71f4fe6
rename SendPfcpSessionEstablishmentRequestForULCL to SendPfcpSessionE…
Jun 29, 2020
4e995f8
refactor(smf): UserPlane Topo Refactor finished (multiple UPFs)
Jun 30, 2020
8ed8f68
Multiple UPF build pass
Jun 30, 2020
59f5017
pass test_ulcl.sh but still have some issue
Jul 1, 2020
4bd89a0
Multiple UPFs ping successfully
Jul 2, 2020
9bd154a
Add workaround for waiting PFCP response
Jul 2, 2020
7b77b39
remove PFCP waiting workaround
Jul 2, 2020
8b75d61
Merged in feature/FR5GC-1221-user-plane-topology-refactor (pull reque…
Jul 9, 2020
01fcb20
featrue(smf): add FSM in ulcl procedure
Jul 3, 2020
c28fef3
feature(smf): correct ulcl produre, verified
Jul 3, 2020
a6d4a20
Parse DNN config
Jul 9, 2020
a8ac193
rename EstablishingPSA2
turtle11311 Jul 9, 2020
3dde5e2
Handle PCO in gsm_handler
Jul 9, 2020
7178cb0
gsm_build handle pco
Jul 13, 2020
8c457b1
pco verified
Jul 13, 2020
c2ca941
Merged in feature/FR5GC-1156-correct-ulcl-procedure-wait-f (pull requ…
Jul 13, 2020
d9f5527
Merged in feature/FR5GC-1257-forum-issue-124-support-dns-a (pull requ…
Jul 13, 2020
3ea995e
bug(smf): handle PDUSessionType IPv4v6
Jul 5, 2020
acb6bd9
gsm_build handke PDUSession type IPv4v6
Jul 13, 2020
e73277c
Merged in bugfix/FR5GC-1256-github-issue-72-smf-return-in (pull reque…
Jul 13, 2020
ec90889
fix wrong rebase
Jul 13, 2020
529a5f5
Merged in bugfix/FR5GC-1256-fix-incorrect-rebase (pull request #58)
Jul 13, 2020
cf6ead7
feat(smf): Modify SMPolicyUpdateNotify handler
tim-ywliu Jul 13, 2020
e0103b9
Merged in feature/FR5GC-1279-support-nsmf_eventexposure (pull request…
tim-ywliu Jul 13, 2020
7ea2dba
fix(smf): fix missing Forwarding Parameters IE in PFCP Establishment …
turtle11311 Jul 16, 2020
fc79ac2
Merged in bugfix/FR5GC-1285-github-issue-44-missing-forwa (pull reque…
Jul 16, 2020
ad1d1b6
fix(smf): missing OuterHeaderCreation IE in ./test_ulcl.sh
Jul 16, 2020
2ab0cab
Merged in bugfix/FR5GC-1285-github-issue-44-missing-forwa (pull reque…
Jul 16, 2020
cbebd8c
There is a memory increase in SMF due to the IDGenerator's leakage to…
matsumu-y Jan 12, 2021
073e7dc
There is a memory increase in SMF due to the IDGenerator's leakage to…
matsumu-y Jan 12, 2021
fbb3ec2
Release free5GC v3.0.4
Jan 15, 2021
91e87d4
Release free5GC v3.0.5
Jan 16, 2021
feec5f0
Merge github history
Jan 18, 2021
517c099
Merge remote-tracking branch 'upstream/main' into bugfix/7-idgenerato…
kishiguro Jan 19, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
309 changes: 309 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,309 @@
# This file contains all available configuration options
# with their default values.
# options for analysis running
run:
# default concurrency is a available CPU number
concurrency: 4
# timeout for analysis, e.g. 30s, 5m, default is 1m
timeout: 1m
# exit code when at least one issue was found, default is 1
issues-exit-code: 1
# include test files or not, default is true
tests: true
# list of build tags, all linters use it. Default is empty list.
build-tags:
# which dirs to skip: issues from them won't be reported;
# can use regexp here: generated.*, regexp is applied on full path;
# default value is empty list, but default dirs are skipped independently
# from this option's value (see skip-dirs-use-default).
# "/" will be replaced by current OS file path separator to properly work
# on Windows.
skip-dirs:
# default is true. Enables skipping of directories:
# vendor$, third_party$, testdata$, examples$, Godeps$, builtin$
skip-dirs-use-default: true
# which files to skip: they will be analyzed, but issues from them
# won't be reported. Default value is empty list, but there is
# no need to include all autogenerated files, we confidently recognize
# autogenerated files. If it's not please let us know.
# "/" will be replaced by current OS file path separator to properly work
# on Windows.
skip-files:
- "api_.*\\.go$"
- "model_.*\\.go$"
- "routers.go"
- "client.go"
- "configuration.go"
- "nas.go"
# by default isn't set. If set we pass it to "go list -mod={option}". From "go help modules":
# If invoked with -mod=readonly, the go command is disallowed from the implicit
# automatic updating of go.mod described above. Instead, it fails when any changes
# to go.mod are needed. This setting is most useful to check that go.mod does
# not need updates, such as in a continuous integration and testing system.
# If invoked with -mod=vendor, the go command assumes that the vendor
# directory holds the correct copies of dependencies and ignores
# the dependency descriptions in go.mod.
#modules-download-mode: readonly|release|vendor
# Allow multiple parallel golangci-lint instances running.
# If false (default) - golangci-lint acquires file lock on start.
allow-parallel-runners: true
# output configuration options
output:
# colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number"
format: colored-line-number
# print lines of code with issue, default is true
print-issued-lines: true
# print linter name in the end of issue text, default is true
print-linter-name: true
# make issues output unique by line, default is true
uniq-by-line: true
# all available settings of specific linters
linters-settings:
errcheck:
# report about not checking of errors in type assertions: `a := b.(MyStruct)`;
# default is false: such cases aren't reported by default.
check-type-assertions: false
# report about assignment of errors to blank identifier: `num, _ := strconv.Atoi(numStr)`;
# default is false: such cases aren't reported by default.
check-blank: true
# [deprecated] comma-separated list of pairs of the form pkg:regex
# the regex is used to ignore names within pkg. (default "fmt:.*").
# see https://github.com/kisielk/errcheck#the-deprecated-method for details
#ignore: fmt:.*,io/ioutil:^Read.*
# path to a file containing a list of functions to exclude from checking
# see https://github.com/kisielk/errcheck#excluding-functions for details
#exclude: /path/to/file.txt
funlen:
lines: 60
statements: 40
gocognit:
# minimal code complexity to report, 30 by default (but we recommend 10-20)
min-complexity: 10
nestif:
# minimal complexity of if statements to report, 5 by default
min-complexity: 4
goconst:
# minimal length of string constant, 3 by default
min-len: 3
# minimal occurrences count to trigger, 3 by default
min-occurrences: 3
gocritic:
# Which checks should be enabled; can't be combined with 'disabled-checks';
# See https://go-critic.github.io/overview#checks-overview
# To check which checks are enabled run `GL_DEBUG=gocritic golangci-lint run`
# By default list of stable checks is used.
enabled-checks:
#- rangeValCopy
# Which checks should be disabled; can't be combined with 'enabled-checks'; default is empty
disabled-checks:
- regexpMust
# Enable multiple checks by tags, run `GL_DEBUG=gocritic golangci-lint run` to see all tags and checks.
# Empty list by default. See https://github.com/go-critic/go-critic#usage -> section "Tags".
enabled-tags:
- performance
disabled-tags:
- experimental
settings: # settings passed to gocritic
captLocal: # must be valid enabled check name
paramsOnly: true
rangeValCopy:
sizeThreshold: 32
gocyclo:
# minimal code complexity to report, 30 by default (but we recommend 10-20)
min-complexity: 10
godox:
# report any comments starting with keywords, this is useful for TODO or FIXME comments that
# might be left in the code accidentally and should be resolved before merging
keywords: # default keywords are TODO, BUG, and FIXME, these can be overwritten by this setting
#- TODO
- FIXME
- BUG
#- NOTE
#- OPTIMIZE # marks code that should be optimized before merging
#- HACK # marks hack-arounds that should be removed before merging
- XXX # Fatal! Important problem
gofmt:
# simplify code: gofmt with `-s` option, true by default
simplify: true
goimports:
# put imports beginning with prefix after 3rd-party packages;
# it's a comma-separated list of prefixes
local-prefixes: github.com/org/project
golint:
# minimal confidence for issues, default is 0.8
min-confidence: 0.8
gomnd:
settings:
mnd:
# the list of enabled checks, see https://github.com/tommy-muehle/go-mnd/#checks for description.
checks: argument,case,condition,operation,return,assign
gomodguard:
allowed:
modules: # List of allowed modules
# - gopkg.in/yaml.v2
domains: # List of allowed module domains
# - golang.org
blocked:
modules: # List of blocked modules
# - github.com/uudashr/go-module: # Blocked module
# recommendations: # Recommended modules that should be used instead (Optional)
# - golang.org/x/mod
# reason: "`mod` is the official go.mod parser library." # Reason why the recommended module should be used (Optional)
versions: # List of blocked module version constraints
# - github.com/mitchellh/go-homedir: # Blocked module with version constraint
# version: "< 1.1.0" # Version constraint, see https://github.com/Masterminds/semver#basic-comparisons
# reason: "testing if blocked version constraint works." # Reason why the version constraint exists. (Optional)
govet:
# report about shadowed variables
check-shadowing: true
# settings per analyzer
settings:
printf: # analyzer name, run `go tool vet help` to see all analyzers
funcs: # run `go tool vet help printf` to see available settings for `printf` analyzer
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Infof
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Warnf
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Errorf
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Fatalf
# enable or disable analyzers by name
enable:
- atomicalign
enable-all: false
disable:
- shadow
disable-all: false
depguard:
list-type: blacklist
include-go-root: false
packages:
- github.com/sirupsen/logrus
packages-with-error-message:
# specify an error message to output when a blacklisted package is used
- github.com/sirupsen/logrus: "logging is allowed only by logutils.Log"
lll:
# max line length, lines longer will be reported. Default is 120.
# '\t' is counted as 1 character by default, and can be changed with the tab-width option
line-length: 120
# tab width in spaces. Default to 1.
tab-width: 1
maligned:
# print struct with more effective memory layout or not, false by default
suggest-new: true
nakedret:
# make an issue if func has more lines of code than this setting and it has naked returns; default is 30
max-func-lines: 30
testpackage:
# regexp pattern to skip files
skip-regexp: (export|internal)_test\.go
unused:
# treat code as a program (not a library) and report unused exported identifiers; default is false.
# XXX: if you enable this setting, unused will report a lot of false-positives in text editors:
# if it's called for subdir of a project it can't find funcs usages. All text editor integrations
# with golangci-lint call it on a directory with the changed file.
check-exported: false
whitespace:
multi-if: false # Enforces newlines (or comments) after every multi-line if statement
multi-func: false # Enforces newlines (or comments) after every multi-line function signature
gci:
local-prefixes: "bitbucket.org"
misspell:
#locale: US
ignore-words:
custom:
# Each custom linter should have a unique name.

linters:
enable:
- gofmt
- govet
- errcheck
- staticcheck
- unused
- gosimple
- structcheck
- varcheck
- ineffassign
- deadcode
- typecheck
# Additional
- lll
- godox
#- gomnd
#- goconst
# - gocognit
# - maligned
# - nestif
# - gomodguard
- nakedret
- gci
- misspell
- gofumpt
- whitespace
- unconvert
- predeclared
- noctx
- dogsled
- bodyclose
- asciicheck
#- stylecheck
# - unparam
#- wsl

#disable-all: false
fast: true
issues:
# List of regexps of issue texts to exclude, empty list by default.
# But independently from this option we use default exclude patterns,
# it can be disabled by `exclude-use-default: false`. To list all
# excluded by default patterns execute `golangci-lint run --help`
exclude:
# Excluding configuration per-path, per-linter, per-text and per-source
exclude-rules:
# Exclude some linters from running on tests files.
# Independently from option `exclude` we use default exclude patterns,
# it can be disabled by this option. To list all
# excluded by default patterns execute `golangci-lint run --help`.
# Default value for this option is true.
exclude-use-default: false
# The default value is false. If set to true exclude and exclude-rules
# regular expressions become case sensitive.
exclude-case-sensitive: false
# The list of ids of default excludes to include or disable. By default it's empty.
include:
#- EXC0002 # disable excluding of issues about comments from golint
# Maximum issues count per one linter. Set to 0 to disable. Default is 50.
#max-issues-per-linter: 0
# Maximum count of issues with the same text. Set to 0 to disable. Default is 3.
#max-same-issues: 0
# Show only new issues: if there are unstaged changes or untracked files,
# only those changes are analyzed, else only changes in HEAD~ are analyzed.
# It's a super-useful option for integration of golangci-lint into existing
# large codebase. It's not practical to fix all existing issues at the moment
# of integration: much better don't allow issues in new code.
# Default is false.
new: false
# Show only new issues created after git revision `REV`
new-from-rev: ""
# Show only new issues created in git patch with set file path.
#new-from-patch: path/to/patch/file
severity:
# Default value is empty string.
# Set the default severity for issues. If severity rules are defined and the issues
# do not match or no severity is provided to the rule this will be the default
# severity applied. Severities should match the supported severity names of the
# selected out format.
# - Code climate: https://docs.codeclimate.com/docs/issues#issue-severity
# - Checkstyle: https://checkstyle.sourceforge.io/property_types.html#severity
# - Github: https://help.github.com/en/actions/reference/workflow-commands-for-github-actions#setting-an-error-message
default-severity: error
# The default value is false.
# If set to true severity-rules regular expressions become case sensitive.
case-sensitive: false
# Default value is empty list.
# When a list of severity rules are provided, severity information will be added to lint
# issues. Severity rules have the same filtering capability as exclude rules except you
# are allowed to specify one matcher per severity rule.
# Only affects out formats that support setting severity information.
rules:
- linters:
- gomnd
severity: ignore
11 changes: 6 additions & 5 deletions callback/api_default.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@
package callback

import (
"free5gc/lib/http_wrapper"
"free5gc/lib/openapi"
"free5gc/lib/openapi/models"
"free5gc/src/smf/logger"
"free5gc/src/smf/producer"
"net/http"

"github.com/gin-gonic/gin"

"github.com/free5gc/http_wrapper"
"github.com/free5gc/openapi"
"github.com/free5gc/openapi/models"
"github.com/free5gc/smf/logger"
"github.com/free5gc/smf/producer"
)

// SubscriptionsPost -
Expand Down
6 changes: 3 additions & 3 deletions callback/routers.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
package callback

import (
"free5gc/lib/logger_util"
"free5gc/src/smf/logger"

"github.com/gin-gonic/gin"

"github.com/free5gc/logger_util"
"github.com/free5gc/smf/logger"
)

// Route is the information for every URI.
Expand Down
Loading