agora.io 生成 token 的后端代码没有sdk,只有一个实现。 写的惨不忍睹,单独放到这里以免污染代码。 等到agora做成sdk后替换掉即可。 https://docs.agora.io/cn/2.4/product/Interactive%20Broadcast/Agora%20Platform/token

.gitignore 286B

1234567891011121314151617
  1. # ---> Go
  2. # Binaries for programs and plugins
  3. *.exe
  4. *.dll
  5. *.so
  6. *.dylib
  7. # Test binary, build with `go test -c`
  8. *.test
  9. # Output of the go coverage tool, specifically when used with LiteIDE
  10. *.out
  11. # Project-local glide cache, RE: https://github.com/Masterminds/glide/issues/736
  12. .glide/