(ctx *gin.Context)
| 82 | } |
| 83 | |
| 84 | func getToken(ctx *gin.Context) string { |
| 85 | token := ctx.GetHeader("token") |
| 86 | if len(token) <= 0 { |
| 87 | token = ctx.Query("token") |
| 88 | if len(token) <= 0 { |
| 89 | token = ctx.Param("token") |
| 90 | if len(token) > 0 && token[0] == '/' { |
| 91 | token = token[1:] |
| 92 | } |
| 93 | } |
| 94 | } |
| 95 | return token |
| 96 | } |
| 97 | |
| 98 | func parsePriority(priority string) int { |
| 99 | if len(priority) > 0 { |
no outgoing calls