id: 1 unit: func Main() file: main.go start line: 81 end line: 206 size: 109 LOC McCabe index: 20 number of parameters: 0 id: 2 unit: func GenerateOrders() file: db/generate_orders.go start line: 17 end line: 85 size: 60 LOC McCabe index: 13 number of parameters: 4 id: 3 unit: func() file: api.go start line: 260 end line: 310 size: 50 LOC McCabe index: 9 number of parameters: 1 id: 4 unit: func createOrder() file: orders.go start line: 94 end line: 142 size: 46 LOC McCabe index: 11 number of parameters: 4 id: 5 unit: func queryCustomers() file: customers.go start line: 37 end line: 79 size: 41 LOC McCabe index: 7 number of parameters: 5 id: 6 unit: func() file: api.go start line: 39 end line: 79 size: 38 LOC McCabe index: 7 number of parameters: 1 id: 7 unit: func getOrder() file: orders.go start line: 54 end line: 92 size: 35 LOC McCabe index: 5 number of parameters: 3 id: 8 unit: func queryProducts() file: products.go start line: 66 end line: 98 size: 31 LOC McCabe index: 5 number of parameters: 3 id: 9 unit: func getStats() file: stats.go start line: 21 end line: 51 size: 30 LOC McCabe index: 4 number of parameters: 2 id: 10 unit: func() file: api.go start line: 99 end line: 129 size: 29 LOC McCabe index: 6 number of parameters: 1 id: 11 unit: func initDatabase() file: init_db.go start line: 14 end line: 43 size: 28 LOC McCabe index: 6 number of parameters: 2 id: 12 unit: func logrusMiddleware() file: logger.go start line: 29 end line: 57 size: 27 LOC McCabe index: 4 number of parameters: 1 id: 13 unit: func getOrders() file: orders.go start line: 25 end line: 52 size: 26 LOC McCabe index: 4 number of parameters: 2 id: 14 unit: func newDatabase() file: main.go start line: 234 end line: 258 size: 25 LOC McCabe index: 5 number of parameters: 0 id: 15 unit: func getTopProducts() file: products.go start line: 33 end line: 56 size: 22 LOC McCabe index: 4 number of parameters: 2 id: 16 unit: func queryProductTypes() file: products.go start line: 112 end line: 135 size: 22 LOC McCabe index: 5 number of parameters: 3 id: 17 unit: func() file: api.go start line: 131 end line: 151 size: 21 LOC McCabe index: 5 number of parameters: 1 id: 18 unit: func() file: api.go start line: 238 end line: 258 size: 21 LOC McCabe index: 3 number of parameters: 1 id: 19 unit: func() file: api.go start line: 162 end line: 180 size: 19 LOC McCabe index: 4 number of parameters: 1 id: 20 unit: func() file: api.go start line: 191 end line: 209 size: 19 LOC McCabe index: 4 number of parameters: 1 id: 21 unit: func main() file: main.go start line: 56 end line: 79 size: 19 LOC McCabe index: 5 number of parameters: 0 id: 22 unit: func() file: api.go start line: 312 end line: 330 size: 18 LOC McCabe index: 4 number of parameters: 1 id: 23 unit: func() file: api.go start line: 220 end line: 236 size: 17 LOC McCabe index: 4 number of parameters: 1 id: 24 unit: func getIDs() file: db/generate_orders.go start line: 87 end line: 102 size: 16 LOC McCabe index: 4 number of parameters: 3 id: 25 unit: func addAPIHandlers() file: api.go start line: 19 end line: 33 size: 15 LOC McCabe index: 1 number of parameters: 2 id: 26 unit: func newRedisPool() file: main.go start line: 275 end line: 289 size: 15 LOC McCabe index: 2 number of parameters: 1 id: 27 unit: func newCache() file: main.go start line: 260 end line: 273 size: 14 LOC McCabe index: 3 number of parameters: 0 id: 28 unit: func scanStatements() file: db/script.go start line: 25 end line: 37 size: 12 LOC McCabe index: 5 number of parameters: 2 id: 29 unit: func handleOopsie() file: main.go start line: 291 end line: 301 size: 11 LOC McCabe index: 3 number of parameters: 1 id: 30 unit: func ExecCommands() file: db/script.go start line: 13 end line: 23 size: 11 LOC McCabe index: 3 number of parameters: 3 id: 31 unit: func handleRUMConfig() file: main.go start line: 212 end line: 221 size: 10 LOC McCabe index: 2 number of parameters: 1 id: 32 unit: func newJSONFormatter() file: logger.go start line: 59 end line: 70 size: 10 LOC McCabe index: 1 number of parameters: 0 id: 33 unit: func healthcheck() file: main.go start line: 223 end line: 232 size: 9 LOC McCabe index: 2 number of parameters: 0 id: 34 unit: func main() file: db/assets.go start line: 12 end line: 20 size: 9 LOC McCabe index: 2 number of parameters: 0 id: 35 unit: func() file: api.go start line: 81 end line: 88 size: 8 LOC McCabe index: 2 number of parameters: 1 id: 36 unit: func() file: api.go start line: 90 end line: 97 size: 8 LOC McCabe index: 2 number of parameters: 1 id: 37 unit: func() file: api.go start line: 153 end line: 160 size: 8 LOC McCabe index: 2 number of parameters: 1 id: 38 unit: func() file: api.go start line: 182 end line: 189 size: 8 LOC McCabe index: 2 number of parameters: 1 id: 39 unit: func() file: api.go start line: 211 end line: 218 size: 8 LOC McCabe index: 2 number of parameters: 1 id: 40 unit: func() file: logger.go start line: 16 end line: 23 size: 8 LOC McCabe index: 2 number of parameters: 1 id: 41 unit: func getProduct() file: products.go start line: 58 end line: 64 size: 7 LOC McCabe index: 3 number of parameters: 3 id: 42 unit: func getProductType() file: products.go start line: 104 end line: 110 size: 7 LOC McCabe index: 3 number of parameters: 3 id: 43 unit: func getCustomer() file: customers.go start line: 29 end line: 35 size: 7 LOC McCabe index: 3 number of parameters: 3 id: 44 unit: func maybeInt() file: stats.go start line: 53 end line: 58 size: 6 LOC McCabe index: 2 number of parameters: 1 id: 45 unit: func init() file: main.go start line: 52 end line: 54 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 46 unit: func handleIndex() file: main.go start line: 208 end line: 210 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 47 unit: func getProducts() file: products.go start line: 29 end line: 31 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 48 unit: func getProductTypes() file: products.go start line: 100 end line: 102 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 49 unit: func contextLogger() file: logger.go start line: 25 end line: 27 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 50 unit: func getCustomers() file: customers.go start line: 21 end line: 23 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 51 unit: func getProductCustomers() file: customers.go start line: 25 end line: 27 size: 3 LOC McCabe index: 1 number of parameters: 4