refine tenant api

Signed-off-by: hongming <talonwan@yunify.com>
This commit is contained in:
hongming
2019-04-01 02:59:19 +08:00
parent 744bd053e3
commit 93ad572e19
202 changed files with 13517 additions and 7951 deletions

16
vendor/gopkg.in/igm/sockjs-go.v2/sockjs/utils.go generated vendored Normal file
View File

@@ -0,0 +1,16 @@
package sockjs
import "encoding/json"
func quote(in string) string {
quoted, _ := json.Marshal(in)
return string(quoted)
}
func transform(values []string, transformFn func(string) string) []string {
ret := make([]string, len(values))
for i, msg := range values {
ret[i] = transformFn(msg)
}
return ret
}