1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

feat: add endpoint compatible to github readme stats (resolve #65)

This commit is contained in:
Ferdinand Mütsch 2021-02-06 22:40:54 +01:00
parent fca12f522f
commit 6b1f1c1360
6 changed files with 316 additions and 304 deletions

View File

@ -1,7 +1,18 @@
mode: set
github.com/muety/wakapi/models/language_mapping.go:11.42,13.2 1 0
github.com/muety/wakapi/models/language_mapping.go:15.51,17.2 1 0
github.com/muety/wakapi/models/language_mapping.go:19.52,21.2 1 0
github.com/muety/wakapi/models/heartbeats.go:7.31,9.2 1 0
github.com/muety/wakapi/models/heartbeats.go:11.41,13.2 1 0
github.com/muety/wakapi/models/heartbeats.go:15.36,17.2 1 0
github.com/muety/wakapi/models/heartbeats.go:19.43,22.2 2 0
github.com/muety/wakapi/models/heartbeats.go:24.41,26.18 1 0
github.com/muety/wakapi/models/heartbeats.go:29.2,29.16 1 0
github.com/muety/wakapi/models/heartbeats.go:26.18,28.3 1 0
github.com/muety/wakapi/models/heartbeats.go:32.40,34.18 1 0
github.com/muety/wakapi/models/heartbeats.go:37.2,37.24 1 0
github.com/muety/wakapi/models/heartbeats.go:34.18,36.3 1 0
github.com/muety/wakapi/models/interval.go:5.47,6.23 1 0
github.com/muety/wakapi/models/interval.go:11.2,11.14 1 0
github.com/muety/wakapi/models/interval.go:6.23,7.13 1 0
github.com/muety/wakapi/models/interval.go:7.13,9.4 1 0
github.com/muety/wakapi/models/models.go:3.14,5.2 0 1
github.com/muety/wakapi/models/shared.go:34.52,37.16 3 0
github.com/muety/wakapi/models/shared.go:40.2,42.12 3 0
@ -18,11 +29,6 @@ github.com/muety/wakapi/models/shared.go:78.51,81.2 2 0
github.com/muety/wakapi/models/shared.go:83.37,86.2 2 0
github.com/muety/wakapi/models/shared.go:88.35,90.2 1 0
github.com/muety/wakapi/models/shared.go:92.34,94.2 1 0
github.com/muety/wakapi/models/alias.go:12.32,14.2 1 0
github.com/muety/wakapi/models/alias.go:16.37,17.35 1 0
github.com/muety/wakapi/models/alias.go:22.2,22.14 1 0
github.com/muety/wakapi/models/alias.go:17.35,18.18 1 0
github.com/muety/wakapi/models/alias.go:18.18,20.4 1 0
github.com/muety/wakapi/models/filters.go:16.56,17.16 1 0
github.com/muety/wakapi/models/filters.go:29.2,29.19 1 0
github.com/muety/wakapi/models/filters.go:18.22,19.32 1 0
@ -62,157 +68,67 @@ github.com/muety/wakapi/models/heartbeat.go:72.37,88.2 1 0
github.com/muety/wakapi/models/heartbeat.go:96.41,98.16 2 0
github.com/muety/wakapi/models/heartbeat.go:101.2,102.10 2 0
github.com/muety/wakapi/models/heartbeat.go:98.16,100.3 1 0
github.com/muety/wakapi/models/heartbeats.go:7.31,9.2 1 0
github.com/muety/wakapi/models/heartbeats.go:11.41,13.2 1 0
github.com/muety/wakapi/models/heartbeats.go:15.36,17.2 1 0
github.com/muety/wakapi/models/heartbeats.go:19.43,22.2 2 0
github.com/muety/wakapi/models/heartbeats.go:24.41,26.18 1 0
github.com/muety/wakapi/models/heartbeats.go:29.2,29.16 1 0
github.com/muety/wakapi/models/heartbeats.go:26.18,28.3 1 0
github.com/muety/wakapi/models/heartbeats.go:32.40,34.18 1 0
github.com/muety/wakapi/models/heartbeats.go:37.2,37.24 1 0
github.com/muety/wakapi/models/heartbeats.go:34.18,36.3 1 0
github.com/muety/wakapi/models/summary.go:41.27,45.2 1 0
github.com/muety/wakapi/models/summary.go:97.29,99.2 1 1
github.com/muety/wakapi/models/summary.go:101.37,108.2 6 1
github.com/muety/wakapi/models/summary.go:110.35,112.2 1 1
github.com/muety/wakapi/models/summary.go:114.57,122.2 1 1
github.com/muety/wakapi/models/summary.go:135.33,140.26 4 1
github.com/muety/wakapi/models/summary.go:147.2,147.37 1 1
github.com/muety/wakapi/models/summary.go:151.2,154.33 2 1
github.com/muety/wakapi/models/summary.go:140.26,141.30 1 1
github.com/muety/wakapi/models/summary.go:141.30,143.4 1 1
github.com/muety/wakapi/models/summary.go:147.37,149.3 1 0
github.com/muety/wakapi/models/summary.go:154.33,160.3 1 1
github.com/muety/wakapi/models/summary.go:163.45,168.30 3 1
github.com/muety/wakapi/models/summary.go:177.2,177.30 1 1
github.com/muety/wakapi/models/summary.go:168.30,169.47 1 1
github.com/muety/wakapi/models/summary.go:169.47,170.32 1 1
github.com/muety/wakapi/models/summary.go:173.4,173.9 1 1
github.com/muety/wakapi/models/summary.go:170.32,172.5 1 1
github.com/muety/wakapi/models/summary.go:180.73,182.55 2 1
github.com/muety/wakapi/models/summary.go:187.2,187.16 1 1
github.com/muety/wakapi/models/summary.go:182.55,183.31 1 1
github.com/muety/wakapi/models/summary.go:183.31,185.4 1 1
github.com/muety/wakapi/models/summary.go:190.88,192.55 2 1
github.com/muety/wakapi/models/summary.go:200.2,200.16 1 1
github.com/muety/wakapi/models/summary.go:192.55,193.31 1 1
github.com/muety/wakapi/models/summary.go:193.31,194.23 1 1
github.com/muety/wakapi/models/summary.go:197.4,197.46 1 1
github.com/muety/wakapi/models/summary.go:194.23,195.13 1 1
github.com/muety/wakapi/models/summary.go:203.70,205.8 2 1
github.com/muety/wakapi/models/summary.go:208.2,208.10 1 1
github.com/muety/wakapi/models/summary.go:205.8,207.3 1 1
github.com/muety/wakapi/models/summary.go:211.71,212.63 1 1
github.com/muety/wakapi/models/summary.go:252.2,258.10 6 1
github.com/muety/wakapi/models/summary.go:212.63,215.45 2 1
github.com/muety/wakapi/models/summary.go:224.3,224.31 1 1
github.com/muety/wakapi/models/summary.go:231.3,231.31 1 1
github.com/muety/wakapi/models/summary.go:248.3,248.16 1 1
github.com/muety/wakapi/models/summary.go:215.45,216.32 1 1
github.com/muety/wakapi/models/summary.go:221.4,221.14 1 1
github.com/muety/wakapi/models/summary.go:216.32,217.24 1 1
github.com/muety/wakapi/models/summary.go:217.24,219.6 1 1
github.com/muety/wakapi/models/summary.go:224.31,226.60 1 1
github.com/muety/wakapi/models/summary.go:226.60,228.5 1 1
github.com/muety/wakapi/models/summary.go:231.31,233.60 1 1
github.com/muety/wakapi/models/summary.go:233.60,234.55 1 1
github.com/muety/wakapi/models/summary.go:234.55,236.6 1 1
github.com/muety/wakapi/models/summary.go:236.11,244.6 1 1
github.com/muety/wakapi/models/summary.go:261.33,263.2 1 1
github.com/muety/wakapi/models/summary.go:265.43,267.2 1 1
github.com/muety/wakapi/models/summary.go:269.38,271.2 1 1
github.com/muety/wakapi/models/user.go:35.43,38.2 1 0
github.com/muety/wakapi/models/user.go:40.33,44.2 1 0
github.com/muety/wakapi/models/user.go:46.45,48.2 1 0
github.com/muety/wakapi/models/user.go:50.45,52.2 1 0
github.com/muety/wakapi/config/utils.go:5.78,7.22 2 0
github.com/muety/wakapi/config/utils.go:13.2,13.11 1 0
github.com/muety/wakapi/config/utils.go:7.22,8.18 1 0
github.com/muety/wakapi/config/utils.go:11.3,11.12 1 0
github.com/muety/wakapi/config/utils.go:8.18,10.4 1 0
github.com/muety/wakapi/config/config.go:94.70,96.2 1 0
github.com/muety/wakapi/config/config.go:98.65,100.2 1 0
github.com/muety/wakapi/config/config.go:102.82,112.2 1 0
github.com/muety/wakapi/config/config.go:114.31,116.2 1 0
github.com/muety/wakapi/config/config.go:118.32,120.2 1 0
github.com/muety/wakapi/config/config.go:122.74,123.19 1 0
github.com/muety/wakapi/config/config.go:124.10,125.34 1 0
github.com/muety/wakapi/config/config.go:125.34,134.4 8 0
github.com/muety/wakapi/config/config.go:138.73,139.33 1 0
github.com/muety/wakapi/config/config.go:139.33,147.17 5 0
github.com/muety/wakapi/config/config.go:151.3,152.13 2 0
github.com/muety/wakapi/config/config.go:147.17,149.4 1 0
github.com/muety/wakapi/config/config.go:156.50,157.19 1 0
github.com/muety/wakapi/config/config.go:170.2,170.12 1 0
github.com/muety/wakapi/config/config.go:158.23,162.5 1 0
github.com/muety/wakapi/config/config.go:163.26,166.5 1 0
github.com/muety/wakapi/config/config.go:167.24,168.48 1 0
github.com/muety/wakapi/config/config.go:173.53,183.2 1 1
github.com/muety/wakapi/config/config.go:185.56,187.16 2 1
github.com/muety/wakapi/config/config.go:191.2,198.3 1 1
github.com/muety/wakapi/config/config.go:187.16,189.3 1 0
github.com/muety/wakapi/config/config.go:201.54,203.2 1 1
github.com/muety/wakapi/config/config.go:205.60,207.2 1 0
github.com/muety/wakapi/config/config.go:209.59,211.2 1 0
github.com/muety/wakapi/config/config.go:213.57,215.2 1 0
github.com/muety/wakapi/config/config.go:217.53,219.2 1 0
github.com/muety/wakapi/config/config.go:221.29,223.2 1 1
github.com/muety/wakapi/config/config.go:225.27,227.16 2 0
github.com/muety/wakapi/config/config.go:230.2,233.16 3 0
github.com/muety/wakapi/config/config.go:237.2,237.41 1 0
github.com/muety/wakapi/config/config.go:227.16,229.3 1 0
github.com/muety/wakapi/config/config.go:233.16,235.3 1 0
github.com/muety/wakapi/config/config.go:240.48,252.16 3 0
github.com/muety/wakapi/config/config.go:255.2,257.16 3 0
github.com/muety/wakapi/config/config.go:261.2,261.55 1 0
github.com/muety/wakapi/config/config.go:265.2,265.15 1 0
github.com/muety/wakapi/config/config.go:252.16,254.3 1 0
github.com/muety/wakapi/config/config.go:257.16,259.3 1 0
github.com/muety/wakapi/config/config.go:261.55,263.3 1 0
github.com/muety/wakapi/config/config.go:268.38,269.43 1 0
github.com/muety/wakapi/config/config.go:272.2,272.15 1 0
github.com/muety/wakapi/config/config.go:269.43,271.3 1 0
github.com/muety/wakapi/config/config.go:275.45,276.27 1 0
github.com/muety/wakapi/config/config.go:279.2,279.15 1 0
github.com/muety/wakapi/config/config.go:276.27,278.3 1 0
github.com/muety/wakapi/config/config.go:282.26,284.2 1 0
github.com/muety/wakapi/config/config.go:286.20,288.2 1 0
github.com/muety/wakapi/config/config.go:290.21,295.96 3 0
github.com/muety/wakapi/config/config.go:299.2,307.52 5 0
github.com/muety/wakapi/config/config.go:311.2,311.47 1 0
github.com/muety/wakapi/config/config.go:317.2,317.70 1 0
github.com/muety/wakapi/config/config.go:321.2,321.28 1 0
github.com/muety/wakapi/config/config.go:325.2,326.14 2 0
github.com/muety/wakapi/config/config.go:295.96,297.3 1 0
github.com/muety/wakapi/config/config.go:307.52,309.3 1 0
github.com/muety/wakapi/config/config.go:311.47,312.14 1 0
github.com/muety/wakapi/config/config.go:312.14,314.4 1 0
github.com/muety/wakapi/config/config.go:317.70,319.3 1 0
github.com/muety/wakapi/config/config.go:321.28,323.3 1 0
github.com/muety/wakapi/utils/summary.go:10.71,13.18 2 0
github.com/muety/wakapi/utils/summary.go:49.2,49.22 1 0
github.com/muety/wakapi/utils/summary.go:14.58,15.24 1 0
github.com/muety/wakapi/utils/summary.go:16.66,18.22 2 0
github.com/muety/wakapi/utils/summary.go:19.64,20.23 1 0
github.com/muety/wakapi/utils/summary.go:21.39,23.21 2 0
github.com/muety/wakapi/utils/summary.go:24.66,25.24 1 0
github.com/muety/wakapi/utils/summary.go:26.40,28.22 2 0
github.com/muety/wakapi/utils/summary.go:29.31,30.23 1 0
github.com/muety/wakapi/utils/summary.go:31.66,32.42 1 0
github.com/muety/wakapi/utils/summary.go:33.49,35.40 2 0
github.com/muety/wakapi/utils/summary.go:36.41,37.43 1 0
github.com/muety/wakapi/utils/summary.go:38.68,40.42 2 0
github.com/muety/wakapi/utils/summary.go:41.35,42.43 1 0
github.com/muety/wakapi/utils/summary.go:43.26,44.21 1 0
github.com/muety/wakapi/utils/summary.go:45.10,46.39 1 0
github.com/muety/wakapi/utils/summary.go:52.73,59.56 5 0
github.com/muety/wakapi/utils/summary.go:73.2,80.8 2 0
github.com/muety/wakapi/utils/summary.go:59.56,61.3 1 0
github.com/muety/wakapi/utils/summary.go:61.8,63.17 2 0
github.com/muety/wakapi/utils/summary.go:67.3,68.17 2 0
github.com/muety/wakapi/utils/summary.go:63.17,65.4 1 0
github.com/muety/wakapi/utils/summary.go:68.17,70.4 1 0
github.com/muety/wakapi/models/language_mapping.go:11.42,13.2 1 0
github.com/muety/wakapi/models/language_mapping.go:15.51,17.2 1 0
github.com/muety/wakapi/models/language_mapping.go:19.52,21.2 1 0
github.com/muety/wakapi/models/summary.go:101.29,103.2 1 1
github.com/muety/wakapi/models/summary.go:105.37,112.2 6 1
github.com/muety/wakapi/models/summary.go:114.35,116.2 1 1
github.com/muety/wakapi/models/summary.go:118.57,126.2 1 1
github.com/muety/wakapi/models/summary.go:139.33,144.26 4 1
github.com/muety/wakapi/models/summary.go:151.2,151.37 1 1
github.com/muety/wakapi/models/summary.go:155.2,158.33 2 1
github.com/muety/wakapi/models/summary.go:144.26,145.30 1 1
github.com/muety/wakapi/models/summary.go:145.30,147.4 1 1
github.com/muety/wakapi/models/summary.go:151.37,153.3 1 0
github.com/muety/wakapi/models/summary.go:158.33,164.3 1 1
github.com/muety/wakapi/models/summary.go:167.45,172.30 3 1
github.com/muety/wakapi/models/summary.go:181.2,181.30 1 1
github.com/muety/wakapi/models/summary.go:172.30,173.47 1 1
github.com/muety/wakapi/models/summary.go:173.47,174.32 1 1
github.com/muety/wakapi/models/summary.go:177.4,177.9 1 1
github.com/muety/wakapi/models/summary.go:174.32,176.5 1 1
github.com/muety/wakapi/models/summary.go:184.73,186.55 2 1
github.com/muety/wakapi/models/summary.go:191.2,191.16 1 1
github.com/muety/wakapi/models/summary.go:186.55,187.31 1 1
github.com/muety/wakapi/models/summary.go:187.31,189.4 1 1
github.com/muety/wakapi/models/summary.go:194.88,196.55 2 1
github.com/muety/wakapi/models/summary.go:204.2,204.16 1 1
github.com/muety/wakapi/models/summary.go:196.55,197.31 1 1
github.com/muety/wakapi/models/summary.go:197.31,198.23 1 1
github.com/muety/wakapi/models/summary.go:201.4,201.46 1 1
github.com/muety/wakapi/models/summary.go:198.23,199.13 1 1
github.com/muety/wakapi/models/summary.go:207.70,209.8 2 1
github.com/muety/wakapi/models/summary.go:212.2,212.10 1 1
github.com/muety/wakapi/models/summary.go:209.8,211.3 1 1
github.com/muety/wakapi/models/summary.go:215.71,216.63 1 1
github.com/muety/wakapi/models/summary.go:256.2,262.10 6 1
github.com/muety/wakapi/models/summary.go:216.63,219.45 2 1
github.com/muety/wakapi/models/summary.go:228.3,228.31 1 1
github.com/muety/wakapi/models/summary.go:235.3,235.31 1 1
github.com/muety/wakapi/models/summary.go:252.3,252.16 1 1
github.com/muety/wakapi/models/summary.go:219.45,220.32 1 1
github.com/muety/wakapi/models/summary.go:225.4,225.14 1 1
github.com/muety/wakapi/models/summary.go:220.32,221.24 1 1
github.com/muety/wakapi/models/summary.go:221.24,223.6 1 1
github.com/muety/wakapi/models/summary.go:228.31,230.60 1 1
github.com/muety/wakapi/models/summary.go:230.60,232.5 1 1
github.com/muety/wakapi/models/summary.go:235.31,237.60 1 1
github.com/muety/wakapi/models/summary.go:237.60,238.55 1 1
github.com/muety/wakapi/models/summary.go:238.55,240.6 1 1
github.com/muety/wakapi/models/summary.go:240.11,248.6 1 1
github.com/muety/wakapi/models/summary.go:265.33,267.2 1 1
github.com/muety/wakapi/models/summary.go:269.43,271.2 1 1
github.com/muety/wakapi/models/summary.go:273.38,275.2 1 1
github.com/muety/wakapi/models/user.go:40.43,43.2 1 0
github.com/muety/wakapi/models/user.go:45.33,49.2 1 0
github.com/muety/wakapi/models/user.go:51.45,53.2 1 0
github.com/muety/wakapi/models/user.go:55.45,57.2 1 0
github.com/muety/wakapi/models/alias.go:12.32,14.2 1 0
github.com/muety/wakapi/models/alias.go:16.37,17.35 1 0
github.com/muety/wakapi/models/alias.go:22.2,22.14 1 0
github.com/muety/wakapi/models/alias.go:17.35,18.18 1 0
github.com/muety/wakapi/models/alias.go:18.18,20.4 1 0
github.com/muety/wakapi/utils/template.go:8.41,10.16 2 0
github.com/muety/wakapi/utils/template.go:13.2,13.23 1 0
github.com/muety/wakapi/utils/template.go:10.16,12.3 1 0
@ -274,30 +190,64 @@ github.com/muety/wakapi/utils/strings.go:12.77,13.29 1 0
github.com/muety/wakapi/utils/strings.go:18.2,18.19 1 0
github.com/muety/wakapi/utils/strings.go:13.29,14.18 1 0
github.com/muety/wakapi/utils/strings.go:14.18,16.4 1 0
github.com/muety/wakapi/middlewares/authenticate.go:20.116,26.2 1 1
github.com/muety/wakapi/middlewares/authenticate.go:28.71,29.71 1 0
github.com/muety/wakapi/middlewares/authenticate.go:29.71,31.3 1 0
github.com/muety/wakapi/middlewares/authenticate.go:34.107,35.37 1 0
github.com/muety/wakapi/middlewares/authenticate.go:42.2,45.16 3 0
github.com/muety/wakapi/middlewares/authenticate.go:49.2,49.16 1 0
github.com/muety/wakapi/middlewares/authenticate.go:59.2,60.29 2 0
github.com/muety/wakapi/middlewares/authenticate.go:35.37,36.58 1 0
github.com/muety/wakapi/middlewares/authenticate.go:36.58,39.4 2 0
github.com/muety/wakapi/middlewares/authenticate.go:45.16,47.3 1 0
github.com/muety/wakapi/middlewares/authenticate.go:49.16,50.44 1 0
github.com/muety/wakapi/middlewares/authenticate.go:56.3,56.9 1 0
github.com/muety/wakapi/middlewares/authenticate.go:50.44,52.4 1 0
github.com/muety/wakapi/middlewares/authenticate.go:52.9,55.4 2 0
github.com/muety/wakapi/middlewares/authenticate.go:63.92,65.16 2 1
github.com/muety/wakapi/middlewares/authenticate.go:69.2,72.16 4 1
github.com/muety/wakapi/middlewares/authenticate.go:75.2,75.18 1 1
github.com/muety/wakapi/middlewares/authenticate.go:65.16,67.3 1 1
github.com/muety/wakapi/middlewares/authenticate.go:72.16,74.3 1 0
github.com/muety/wakapi/middlewares/authenticate.go:78.92,80.16 2 0
github.com/muety/wakapi/middlewares/authenticate.go:84.2,85.16 2 0
github.com/muety/wakapi/middlewares/authenticate.go:92.2,92.18 1 0
github.com/muety/wakapi/middlewares/authenticate.go:80.16,82.3 1 0
github.com/muety/wakapi/middlewares/authenticate.go:85.16,87.3 1 0
github.com/muety/wakapi/utils/summary.go:10.66,11.40 1 0
github.com/muety/wakapi/utils/summary.go:16.2,16.48 1 0
github.com/muety/wakapi/utils/summary.go:11.40,12.27 1 0
github.com/muety/wakapi/utils/summary.go:12.27,14.4 1 0
github.com/muety/wakapi/utils/summary.go:19.74,21.16 2 0
github.com/muety/wakapi/utils/summary.go:24.2,24.32 1 0
github.com/muety/wakapi/utils/summary.go:21.16,23.3 1 0
github.com/muety/wakapi/utils/summary.go:27.84,30.18 2 0
github.com/muety/wakapi/utils/summary.go:65.2,65.22 1 0
github.com/muety/wakapi/utils/summary.go:31.28,32.24 1 0
github.com/muety/wakapi/utils/summary.go:33.32,35.22 2 0
github.com/muety/wakapi/utils/summary.go:36.31,37.23 1 0
github.com/muety/wakapi/utils/summary.go:38.31,40.21 2 0
github.com/muety/wakapi/utils/summary.go:41.32,42.24 1 0
github.com/muety/wakapi/utils/summary.go:43.32,45.22 2 0
github.com/muety/wakapi/utils/summary.go:46.31,47.23 1 0
github.com/muety/wakapi/utils/summary.go:48.32,49.42 1 0
github.com/muety/wakapi/utils/summary.go:50.41,52.40 2 0
github.com/muety/wakapi/utils/summary.go:53.33,54.43 1 0
github.com/muety/wakapi/utils/summary.go:55.33,56.43 1 0
github.com/muety/wakapi/utils/summary.go:57.35,58.43 1 0
github.com/muety/wakapi/utils/summary.go:59.26,60.21 1 0
github.com/muety/wakapi/utils/summary.go:61.10,62.39 1 0
github.com/muety/wakapi/utils/summary.go:68.73,75.56 5 0
github.com/muety/wakapi/utils/summary.go:89.2,96.8 2 0
github.com/muety/wakapi/utils/summary.go:75.56,77.3 1 0
github.com/muety/wakapi/utils/summary.go:77.8,79.17 2 0
github.com/muety/wakapi/utils/summary.go:83.3,84.17 2 0
github.com/muety/wakapi/utils/summary.go:79.17,81.4 1 0
github.com/muety/wakapi/utils/summary.go:84.17,86.4 1 0
github.com/muety/wakapi/middlewares/authenticate.go:20.91,26.2 1 1
github.com/muety/wakapi/middlewares/authenticate.go:28.90,31.2 2 0
github.com/muety/wakapi/middlewares/authenticate.go:33.71,34.71 1 0
github.com/muety/wakapi/middlewares/authenticate.go:34.71,36.3 1 0
github.com/muety/wakapi/middlewares/authenticate.go:39.107,43.16 3 0
github.com/muety/wakapi/middlewares/authenticate.go:47.2,47.31 1 0
github.com/muety/wakapi/middlewares/authenticate.go:62.2,63.29 2 0
github.com/muety/wakapi/middlewares/authenticate.go:43.16,45.3 1 0
github.com/muety/wakapi/middlewares/authenticate.go:47.31,48.31 1 0
github.com/muety/wakapi/middlewares/authenticate.go:53.3,53.44 1 0
github.com/muety/wakapi/middlewares/authenticate.go:59.3,59.9 1 0
github.com/muety/wakapi/middlewares/authenticate.go:48.31,51.4 2 0
github.com/muety/wakapi/middlewares/authenticate.go:53.44,55.4 1 0
github.com/muety/wakapi/middlewares/authenticate.go:55.9,58.4 2 0
github.com/muety/wakapi/middlewares/authenticate.go:66.70,67.39 1 0
github.com/muety/wakapi/middlewares/authenticate.go:72.2,72.14 1 0
github.com/muety/wakapi/middlewares/authenticate.go:67.39,68.60 1 0
github.com/muety/wakapi/middlewares/authenticate.go:68.60,70.4 1 0
github.com/muety/wakapi/middlewares/authenticate.go:75.92,77.16 2 1
github.com/muety/wakapi/middlewares/authenticate.go:81.2,84.16 4 1
github.com/muety/wakapi/middlewares/authenticate.go:87.2,87.18 1 1
github.com/muety/wakapi/middlewares/authenticate.go:77.16,79.3 1 1
github.com/muety/wakapi/middlewares/authenticate.go:84.16,86.3 1 0
github.com/muety/wakapi/middlewares/authenticate.go:90.92,92.16 2 0
github.com/muety/wakapi/middlewares/authenticate.go:96.2,97.16 2 0
github.com/muety/wakapi/middlewares/authenticate.go:104.2,104.18 1 0
github.com/muety/wakapi/middlewares/authenticate.go:92.16,94.3 1 0
github.com/muety/wakapi/middlewares/authenticate.go:97.16,99.3 1 0
github.com/muety/wakapi/middlewares/logging.go:17.79,18.43 1 0
github.com/muety/wakapi/middlewares/logging.go:18.43,23.3 1 0
github.com/muety/wakapi/middlewares/logging.go:26.80,44.2 6 0
@ -319,31 +269,112 @@ github.com/muety/wakapi/middlewares/logging.go:124.36,126.2 1 0
github.com/muety/wakapi/middlewares/logging.go:127.42,129.2 1 0
github.com/muety/wakapi/middlewares/logging.go:130.40,132.2 1 0
github.com/muety/wakapi/middlewares/logging.go:133.52,135.2 1 0
github.com/muety/wakapi/services/user.go:19.73,25.2 1 0
github.com/muety/wakapi/services/user.go:27.74,28.40 1 0
github.com/muety/wakapi/services/user.go:32.2,33.16 2 0
github.com/muety/wakapi/services/user.go:37.2,38.15 2 0
github.com/muety/wakapi/services/user.go:28.40,30.3 1 0
github.com/muety/wakapi/services/user.go:33.16,35.3 1 0
github.com/muety/wakapi/services/user.go:41.72,42.37 1 0
github.com/muety/wakapi/services/user.go:46.2,47.16 2 0
github.com/muety/wakapi/services/user.go:51.2,52.15 2 0
github.com/muety/wakapi/services/user.go:42.37,44.3 1 0
github.com/muety/wakapi/services/user.go:47.16,49.3 1 0
github.com/muety/wakapi/services/user.go:55.58,57.2 1 0
github.com/muety/wakapi/services/user.go:59.88,66.93 2 0
github.com/muety/wakapi/services/user.go:72.2,72.38 1 0
github.com/muety/wakapi/services/user.go:66.93,68.3 1 0
github.com/muety/wakapi/services/user.go:68.8,70.3 1 0
github.com/muety/wakapi/services/user.go:75.73,78.2 2 0
github.com/muety/wakapi/services/user.go:80.78,84.2 3 0
github.com/muety/wakapi/services/user.go:86.79,89.2 2 0
github.com/muety/wakapi/services/user.go:91.99,94.2 2 0
github.com/muety/wakapi/services/user.go:96.106,99.96 3 0
github.com/muety/wakapi/services/user.go:104.2,104.68 1 0
github.com/muety/wakapi/services/user.go:99.96,101.3 1 0
github.com/muety/wakapi/services/user.go:101.8,103.3 1 0
github.com/muety/wakapi/services/user.go:107.57,110.2 2 0
github.com/muety/wakapi/config/config.go:95.70,97.2 1 0
github.com/muety/wakapi/config/config.go:99.65,101.2 1 0
github.com/muety/wakapi/config/config.go:103.82,113.2 1 0
github.com/muety/wakapi/config/config.go:115.31,117.2 1 0
github.com/muety/wakapi/config/config.go:119.32,121.2 1 0
github.com/muety/wakapi/config/config.go:123.74,124.19 1 0
github.com/muety/wakapi/config/config.go:125.10,126.34 1 0
github.com/muety/wakapi/config/config.go:126.34,135.4 8 0
github.com/muety/wakapi/config/config.go:139.73,140.33 1 0
github.com/muety/wakapi/config/config.go:140.33,148.17 5 0
github.com/muety/wakapi/config/config.go:152.3,153.13 2 0
github.com/muety/wakapi/config/config.go:148.17,150.4 1 0
github.com/muety/wakapi/config/config.go:157.50,158.19 1 0
github.com/muety/wakapi/config/config.go:171.2,171.12 1 0
github.com/muety/wakapi/config/config.go:159.23,163.5 1 0
github.com/muety/wakapi/config/config.go:164.26,167.5 1 0
github.com/muety/wakapi/config/config.go:168.24,169.48 1 0
github.com/muety/wakapi/config/config.go:174.53,184.2 1 1
github.com/muety/wakapi/config/config.go:186.56,188.16 2 1
github.com/muety/wakapi/config/config.go:192.2,199.3 1 1
github.com/muety/wakapi/config/config.go:188.16,190.3 1 0
github.com/muety/wakapi/config/config.go:202.54,204.2 1 1
github.com/muety/wakapi/config/config.go:206.60,208.2 1 0
github.com/muety/wakapi/config/config.go:210.59,212.2 1 0
github.com/muety/wakapi/config/config.go:214.57,216.2 1 0
github.com/muety/wakapi/config/config.go:218.53,220.2 1 0
github.com/muety/wakapi/config/config.go:222.29,224.2 1 1
github.com/muety/wakapi/config/config.go:226.27,228.16 2 0
github.com/muety/wakapi/config/config.go:231.2,234.16 3 0
github.com/muety/wakapi/config/config.go:238.2,238.41 1 0
github.com/muety/wakapi/config/config.go:228.16,230.3 1 0
github.com/muety/wakapi/config/config.go:234.16,236.3 1 0
github.com/muety/wakapi/config/config.go:241.48,253.16 3 0
github.com/muety/wakapi/config/config.go:256.2,258.16 3 0
github.com/muety/wakapi/config/config.go:262.2,262.55 1 0
github.com/muety/wakapi/config/config.go:266.2,266.15 1 0
github.com/muety/wakapi/config/config.go:253.16,255.3 1 0
github.com/muety/wakapi/config/config.go:258.16,260.3 1 0
github.com/muety/wakapi/config/config.go:262.55,264.3 1 0
github.com/muety/wakapi/config/config.go:269.38,270.43 1 0
github.com/muety/wakapi/config/config.go:273.2,273.15 1 0
github.com/muety/wakapi/config/config.go:270.43,272.3 1 0
github.com/muety/wakapi/config/config.go:276.45,277.27 1 0
github.com/muety/wakapi/config/config.go:280.2,280.15 1 0
github.com/muety/wakapi/config/config.go:277.27,279.3 1 0
github.com/muety/wakapi/config/config.go:283.26,285.2 1 0
github.com/muety/wakapi/config/config.go:287.20,289.2 1 0
github.com/muety/wakapi/config/config.go:291.21,296.96 3 0
github.com/muety/wakapi/config/config.go:300.2,308.52 5 0
github.com/muety/wakapi/config/config.go:312.2,312.47 1 0
github.com/muety/wakapi/config/config.go:318.2,318.70 1 0
github.com/muety/wakapi/config/config.go:322.2,322.28 1 0
github.com/muety/wakapi/config/config.go:326.2,327.14 2 0
github.com/muety/wakapi/config/config.go:296.96,298.3 1 0
github.com/muety/wakapi/config/config.go:308.52,310.3 1 0
github.com/muety/wakapi/config/config.go:312.47,313.14 1 0
github.com/muety/wakapi/config/config.go:313.14,315.4 1 0
github.com/muety/wakapi/config/config.go:318.70,320.3 1 0
github.com/muety/wakapi/config/config.go:322.28,324.3 1 0
github.com/muety/wakapi/config/utils.go:5.78,7.22 2 0
github.com/muety/wakapi/config/utils.go:13.2,13.11 1 0
github.com/muety/wakapi/config/utils.go:7.22,8.18 1 0
github.com/muety/wakapi/config/utils.go:11.3,11.12 1 0
github.com/muety/wakapi/config/utils.go:8.18,10.4 1 0
github.com/muety/wakapi/services/language_mapping.go:18.118,24.2 1 0
github.com/muety/wakapi/services/language_mapping.go:26.86,28.2 1 0
github.com/muety/wakapi/services/language_mapping.go:30.96,31.53 1 0
github.com/muety/wakapi/services/language_mapping.go:35.2,36.16 2 0
github.com/muety/wakapi/services/language_mapping.go:39.2,40.22 2 0
github.com/muety/wakapi/services/language_mapping.go:31.53,33.3 1 0
github.com/muety/wakapi/services/language_mapping.go:36.16,38.3 1 0
github.com/muety/wakapi/services/language_mapping.go:43.92,46.16 3 0
github.com/muety/wakapi/services/language_mapping.go:50.2,50.33 1 0
github.com/muety/wakapi/services/language_mapping.go:53.2,53.22 1 0
github.com/muety/wakapi/services/language_mapping.go:46.16,48.3 1 0
github.com/muety/wakapi/services/language_mapping.go:50.33,52.3 1 0
github.com/muety/wakapi/services/language_mapping.go:56.109,58.16 2 0
github.com/muety/wakapi/services/language_mapping.go:62.2,63.20 2 0
github.com/muety/wakapi/services/language_mapping.go:58.16,60.3 1 0
github.com/muety/wakapi/services/language_mapping.go:66.82,67.26 1 0
github.com/muety/wakapi/services/language_mapping.go:70.2,72.12 3 0
github.com/muety/wakapi/services/language_mapping.go:67.26,69.3 1 0
github.com/muety/wakapi/services/language_mapping.go:75.74,78.2 1 0
github.com/muety/wakapi/services/misc.go:23.126,30.2 1 0
github.com/muety/wakapi/services/misc.go:42.50,44.48 1 0
github.com/muety/wakapi/services/misc.go:48.2,50.19 3 0
github.com/muety/wakapi/services/misc.go:44.48,46.3 1 0
github.com/muety/wakapi/services/misc.go:53.51,59.40 4 0
github.com/muety/wakapi/services/misc.go:63.2,66.56 2 0
github.com/muety/wakapi/services/misc.go:77.2,77.12 1 0
github.com/muety/wakapi/services/misc.go:59.40,61.3 1 0
github.com/muety/wakapi/services/misc.go:66.56,67.27 1 0
github.com/muety/wakapi/services/misc.go:67.27,72.4 1 0
github.com/muety/wakapi/services/misc.go:73.8,75.3 1 0
github.com/muety/wakapi/services/misc.go:80.116,81.24 1 0
github.com/muety/wakapi/services/misc.go:81.24,82.144 1 0
github.com/muety/wakapi/services/misc.go:91.3,91.48 1 0
github.com/muety/wakapi/services/misc.go:82.144,84.4 1 0
github.com/muety/wakapi/services/misc.go:84.9,90.4 2 0
github.com/muety/wakapi/services/misc.go:91.48,94.4 2 0
github.com/muety/wakapi/services/misc.go:98.86,101.30 3 0
github.com/muety/wakapi/services/misc.go:106.2,109.17 1 0
github.com/muety/wakapi/services/misc.go:113.2,116.17 1 0
github.com/muety/wakapi/services/misc.go:101.30,104.3 2 0
github.com/muety/wakapi/services/misc.go:109.17,111.3 1 0
github.com/muety/wakapi/services/misc.go:116.17,118.3 1 0
github.com/muety/wakapi/services/aggregation.go:24.142,31.2 1 0
github.com/muety/wakapi/services/aggregation.go:40.43,42.37 1 0
github.com/muety/wakapi/services/aggregation.go:46.2,48.19 3 0
@ -384,41 +415,6 @@ github.com/muety/wakapi/services/aggregation.go:136.62,140.4 1 0
github.com/muety/wakapi/services/aggregation.go:148.83,163.41 5 0
github.com/muety/wakapi/services/aggregation.go:163.41,173.3 3 0
github.com/muety/wakapi/services/aggregation.go:176.34,179.2 2 0
github.com/muety/wakapi/services/alias.go:17.77,22.2 1 1
github.com/muety/wakapi/services/alias.go:26.60,27.43 1 1
github.com/muety/wakapi/services/alias.go:30.2,30.14 1 1
github.com/muety/wakapi/services/alias.go:27.43,29.3 1 1
github.com/muety/wakapi/services/alias.go:33.62,35.16 2 1
github.com/muety/wakapi/services/alias.go:38.2,38.12 1 1
github.com/muety/wakapi/services/alias.go:35.16,37.3 1 1
github.com/muety/wakapi/services/alias.go:41.76,43.16 2 0
github.com/muety/wakapi/services/alias.go:46.2,46.21 1 0
github.com/muety/wakapi/services/alias.go:43.16,45.3 1 0
github.com/muety/wakapi/services/alias.go:49.113,51.16 2 0
github.com/muety/wakapi/services/alias.go:54.2,54.21 1 0
github.com/muety/wakapi/services/alias.go:51.16,53.3 1 0
github.com/muety/wakapi/services/alias.go:57.108,58.32 1 1
github.com/muety/wakapi/services/alias.go:64.2,65.46 2 1
github.com/muety/wakapi/services/alias.go:70.2,70.19 1 1
github.com/muety/wakapi/services/alias.go:58.32,59.52 1 1
github.com/muety/wakapi/services/alias.go:59.52,61.4 1 1
github.com/muety/wakapi/services/alias.go:65.46,66.48 1 1
github.com/muety/wakapi/services/alias.go:66.48,68.4 1 1
github.com/muety/wakapi/services/alias.go:73.77,75.16 2 0
github.com/muety/wakapi/services/alias.go:78.2,79.20 2 0
github.com/muety/wakapi/services/alias.go:75.16,77.3 1 0
github.com/muety/wakapi/services/alias.go:82.60,83.24 1 0
github.com/muety/wakapi/services/alias.go:86.2,88.12 3 0
github.com/muety/wakapi/services/alias.go:83.24,85.3 1 0
github.com/muety/wakapi/services/alias.go:91.69,94.28 3 0
github.com/muety/wakapi/services/alias.go:102.2,104.31 2 0
github.com/muety/wakapi/services/alias.go:108.2,108.12 1 0
github.com/muety/wakapi/services/alias.go:94.28,95.21 1 0
github.com/muety/wakapi/services/alias.go:98.3,99.16 2 0
github.com/muety/wakapi/services/alias.go:95.21,97.4 1 0
github.com/muety/wakapi/services/alias.go:104.31,106.3 1 0
github.com/muety/wakapi/services/alias.go:111.52,112.51 1 0
github.com/muety/wakapi/services/alias.go:112.51,114.3 1 0
github.com/muety/wakapi/services/heartbeat.go:17.141,23.2 1 0
github.com/muety/wakapi/services/heartbeat.go:25.72,27.2 1 0
github.com/muety/wakapi/services/heartbeat.go:29.80,31.2 1 0
@ -434,55 +430,6 @@ github.com/muety/wakapi/services/heartbeat.go:63.2,63.28 1 0
github.com/muety/wakapi/services/heartbeat.go:67.2,67.24 1 0
github.com/muety/wakapi/services/heartbeat.go:59.16,61.3 1 0
github.com/muety/wakapi/services/heartbeat.go:63.28,65.3 1 0
github.com/muety/wakapi/services/language_mapping.go:18.118,24.2 1 0
github.com/muety/wakapi/services/language_mapping.go:26.86,28.2 1 0
github.com/muety/wakapi/services/language_mapping.go:30.96,31.53 1 0
github.com/muety/wakapi/services/language_mapping.go:35.2,36.16 2 0
github.com/muety/wakapi/services/language_mapping.go:39.2,40.22 2 0
github.com/muety/wakapi/services/language_mapping.go:31.53,33.3 1 0
github.com/muety/wakapi/services/language_mapping.go:36.16,38.3 1 0
github.com/muety/wakapi/services/language_mapping.go:43.92,46.16 3 0
github.com/muety/wakapi/services/language_mapping.go:50.2,50.33 1 0
github.com/muety/wakapi/services/language_mapping.go:53.2,53.22 1 0
github.com/muety/wakapi/services/language_mapping.go:46.16,48.3 1 0
github.com/muety/wakapi/services/language_mapping.go:50.33,52.3 1 0
github.com/muety/wakapi/services/language_mapping.go:56.109,58.16 2 0
github.com/muety/wakapi/services/language_mapping.go:62.2,63.20 2 0
github.com/muety/wakapi/services/language_mapping.go:58.16,60.3 1 0
github.com/muety/wakapi/services/language_mapping.go:66.82,67.26 1 0
github.com/muety/wakapi/services/language_mapping.go:70.2,72.12 3 0
github.com/muety/wakapi/services/language_mapping.go:67.26,69.3 1 0
github.com/muety/wakapi/services/language_mapping.go:75.74,78.2 1 0
github.com/muety/wakapi/services/key_value.go:14.89,19.2 1 0
github.com/muety/wakapi/services/key_value.go:21.83,23.2 1 0
github.com/muety/wakapi/services/key_value.go:25.78,27.16 2 0
github.com/muety/wakapi/services/key_value.go:33.2,33.11 1 0
github.com/muety/wakapi/services/key_value.go:27.16,32.3 1 0
github.com/muety/wakapi/services/key_value.go:36.72,38.2 1 0
github.com/muety/wakapi/services/key_value.go:40.60,42.2 1 0
github.com/muety/wakapi/services/misc.go:23.126,30.2 1 0
github.com/muety/wakapi/services/misc.go:42.50,44.48 1 0
github.com/muety/wakapi/services/misc.go:48.2,50.19 3 0
github.com/muety/wakapi/services/misc.go:44.48,46.3 1 0
github.com/muety/wakapi/services/misc.go:53.51,59.40 4 0
github.com/muety/wakapi/services/misc.go:63.2,66.56 2 0
github.com/muety/wakapi/services/misc.go:77.2,77.12 1 0
github.com/muety/wakapi/services/misc.go:59.40,61.3 1 0
github.com/muety/wakapi/services/misc.go:66.56,67.27 1 0
github.com/muety/wakapi/services/misc.go:67.27,72.4 1 0
github.com/muety/wakapi/services/misc.go:73.8,75.3 1 0
github.com/muety/wakapi/services/misc.go:80.116,81.24 1 0
github.com/muety/wakapi/services/misc.go:81.24,82.144 1 0
github.com/muety/wakapi/services/misc.go:91.3,91.48 1 0
github.com/muety/wakapi/services/misc.go:82.144,84.4 1 0
github.com/muety/wakapi/services/misc.go:84.9,90.4 2 0
github.com/muety/wakapi/services/misc.go:91.48,94.4 2 0
github.com/muety/wakapi/services/misc.go:98.86,101.30 3 0
github.com/muety/wakapi/services/misc.go:106.2,109.17 1 0
github.com/muety/wakapi/services/misc.go:113.2,116.17 1 0
github.com/muety/wakapi/services/misc.go:101.30,104.3 2 0
github.com/muety/wakapi/services/misc.go:109.17,111.3 1 0
github.com/muety/wakapi/services/misc.go:116.17,118.3 1 0
github.com/muety/wakapi/services/summary.go:27.149,35.2 1 1
github.com/muety/wakapi/services/summary.go:39.120,42.52 2 1
github.com/muety/wakapi/services/summary.go:47.2,47.44 1 1
@ -572,3 +519,70 @@ github.com/muety/wakapi/services/summary.go:324.54,326.3 1 1
github.com/muety/wakapi/services/summary.go:331.59,333.25 2 1
github.com/muety/wakapi/services/summary.go:336.2,336.32 1 1
github.com/muety/wakapi/services/summary.go:333.25,335.3 1 1
github.com/muety/wakapi/services/user.go:19.73,25.2 1 0
github.com/muety/wakapi/services/user.go:27.74,28.40 1 0
github.com/muety/wakapi/services/user.go:32.2,33.16 2 0
github.com/muety/wakapi/services/user.go:37.2,38.15 2 0
github.com/muety/wakapi/services/user.go:28.40,30.3 1 0
github.com/muety/wakapi/services/user.go:33.16,35.3 1 0
github.com/muety/wakapi/services/user.go:41.72,42.37 1 0
github.com/muety/wakapi/services/user.go:46.2,47.16 2 0
github.com/muety/wakapi/services/user.go:51.2,52.15 2 0
github.com/muety/wakapi/services/user.go:42.37,44.3 1 0
github.com/muety/wakapi/services/user.go:47.16,49.3 1 0
github.com/muety/wakapi/services/user.go:55.58,57.2 1 0
github.com/muety/wakapi/services/user.go:59.88,66.93 2 0
github.com/muety/wakapi/services/user.go:72.2,72.38 1 0
github.com/muety/wakapi/services/user.go:66.93,68.3 1 0
github.com/muety/wakapi/services/user.go:68.8,70.3 1 0
github.com/muety/wakapi/services/user.go:75.73,78.2 2 0
github.com/muety/wakapi/services/user.go:80.78,84.2 3 0
github.com/muety/wakapi/services/user.go:86.99,89.2 2 0
github.com/muety/wakapi/services/user.go:91.106,94.96 3 0
github.com/muety/wakapi/services/user.go:99.2,99.68 1 0
github.com/muety/wakapi/services/user.go:94.96,96.3 1 0
github.com/muety/wakapi/services/user.go:96.8,98.3 1 0
github.com/muety/wakapi/services/user.go:102.57,105.2 2 0
github.com/muety/wakapi/services/user.go:107.38,109.2 1 0
github.com/muety/wakapi/services/alias.go:17.77,22.2 1 1
github.com/muety/wakapi/services/alias.go:26.60,27.43 1 1
github.com/muety/wakapi/services/alias.go:30.2,30.14 1 1
github.com/muety/wakapi/services/alias.go:27.43,29.3 1 1
github.com/muety/wakapi/services/alias.go:33.62,35.16 2 1
github.com/muety/wakapi/services/alias.go:38.2,38.12 1 1
github.com/muety/wakapi/services/alias.go:35.16,37.3 1 1
github.com/muety/wakapi/services/alias.go:41.76,43.16 2 0
github.com/muety/wakapi/services/alias.go:46.2,46.21 1 0
github.com/muety/wakapi/services/alias.go:43.16,45.3 1 0
github.com/muety/wakapi/services/alias.go:49.113,51.16 2 0
github.com/muety/wakapi/services/alias.go:54.2,54.21 1 0
github.com/muety/wakapi/services/alias.go:51.16,53.3 1 0
github.com/muety/wakapi/services/alias.go:57.108,58.32 1 1
github.com/muety/wakapi/services/alias.go:64.2,65.46 2 1
github.com/muety/wakapi/services/alias.go:70.2,70.19 1 1
github.com/muety/wakapi/services/alias.go:58.32,59.52 1 1
github.com/muety/wakapi/services/alias.go:59.52,61.4 1 1
github.com/muety/wakapi/services/alias.go:65.46,66.48 1 1
github.com/muety/wakapi/services/alias.go:66.48,68.4 1 1
github.com/muety/wakapi/services/alias.go:73.77,75.16 2 0
github.com/muety/wakapi/services/alias.go:78.2,79.20 2 0
github.com/muety/wakapi/services/alias.go:75.16,77.3 1 0
github.com/muety/wakapi/services/alias.go:82.60,83.24 1 0
github.com/muety/wakapi/services/alias.go:86.2,88.12 3 0
github.com/muety/wakapi/services/alias.go:83.24,85.3 1 0
github.com/muety/wakapi/services/alias.go:91.69,94.28 3 0
github.com/muety/wakapi/services/alias.go:102.2,104.31 2 0
github.com/muety/wakapi/services/alias.go:108.2,108.12 1 0
github.com/muety/wakapi/services/alias.go:94.28,95.21 1 0
github.com/muety/wakapi/services/alias.go:98.3,99.16 2 0
github.com/muety/wakapi/services/alias.go:95.21,97.4 1 0
github.com/muety/wakapi/services/alias.go:104.31,106.3 1 0
github.com/muety/wakapi/services/alias.go:111.52,112.51 1 0
github.com/muety/wakapi/services/alias.go:112.51,114.3 1 0
github.com/muety/wakapi/services/key_value.go:14.89,19.2 1 0
github.com/muety/wakapi/services/key_value.go:21.83,23.2 1 0
github.com/muety/wakapi/services/key_value.go:25.78,27.16 2 0
github.com/muety/wakapi/services/key_value.go:33.2,33.11 1 0
github.com/muety/wakapi/services/key_value.go:27.16,32.3 1 0
github.com/muety/wakapi/services/key_value.go:36.72,38.2 1 0
github.com/muety/wakapi/services/key_value.go:40.60,42.2 1 0

11
main.go
View File

@ -146,7 +146,6 @@ func main() {
router := mux.NewRouter()
rootRouter := router.PathPrefix("/").Subrouter()
apiRouter := router.PathPrefix("/api").Subrouter()
compatApiRouter := apiRouter.PathPrefix("/compat").Subrouter()
// Globally used middlewares
recoveryMiddleware := handlers.RecoveryHandler()
@ -168,12 +167,10 @@ func main() {
summaryApiHandler.RegisterRoutes(apiRouter)
healthApiHandler.RegisterRoutes(apiRouter)
heartbeatApiHandler.RegisterRoutes(apiRouter)
// Compat route registrations
wakatimeV1AllHandler.RegisterRoutes(compatApiRouter)
wakatimeV1SummariesHandler.RegisterRoutes(compatApiRouter)
wakatimeV1StatsHandler.RegisterRoutes(compatApiRouter)
shieldV1BadgeHandler.RegisterRoutes(compatApiRouter)
wakatimeV1AllHandler.RegisterRoutes(apiRouter)
wakatimeV1SummariesHandler.RegisterRoutes(apiRouter)
wakatimeV1StatsHandler.RegisterRoutes(apiRouter)
shieldV1BadgeHandler.RegisterRoutes(apiRouter)
// Static Routes
router.PathPrefix("/assets").Handler(http.FileServer(pkger.Dir("/static")))

View File

@ -34,7 +34,7 @@ func NewBadgeHandler(summaryService services.ISummaryService, userService servic
func (h *BadgeHandler) RegisterRoutes(router *mux.Router) {
// no auth middleware here, handler itself resolves the user
r := router.PathPrefix("/shields/v1/{user}").Subrouter()
r := router.PathPrefix("/compat/shields/v1/{user}").Subrouter()
r.Methods(http.MethodGet).HandlerFunc(h.Get)
}

View File

@ -28,7 +28,7 @@ func NewAllTimeHandler(userService services.IUserService, summaryService service
}
func (h *AllTimeHandler) RegisterRoutes(router *mux.Router) {
r := router.PathPrefix("/wakatime/v1/users/{user}/all_time_since_today").Subrouter()
r := router.PathPrefix("/compat/wakatime/v1/users/{user}/all_time_since_today").Subrouter()
r.Use(
middlewares.NewAuthenticateMiddleware(h.userSrvc).Handler,
)

View File

@ -27,11 +27,12 @@ func NewStatsHandler(userService services.IUserService, summaryService services.
}
func (h *StatsHandler) RegisterRoutes(router *mux.Router) {
r := router.PathPrefix("/wakatime/v1/users/{user}/stats/{range}").Subrouter()
r := router.PathPrefix("").Subrouter()
r.Use(
middlewares.NewAuthenticateMiddleware(h.userSrvc).WithOptionalFor([]string{"/"}).Handler,
)
r.Methods(http.MethodGet).HandlerFunc(h.Get)
r.Path("/v1/users/{user}/stats/{range}").Methods(http.MethodGet).HandlerFunc(h.Get)
r.Path("/compat/wakatime/v1/users/{user}/stats/{range}").Methods(http.MethodGet).HandlerFunc(h.Get)
}
// TODO: support filtering (requires https://github.com/muety/wakapi/issues/108)

View File

@ -29,7 +29,7 @@ func NewSummariesHandler(userService services.IUserService, summaryService servi
}
func (h *SummariesHandler) RegisterRoutes(router *mux.Router) {
r := router.PathPrefix("/wakatime/v1/users/{user}/summaries").Subrouter()
r := router.PathPrefix("/compat/wakatime/v1/users/{user}/summaries").Subrouter()
r.Use(
middlewares.NewAuthenticateMiddleware(h.userSrvc).Handler,
)