├── Procfile ├── pkg ├── http │ └── web │ │ ├── node_modules │ │ ├── .bin │ │ │ ├── rimraf │ │ │ ├── mkdirp │ │ │ ├── semver │ │ │ ├── which │ │ │ ├── envinfo │ │ │ └── create-react-app │ │ ├── xtend │ │ │ ├── .npmignore │ │ │ ├── Makefile │ │ │ ├── mutable.js │ │ │ ├── immutable.js │ │ │ └── .jshintrc │ │ ├── duplexer2 │ │ │ ├── .npmignore │ │ │ ├── .travis.yml │ │ │ ├── node_modules │ │ │ │ └── readable-stream │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── duplex.js │ │ │ │ │ ├── transform.js │ │ │ │ │ ├── writable.js │ │ │ │ │ ├── passthrough.js │ │ │ │ │ └── readable.js │ │ │ └── package.json │ │ ├── tar-pack │ │ │ ├── test │ │ │ │ └── fixtures │ │ │ │ │ ├── packed-file.txt │ │ │ │ │ ├── to-pack │ │ │ │ │ ├── bar.txt │ │ │ │ │ └── foo.txt │ │ │ │ │ └── packed.tar.gz │ │ │ ├── node_modules │ │ │ │ └── .bin │ │ │ │ │ └── rimraf │ │ │ ├── .travis.yml │ │ │ └── package.json │ │ ├── isexe │ │ │ ├── .npmignore │ │ │ └── LICENSE │ │ ├── string_decoder │ │ │ ├── .npmignore │ │ │ ├── README.md │ │ │ └── package.json │ │ ├── debug │ │ │ ├── node.js │ │ │ ├── .coveralls.yml │ │ │ ├── .npmignore │ │ │ ├── .travis.yml │ │ │ ├── .eslintrc │ │ │ ├── src │ │ │ │ ├── index.js │ │ │ │ └── inspector-log.js │ │ │ └── component.json │ │ ├── fstream │ │ │ ├── node_modules │ │ │ │ └── .bin │ │ │ │ │ ├── rimraf │ │ │ │ │ └── mkdirp │ │ │ ├── .npmignore │ │ │ ├── .travis.yml │ │ │ ├── package.json │ │ │ ├── lib │ │ │ │ └── get-type.js │ │ │ └── LICENSE │ │ ├── through2 │ │ │ ├── .npmignore │ │ │ └── node_modules │ │ │ │ └── readable-stream │ │ │ │ ├── .npmignore │ │ │ │ ├── duplex.js │ │ │ │ ├── writable.js │ │ │ │ ├── transform.js │ │ │ │ ├── passthrough.js │ │ │ │ └── readable.js │ │ ├── validate-npm-package-name │ │ │ ├── .npmignore │ │ │ ├── .nyc_output │ │ │ │ └── bb918173e62b9517f55b630902d07ef4.json │ │ │ ├── .travis.yml │ │ │ └── LICENSE │ │ ├── cross-spawn │ │ │ ├── node_modules │ │ │ │ └── .bin │ │ │ │ │ └── which │ │ │ └── lib │ │ │ │ └── hasBrokenSpawn.js │ │ ├── create-react-app │ │ │ ├── node_modules │ │ │ │ └── .bin │ │ │ │ │ ├── semver │ │ │ │ │ └── envinfo │ │ │ └── README.md │ │ ├── readable-stream │ │ │ ├── node_modules │ │ │ │ └── isarray │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── .travis.yml │ │ │ │ │ ├── Makefile │ │ │ │ │ ├── index.js │ │ │ │ │ ├── test.js │ │ │ │ │ └── component.json │ │ │ ├── duplex.js │ │ │ ├── transform.js │ │ │ ├── lib │ │ │ │ └── internal │ │ │ │ │ └── streams │ │ │ │ │ ├── stream.js │ │ │ │ │ └── stream-browser.js │ │ │ ├── passthrough.js │ │ │ ├── duplex-browser.js │ │ │ ├── writable-browser.js │ │ │ ├── writable.js │ │ │ └── readable-browser.js │ │ ├── tar │ │ │ ├── .travis.yml │ │ │ ├── .npmignore │ │ │ ├── test │ │ │ │ ├── fixtures.tgz │ │ │ │ ├── cb-never-called-1.0.1.tgz │ │ │ │ ├── zz-cleanup.js │ │ │ │ └── parse-discard.js │ │ │ ├── lib │ │ │ │ └── global-header-writer.js │ │ │ ├── examples │ │ │ │ ├── extracter.js │ │ │ │ └── packer.js │ │ │ ├── package.json │ │ │ └── LICENSE │ │ ├── concat-map │ │ │ ├── .travis.yml │ │ │ ├── example │ │ │ │ └── map.js │ │ │ └── index.js │ │ ├── builtins │ │ │ ├── .travis.yml │ │ │ ├── test.js │ │ │ ├── package.json │ │ │ ├── Readme.md │ │ │ ├── builtins.json │ │ │ └── History.md │ │ ├── minimist │ │ │ ├── .travis.yml │ │ │ ├── example │ │ │ │ └── parse.js │ │ │ └── test │ │ │ │ ├── whitespace.js │ │ │ │ ├── parse_modified.js │ │ │ │ ├── dotted.js │ │ │ │ └── default_bool.js │ │ ├── balanced-match │ │ │ └── .npmignore │ │ ├── core-util-is │ │ │ ├── README.md │ │ │ └── package.json │ │ ├── fs-extra │ │ │ ├── lib │ │ │ │ ├── copy-sync │ │ │ │ │ └── index.js │ │ │ │ ├── copy │ │ │ │ │ └── index.js │ │ │ │ ├── remove │ │ │ │ │ └── index.js │ │ │ │ ├── util │ │ │ │ │ ├── buffer.js │ │ │ │ │ └── assign.js │ │ │ │ ├── path-exists │ │ │ │ │ └── index.js │ │ │ │ ├── json │ │ │ │ │ ├── jsonfile.js │ │ │ │ │ ├── output-json-sync.js │ │ │ │ │ ├── index.js │ │ │ │ │ └── output-json.js │ │ │ │ ├── mkdirs │ │ │ │ │ ├── index.js │ │ │ │ │ └── win32.js │ │ │ │ ├── index.js │ │ │ │ └── ensure │ │ │ │ │ └── index.js │ │ │ └── docs │ │ │ │ ├── pathExists-sync.md │ │ │ │ ├── remove-sync.md │ │ │ │ ├── emptyDir-sync.md │ │ │ │ ├── ensureDir-sync.md │ │ │ │ ├── ensureLink-sync.md │ │ │ │ ├── ensureSymlink-sync.md │ │ │ │ ├── ensureFile-sync.md │ │ │ │ ├── move-sync.md │ │ │ │ ├── ensureDir.md │ │ │ │ ├── pathExists.md │ │ │ │ ├── remove.md │ │ │ │ ├── emptyDir.md │ │ │ │ ├── ensureLink.md │ │ │ │ ├── ensureFile.md │ │ │ │ └── outputFile-sync.md │ │ ├── hyperquest │ │ │ ├── .travis.yml │ │ │ ├── example │ │ │ │ ├── req.js │ │ │ │ ├── many_request.js │ │ │ │ └── many_hyperquest.js │ │ │ └── test │ │ │ │ └── readable.js │ │ ├── isarray │ │ │ ├── index.js │ │ │ ├── component.json │ │ │ └── package.json │ │ ├── mkdirp │ │ │ ├── .travis.yml │ │ │ ├── examples │ │ │ │ └── pow.js │ │ │ ├── bin │ │ │ │ └── usage.txt │ │ │ ├── test │ │ │ │ └── root.js │ │ │ └── package.json │ │ ├── ansi-regex │ │ │ └── index.js │ │ ├── util-deprecate │ │ │ ├── node.js │ │ │ └── History.md │ │ ├── has-ansi │ │ │ └── index.js │ │ ├── strip-ansi │ │ │ └── index.js │ │ ├── yallist │ │ │ ├── iterator.js │ │ │ └── package.json │ │ ├── inherits │ │ │ ├── inherits.js │ │ │ ├── package.json │ │ │ ├── inherits_browser.js │ │ │ └── LICENSE │ │ ├── escape-string-regexp │ │ │ ├── index.js │ │ │ └── readme.md │ │ ├── pseudomap │ │ │ ├── map.js │ │ │ └── package.json │ │ ├── buffer-from │ │ │ ├── package.json │ │ │ └── test.js │ │ ├── uid-number │ │ │ ├── README.md │ │ │ ├── package.json │ │ │ ├── get-uid-gid.js │ │ │ └── LICENSE │ │ ├── block-stream │ │ │ ├── README.md │ │ │ └── package.json │ │ ├── semver │ │ │ ├── package.json │ │ │ └── range.bnf │ │ ├── graceful-fs │ │ │ └── fs.js │ │ ├── process-nextick-args │ │ │ ├── readme.md │ │ │ └── package.json │ │ ├── rimraf │ │ │ ├── package.json │ │ │ └── LICENSE │ │ ├── os-tmpdir │ │ │ └── index.js │ │ ├── fs.realpath │ │ │ └── package.json │ │ ├── path-is-absolute │ │ │ └── index.js │ │ ├── fstream-ignore │ │ │ ├── README.md │ │ │ └── package.json │ │ ├── once │ │ │ ├── package.json │ │ │ └── LICENSE │ │ ├── wrappy │ │ │ └── package.json │ │ ├── inflight │ │ │ ├── package.json │ │ │ └── LICENSE │ │ ├── minimatch │ │ │ └── package.json │ │ └── glob │ │ │ └── LICENSE │ │ ├── package.json │ │ └── app │ │ ├── public │ │ ├── favicon.ico │ │ ├── manifest.json │ │ └── index.html │ │ ├── src │ │ ├── githubClient.js │ │ └── index.js │ │ └── .gitignore ├── core │ ├── repository.go │ └── kudo.go └── storage │ └── storage_suite_test.go ├── vendor ├── github.com │ ├── modern-go │ │ ├── reflect2 │ │ │ ├── reflect2_amd64.s │ │ │ ├── relfect2_386.s │ │ │ ├── relfect2_arm.s │ │ │ ├── relfect2_arm64.s │ │ │ ├── relfect2_mipsx.s │ │ │ ├── relfect2_s390x.s │ │ │ ├── relfect2_amd64p32.s │ │ │ ├── relfect2_mips64x.s │ │ │ ├── relfect2_ppc64x.s │ │ │ ├── .gitignore │ │ │ ├── go_below_17.go │ │ │ ├── go_above_17.go │ │ │ ├── .travis.yml │ │ │ ├── go_below_19.go │ │ │ ├── go_above_19.go │ │ │ ├── test.sh │ │ │ └── Gopkg.lock │ │ └── concurrent │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── go_above_19.go │ │ │ ├── test.sh │ │ │ ├── log.go │ │ │ ├── executor.go │ │ │ └── go_below_19.go │ ├── gin-gonic │ │ └── gin │ │ │ ├── wercker.yml │ │ │ ├── .gitignore │ │ │ ├── codecov.yml │ │ │ ├── doc.go │ │ │ ├── context_appengine.go │ │ │ ├── response_writer_1.7.go │ │ │ ├── json │ │ │ ├── json.go │ │ │ └── jsoniter.go │ │ │ ├── coverage.sh │ │ │ ├── test_helpers.go │ │ │ ├── binding │ │ │ └── query.go │ │ │ ├── response_writer_1.8.go │ │ │ ├── render │ │ │ ├── data.go │ │ │ ├── xml.go │ │ │ └── yaml.go │ │ │ ├── CONTRIBUTING.md │ │ │ ├── .travis.yml │ │ │ └── deprecated.go │ ├── globalsign │ │ └── mgo │ │ │ ├── .gitignore │ │ │ ├── raceon.go │ │ │ ├── raceoff.go │ │ │ ├── Makefile │ │ │ ├── saslstub.go │ │ │ ├── saslimpl.go │ │ │ ├── internal │ │ │ └── sasl │ │ │ │ └── sasl_windows.h │ │ │ └── bson │ │ │ └── README.md │ ├── lestrrat-go │ │ ├── jwx │ │ │ ├── jws │ │ │ │ ├── signer.go │ │ │ │ ├── sign │ │ │ │ │ └── sign.go │ │ │ │ ├── verify │ │ │ │ │ └── verify.go │ │ │ │ └── option.go │ │ │ ├── jwa │ │ │ │ └── jwa.go │ │ │ └── internal │ │ │ │ ├── option │ │ │ │ └── option.go │ │ │ │ └── base64 │ │ │ │ └── base64.go │ │ └── pdebug │ │ │ ├── autoflag_on.go │ │ │ ├── autoflag_off.go │ │ │ ├── .travis.yml │ │ │ ├── .gitignore │ │ │ ├── common.go │ │ │ └── doc.go │ ├── rs │ │ └── cors │ │ │ ├── go.mod │ │ │ └── .travis.yml │ ├── hpcloud │ │ └── tail │ │ │ ├── .gitignore │ │ │ ├── ratelimiter │ │ │ └── storage.go │ │ │ ├── Makefile │ │ │ ├── tail_posix.go │ │ │ ├── tail_windows.go │ │ │ ├── appveyor.yml │ │ │ ├── .travis.yml │ │ │ └── Dockerfile │ ├── okta │ │ └── okta-jwt-verifier-golang │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ └── .editorconfig │ ├── json-iterator │ │ └── go │ │ │ ├── .codecov.yml │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── test.sh │ │ │ ├── build.sh │ │ │ └── Gopkg.lock │ ├── onsi │ │ ├── gomega │ │ │ ├── .gitignore │ │ │ ├── matchers │ │ │ │ ├── support │ │ │ │ │ └── goraph │ │ │ │ │ │ ├── node │ │ │ │ │ │ └── node.go │ │ │ │ │ │ └── util │ │ │ │ │ │ └── util.go │ │ │ │ ├── attributes_slice.go │ │ │ │ ├── be_nil_matcher.go │ │ │ │ ├── be_true_matcher.go │ │ │ │ ├── be_false_matcher.go │ │ │ │ ├── be_zero_matcher.go │ │ │ │ └── be_empty_matcher.go │ │ │ ├── .travis.yml │ │ │ └── go.mod │ │ └── ginkgo │ │ │ ├── .gitignore │ │ │ ├── reporters │ │ │ ├── stenographer │ │ │ │ └── support │ │ │ │ │ ├── go-isatty │ │ │ │ │ ├── doc.go │ │ │ │ │ ├── isatty_appengine.go │ │ │ │ │ ├── isatty_linux.go │ │ │ │ │ ├── isatty_solaris.go │ │ │ │ │ ├── isatty_bsd.go │ │ │ │ │ ├── isatty_windows.go │ │ │ │ │ └── README.md │ │ │ │ │ └── go-colorable │ │ │ │ │ └── colorable_others.go │ │ │ └── reporter.go │ │ │ ├── internal │ │ │ ├── remote │ │ │ │ ├── syscall_dup_solaris.go │ │ │ │ ├── syscall_dup_unix.go │ │ │ │ ├── syscall_dup_linux_arm64.go │ │ │ │ └── output_interceptor.go │ │ │ ├── specrunner │ │ │ │ └── random_id.go │ │ │ ├── leafnodes │ │ │ │ └── interfaces.go │ │ │ └── spec_iterator │ │ │ │ └── spec_iterator.go │ │ │ ├── types │ │ │ ├── code_location.go │ │ │ └── synchronization.go │ │ │ └── .travis.yml │ ├── mattn │ │ └── go-isatty │ │ │ ├── doc.go │ │ │ ├── .travis.yml │ │ │ ├── isatty_others.go │ │ │ ├── isatty_solaris.go │ │ │ ├── isatty_linux.go │ │ │ ├── isatty_appengine.go │ │ │ ├── isatty_bsd.go │ │ │ └── isatty_linux_ppc64x.go │ ├── julienschmidt │ │ └── httprouter │ │ │ └── .travis.yml │ ├── golang │ │ └── protobuf │ │ │ ├── AUTHORS │ │ │ └── CONTRIBUTORS │ ├── pkg │ │ └── errors │ │ │ ├── .travis.yml │ │ │ ├── .gitignore │ │ │ └── appveyor.yml │ ├── ugorji │ │ └── go │ │ │ └── codec │ │ │ ├── goversion_vendor_gte_go17.go │ │ │ ├── goversion_vendor_lt_go15.go │ │ │ ├── goversion_unexportedembeddedptr_gte_go110.go │ │ │ ├── goversion_unexportedembeddedptr_lt_go110.go │ │ │ ├── goversion_vendor_eq_go15.go │ │ │ ├── goversion_vendor_eq_go16.go │ │ │ ├── goversion_makemap_lt_go19.go │ │ │ ├── goversion_arrayof_gte_go15.go │ │ │ ├── goversion_makemap_gte_go19.go │ │ │ ├── goversion_arrayof_lt_go15.go │ │ │ ├── goversion_unsupported_lt_go14.go │ │ │ └── gen-enc-chan.go.tmpl │ └── gin-contrib │ │ ├── sse │ │ ├── .travis.yml │ │ └── writer.go │ │ └── cors │ │ ├── .gitignore │ │ └── .travis.yml ├── golang.org │ └── x │ │ ├── sys │ │ ├── unix │ │ │ ├── .gitignore │ │ │ ├── endian_big.go │ │ │ ├── endian_little.go │ │ │ ├── constants.go │ │ │ ├── syscall_linux_amd64_gc.go │ │ │ ├── aliases.go │ │ │ ├── pagesize_unix.go │ │ │ ├── fcntl_linux_32bit.go │ │ │ ├── asm_solaris_amd64.s │ │ │ ├── gccgo_linux_amd64.go │ │ │ ├── syscall_linux_gc.go │ │ │ ├── race0.go │ │ │ ├── syscall_solaris_amd64.go │ │ │ ├── syscall_linux_gc_386.go │ │ │ ├── syscall_unix_gc.go │ │ │ ├── dirent.go │ │ │ ├── syscall_linux_gccgo_arm.go │ │ │ ├── str.go │ │ │ ├── race.go │ │ │ ├── env_unix.go │ │ │ ├── asm_freebsd_arm.s │ │ │ ├── asm_netbsd_arm.s │ │ │ ├── asm_openbsd_arm.s │ │ │ ├── asm_darwin_386.s │ │ │ ├── asm_freebsd_386.s │ │ │ ├── asm_netbsd_386.s │ │ │ ├── asm_openbsd_386.s │ │ │ ├── asm_darwin_amd64.s │ │ │ ├── asm_freebsd_amd64.s │ │ │ ├── asm_netbsd_amd64.s │ │ │ ├── asm_openbsd_amd64.s │ │ │ ├── asm_dragonfly_amd64.s │ │ │ ├── asm_darwin_arm.s │ │ │ └── bluetooth_linux.go │ │ ├── AUTHORS │ │ └── CONTRIBUTORS │ │ ├── net │ │ ├── AUTHORS │ │ └── CONTRIBUTORS │ │ └── text │ │ ├── AUTHORS │ │ ├── CONTRIBUTORS │ │ ├── language │ │ ├── go1_2.go │ │ ├── common.go │ │ ├── Makefile │ │ └── gen_common.go │ │ └── encoding │ │ ├── japanese │ │ └── all.go │ │ └── simplifiedchinese │ │ └── all.go └── gopkg.in │ ├── fsnotify │ └── fsnotify.v1 │ │ ├── .editorconfig │ │ ├── .gitignore │ │ ├── open_mode_bsd.go │ │ ├── open_mode_darwin.go │ │ └── .travis.yml │ ├── yaml.v2 │ ├── go.mod │ ├── .travis.yml │ ├── NOTICE │ └── writerc.go │ ├── go-playground │ └── validator.v8 │ │ ├── logo.png │ │ └── .gitignore │ └── tomb.v1 │ └── README.md ├── .env ├── .gitignore ├── docker-compose.yml ├── Makefile └── cmd ├── db └── setup.go └── main.go /Procfile: -------------------------------------------------------------------------------- 1 | web: bin/cmd -------------------------------------------------------------------------------- /pkg/http/web/node_modules/.bin/rimraf: -------------------------------------------------------------------------------- 1 | ../rimraf/bin.js -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/reflect2_amd64.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_386.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_arm.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_arm64.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_mipsx.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_s390x.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/.bin/mkdirp: -------------------------------------------------------------------------------- 1 | ../mkdirp/bin/cmd.js -------------------------------------------------------------------------------- /pkg/http/web/node_modules/.bin/semver: -------------------------------------------------------------------------------- 1 | ../semver/bin/semver -------------------------------------------------------------------------------- /pkg/http/web/node_modules/.bin/which: -------------------------------------------------------------------------------- 1 | ../which/bin/which -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_amd64p32.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_mips64x.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_ppc64x.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/.bin/envinfo: -------------------------------------------------------------------------------- 1 | ../envinfo/dist/cli.js -------------------------------------------------------------------------------- /pkg/http/web/node_modules/xtend/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /vendor/github.com/gin-gonic/gin/wercker.yml: -------------------------------------------------------------------------------- 1 | box: wercker/default -------------------------------------------------------------------------------- /vendor/github.com/globalsign/mgo/.gitignore: -------------------------------------------------------------------------------- 1 | _harness 2 | .vscode -------------------------------------------------------------------------------- /vendor/github.com/lestrrat-go/jwx/jws/signer.go: -------------------------------------------------------------------------------- 1 | package jws 2 | -------------------------------------------------------------------------------- /vendor/github.com/rs/cors/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/rs/cors 2 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/.gitignore: -------------------------------------------------------------------------------- 1 | _obj/ 2 | unix.test 3 | -------------------------------------------------------------------------------- /.env: -------------------------------------------------------------------------------- 1 | MONGO_URL="mongodb://mongo_user:mongo_secret@mongo:27071/kudos" -------------------------------------------------------------------------------- /pkg/http/web/node_modules/duplexer2/.npmignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/tar-pack/test/fixtures/packed-file.txt: -------------------------------------------------------------------------------- 1 | bar -------------------------------------------------------------------------------- /pkg/http/web/node_modules/tar-pack/test/fixtures/to-pack/bar.txt: -------------------------------------------------------------------------------- 1 | baz -------------------------------------------------------------------------------- /pkg/http/web/node_modules/tar-pack/test/fixtures/to-pack/foo.txt: -------------------------------------------------------------------------------- 1 | bar -------------------------------------------------------------------------------- /vendor/github.com/hpcloud/tail/.gitignore: -------------------------------------------------------------------------------- 1 | .test 2 | .go 3 | 4 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/concurrent/.gitignore: -------------------------------------------------------------------------------- 1 | /coverage.txt 2 | -------------------------------------------------------------------------------- /vendor/github.com/okta/okta-jwt-verifier-golang/.gitignore: -------------------------------------------------------------------------------- 1 | .env 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .vscode 2 | pkg/http/web/app/dist 3 | deploy/front-end/dist -------------------------------------------------------------------------------- /pkg/http/web/node_modules/isexe/.npmignore: -------------------------------------------------------------------------------- 1 | .nyc_output/ 2 | coverage/ 3 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/string_decoder/.npmignore: -------------------------------------------------------------------------------- 1 | build 2 | test 3 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/.bin/create-react-app: -------------------------------------------------------------------------------- 1 | ../create-react-app/index.js -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/.gitignore: -------------------------------------------------------------------------------- 1 | /vendor 2 | /coverage.txt 3 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/debug/node.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./src/node'); 2 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/fstream/node_modules/.bin/rimraf: -------------------------------------------------------------------------------- 1 | ../../../rimraf/bin.js -------------------------------------------------------------------------------- /pkg/http/web/node_modules/tar-pack/node_modules/.bin/rimraf: -------------------------------------------------------------------------------- 1 | ../../../rimraf/bin.js -------------------------------------------------------------------------------- /pkg/http/web/node_modules/through2/.npmignore: -------------------------------------------------------------------------------- 1 | test 2 | .jshintrc 3 | .travis.yml -------------------------------------------------------------------------------- /pkg/http/web/node_modules/validate-npm-package-name/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/cross-spawn/node_modules/.bin/which: -------------------------------------------------------------------------------- 1 | ../../../which/bin/which -------------------------------------------------------------------------------- /pkg/http/web/node_modules/fstream/node_modules/.bin/mkdirp: -------------------------------------------------------------------------------- 1 | ../../../mkdirp/bin/cmd.js -------------------------------------------------------------------------------- /pkg/http/web/node_modules/create-react-app/node_modules/.bin/semver: -------------------------------------------------------------------------------- 1 | ../../../semver/bin/semver -------------------------------------------------------------------------------- /pkg/http/web/node_modules/readable-stream/node_modules/isarray/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/.codecov.yml: -------------------------------------------------------------------------------- 1 | ignore: 2 | - "output_tests/.*" 3 | 4 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/create-react-app/node_modules/.bin/envinfo: -------------------------------------------------------------------------------- 1 | ../../../envinfo/dist/cli.js -------------------------------------------------------------------------------- /pkg/http/web/node_modules/debug/.coveralls.yml: -------------------------------------------------------------------------------- 1 | repo_token: SIAeZjKYlHK74rbcFvNHMUzjRiMpflxve 2 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/duplexer2/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.10" 4 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | *.test 3 | . 4 | .idea 5 | gomega.iml 6 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/readable-stream/duplex.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./readable').Duplex 2 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/tar/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.10 4 | - 0.11 5 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/validate-npm-package-name/.nyc_output/bb918173e62b9517f55b630902d07ef4.json: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /pkg/http/web/node_modules/xtend/Makefile: -------------------------------------------------------------------------------- 1 | browser: 2 | node ./support/compile 3 | 4 | .PHONY: browser -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/.gitignore: -------------------------------------------------------------------------------- 1 | /vendor 2 | /bug_test.go 3 | /coverage.txt 4 | /.idea 5 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/concat-map/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.4 4 | - 0.6 5 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/readable-stream/transform.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./readable').Transform 2 | -------------------------------------------------------------------------------- /pkg/http/web/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "create-react-app": "^2.0.4" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/builtins/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.8" 4 | - "0.10" 5 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/minimist/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.8" 4 | - "0.10" 5 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/readable-stream/lib/internal/streams/stream.js: -------------------------------------------------------------------------------- 1 | module.exports = require('stream'); 2 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/readable-stream/passthrough.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./readable').PassThrough 2 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/doc.go: -------------------------------------------------------------------------------- 1 | // Package isatty implements interface to isatty 2 | package isatty 3 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/readable-stream/duplex-browser.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./lib/_stream_duplex.js'); 2 | -------------------------------------------------------------------------------- /vendor/github.com/globalsign/mgo/raceon.go: -------------------------------------------------------------------------------- 1 | // +build race 2 | 3 | package mgo 4 | 5 | const raceDetector = true 6 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/balanced-match/.npmignore: -------------------------------------------------------------------------------- 1 | test 2 | .gitignore 3 | .travis.yml 4 | Makefile 5 | example.js 6 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/readable-stream/writable-browser.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./lib/_stream_writable.js'); 2 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/tar/.npmignore: -------------------------------------------------------------------------------- 1 | .*.swp 2 | node_modules 3 | examples/extract/ 4 | test/tmp/ 5 | test/fixtures/ 6 | -------------------------------------------------------------------------------- /vendor/github.com/gin-gonic/gin/.gitignore: -------------------------------------------------------------------------------- 1 | vendor/* 2 | !vendor/vendor.json 3 | coverage.out 4 | count.out 5 | test 6 | -------------------------------------------------------------------------------- /vendor/github.com/globalsign/mgo/raceoff.go: -------------------------------------------------------------------------------- 1 | // +build !race 2 | 3 | package mgo 4 | 5 | const raceDetector = false 6 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | TODO 3 | tmp/**/* 4 | *.coverprofile 5 | .vscode 6 | .idea/ 7 | *.log -------------------------------------------------------------------------------- /vendor/gopkg.in/fsnotify/fsnotify.v1/.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | indent_style = tab 5 | indent_size = 4 6 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/core-util-is/README.md: -------------------------------------------------------------------------------- 1 | # core-util-is 2 | 3 | The `util.is*` functions introduced in Node v0.12. 4 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/duplexer2/node_modules/readable-stream/.npmignore: -------------------------------------------------------------------------------- 1 | build/ 2 | test/ 3 | examples/ 4 | fs.js 5 | zlib.js -------------------------------------------------------------------------------- /pkg/http/web/node_modules/fs-extra/lib/copy-sync/index.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | copySync: require('./copy-sync') 3 | } 4 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/hyperquest/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.10" 4 | - "0.12" 5 | - "iojs" 6 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/minimist/example/parse.js: -------------------------------------------------------------------------------- 1 | var argv = require('../')(process.argv.slice(2)); 2 | console.dir(argv); 3 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/through2/node_modules/readable-stream/.npmignore: -------------------------------------------------------------------------------- 1 | build/ 2 | test/ 3 | examples/ 4 | fs.js 5 | zlib.js -------------------------------------------------------------------------------- /vendor/github.com/globalsign/mgo/Makefile: -------------------------------------------------------------------------------- 1 | startdb: 2 | @harness/setup.sh start 3 | 4 | stopdb: 5 | @harness/setup.sh stop 6 | -------------------------------------------------------------------------------- /vendor/github.com/lestrrat-go/pdebug/autoflag_on.go: -------------------------------------------------------------------------------- 1 | // +build debug0 2 | 3 | package pdebug 4 | 5 | var Trace = true 6 | 7 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/duplexer2/node_modules/readable-stream/duplex.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_duplex.js") 2 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/readable-stream/lib/internal/streams/stream-browser.js: -------------------------------------------------------------------------------- 1 | module.exports = require('events').EventEmitter; 2 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/through2/node_modules/readable-stream/duplex.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_duplex.js") 2 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/through2/node_modules/readable-stream/writable.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_writable.js") 2 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/duplexer2/node_modules/readable-stream/transform.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_transform.js") 2 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/duplexer2/node_modules/readable-stream/writable.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_writable.js") 2 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/readable-stream/node_modules/isarray/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.8" 4 | - "0.10" 5 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/through2/node_modules/readable-stream/transform.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_transform.js") 2 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/duplexer2/node_modules/readable-stream/passthrough.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_passthrough.js") 2 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/fstream/.npmignore: -------------------------------------------------------------------------------- 1 | .*.swp 2 | node_modules/ 3 | examples/deep-copy/ 4 | examples/path/ 5 | examples/filter-copy/ 6 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/through2/node_modules/readable-stream/passthrough.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_passthrough.js") 2 | -------------------------------------------------------------------------------- /pkg/http/web/app/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/klebervirgilio/react-crud-app-with-golang/HEAD/pkg/http/web/app/public/favicon.ico -------------------------------------------------------------------------------- /vendor/github.com/rs/cors/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - 1.9 4 | - "1.10" 5 | - tip 6 | matrix: 7 | allow_failures: 8 | - go: tip 9 | -------------------------------------------------------------------------------- /vendor/gopkg.in/yaml.v2/go.mod: -------------------------------------------------------------------------------- 1 | module "gopkg.in/yaml.v2" 2 | 3 | require ( 4 | "gopkg.in/check.v1" v0.0.0-20161208181325-20d25e280405 5 | ) 6 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/hyperquest/example/req.js: -------------------------------------------------------------------------------- 1 | var hyperquest = require('../'); 2 | hyperquest('http://localhost:8000').pipe(process.stdout); 3 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/readable-stream/node_modules/isarray/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @node_modules/.bin/tape test.js 4 | 5 | .PHONY: test 6 | 7 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/validate-npm-package-name/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | language: node_js 3 | node_js: 4 | - '0.10' 5 | - '4' 6 | - '6' 7 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/reporters/stenographer/support/go-isatty/doc.go: -------------------------------------------------------------------------------- 1 | // Package isatty implements interface to isatty 2 | package isatty 3 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/builtins/test.js: -------------------------------------------------------------------------------- 1 | var builtins = require('./builtins'); 2 | 3 | builtins.forEach(function(name){ 4 | require(name); 5 | }); 6 | -------------------------------------------------------------------------------- /vendor/github.com/julienschmidt/httprouter/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | language: go 3 | go: 4 | - 1.1 5 | - 1.2 6 | - 1.3 7 | - 1.4 8 | - tip 9 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/debug/.npmignore: -------------------------------------------------------------------------------- 1 | support 2 | test 3 | examples 4 | example 5 | *.sock 6 | dist 7 | yarn.lock 8 | coverage 9 | bower.json 10 | -------------------------------------------------------------------------------- /vendor/github.com/okta/okta-jwt-verifier-golang/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.9.x 5 | - 1.10.x 6 | - tip 7 | 8 | script: go test -v ./ 9 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/fs-extra/lib/copy/index.js: -------------------------------------------------------------------------------- 1 | const u = require('universalify').fromCallback 2 | module.exports = { 3 | copy: u(require('./copy')) 4 | } 5 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/matchers/support/goraph/node/node.go: -------------------------------------------------------------------------------- 1 | package node 2 | 3 | type Node struct { 4 | Id int 5 | } 6 | 7 | type NodeOrderedSet []Node 8 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/tar/test/fixtures.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/klebervirgilio/react-crud-app-with-golang/HEAD/pkg/http/web/node_modules/tar/test/fixtures.tgz -------------------------------------------------------------------------------- /vendor/github.com/gin-gonic/gin/codecov.yml: -------------------------------------------------------------------------------- 1 | coverage: 2 | notify: 3 | gitter: 4 | default: 5 | url: https://webhooks.gitter.im/e/d90dcdeeab2f1e357165 6 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/isarray/index.js: -------------------------------------------------------------------------------- 1 | module.exports = Array.isArray || function (arr) { 2 | return Object.prototype.toString.call(arr) == '[object Array]'; 3 | }; 4 | -------------------------------------------------------------------------------- /vendor/gopkg.in/go-playground/validator.v8/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/klebervirgilio/react-crud-app-with-golang/HEAD/vendor/gopkg.in/go-playground/validator.v8/logo.png -------------------------------------------------------------------------------- /vendor/gopkg.in/tomb.v1/README.md: -------------------------------------------------------------------------------- 1 | Installation and usage 2 | ---------------------- 3 | 4 | See [gopkg.in/tomb.v1](https://gopkg.in/tomb.v1) for documentation and usage details. 5 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/mkdirp/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.8" 4 | - "0.10" 5 | - "0.12" 6 | - "iojs" 7 | before_install: 8 | - npm install -g npm@~1.4.6 9 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/matchers/support/goraph/util/util.go: -------------------------------------------------------------------------------- 1 | package util 2 | 3 | import "math" 4 | 5 | func Odd(n int) bool { 6 | return math.Mod(float64(n), 2.0) == 1.0 7 | } 8 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/ansi-regex/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | module.exports = function () { 3 | return /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-PRZcf-nqry=><]/g; 4 | }; 5 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/tar/test/cb-never-called-1.0.1.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/klebervirgilio/react-crud-app-with-golang/HEAD/pkg/http/web/node_modules/tar/test/cb-never-called-1.0.1.tgz -------------------------------------------------------------------------------- /pkg/http/web/node_modules/util-deprecate/node.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * For Node.js, simply re-export the core `util.deprecate` function. 4 | */ 5 | 6 | module.exports = require('util').deprecate; 7 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/tar-pack/test/fixtures/packed.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/klebervirgilio/react-crud-app-with-golang/HEAD/pkg/http/web/node_modules/tar-pack/test/fixtures/packed.tar.gz -------------------------------------------------------------------------------- /pkg/http/web/node_modules/has-ansi/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | var ansiRegex = require('ansi-regex'); 3 | var re = new RegExp(ansiRegex().source); // remove the `g` flag 4 | module.exports = re.test.bind(re); 5 | -------------------------------------------------------------------------------- /vendor/github.com/hpcloud/tail/ratelimiter/storage.go: -------------------------------------------------------------------------------- 1 | package ratelimiter 2 | 3 | type Storage interface { 4 | GetBucketFor(string) (*LeakyBucket, error) 5 | SetBucketFor(string, LeakyBucket) error 6 | } 7 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/mkdirp/examples/pow.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('mkdirp'); 2 | 3 | mkdirp('/tmp/foo/bar/baz', function (err) { 4 | if (err) console.error(err) 5 | else console.log('pow!') 6 | }); 7 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/tar-pack/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | language: node_js 3 | node_js: 4 | - "8" 5 | - "6" 6 | - "4" 7 | before_install: if [[ `npm --version` != 3* ]]; then npm install -g npm; fi; 8 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/gopkg.in/yaml.v2/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.4 5 | - 1.5 6 | - 1.6 7 | - 1.7 8 | - 1.8 9 | - 1.9 10 | - tip 11 | 12 | go_import_path: gopkg.in/yaml.v2 13 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/readable-stream/node_modules/isarray/index.js: -------------------------------------------------------------------------------- 1 | var toString = {}.toString; 2 | 3 | module.exports = Array.isArray || function (arr) { 4 | return toString.call(arr) == '[object Array]'; 5 | }; 6 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/github.com/golang/protobuf/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/github.com/golang/protobuf/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/fstream/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "6" 4 | - "4" 5 | - "0.10" 6 | - "0.12" 7 | before_install: 8 | - "npm config set spin false" 9 | - "npm install -g npm/npm" 10 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/strip-ansi/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | var ansiRegex = require('ansi-regex')(); 3 | 4 | module.exports = function (str) { 5 | return typeof str === 'string' ? str.replace(ansiRegex, '') : str; 6 | }; 7 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/go_below_17.go: -------------------------------------------------------------------------------- 1 | //+build !go1.7 2 | 3 | package reflect2 4 | 5 | import "unsafe" 6 | 7 | func resolveTypeOff(rtype unsafe.Pointer, off int32) unsafe.Pointer { 8 | return nil 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/pkg/errors/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go_import_path: github.com/pkg/errors 3 | go: 4 | - 1.4.3 5 | - 1.5.4 6 | - 1.6.2 7 | - 1.7.1 8 | - tip 9 | 10 | script: 11 | - go test -v ./... 12 | -------------------------------------------------------------------------------- /vendor/github.com/gin-gonic/gin/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package gin implements a HTTP web framework called gin. 3 | 4 | See https://gin-gonic.github.io/gin/ for more information about gin. 5 | */ 6 | package gin // import "github.com/gin-gonic/gin" 7 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/concat-map/example/map.js: -------------------------------------------------------------------------------- 1 | var concatMap = require('../'); 2 | var xs = [ 1, 2, 3, 4, 5, 6 ]; 3 | var ys = concatMap(xs, function (x) { 4 | return x % 2 ? [ x - 0.1, x, x + 0.1 ] : []; 5 | }); 6 | console.dir(ys); 7 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/fs-extra/docs/pathExists-sync.md: -------------------------------------------------------------------------------- 1 | # pathExistsSync(file) 2 | 3 | An alias for [`fs.existsSync()`](https://nodejs.org/api/fs.html#fs_fs_existssync_path), created for consistency with [`pathExists()`](pathExists.md). 4 | -------------------------------------------------------------------------------- /vendor/github.com/hpcloud/tail/Makefile: -------------------------------------------------------------------------------- 1 | default: test 2 | 3 | test: *.go 4 | go test -v -race ./... 5 | 6 | fmt: 7 | gofmt -w . 8 | 9 | # Run the test in an isolated environment. 10 | fulltest: 11 | docker build -t hpcloud/tail . 12 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/debug/.travis.yml: -------------------------------------------------------------------------------- 1 | 2 | language: node_js 3 | node_js: 4 | - "6" 5 | - "5" 6 | - "4" 7 | 8 | install: 9 | - make node_modules 10 | 11 | script: 12 | - make lint 13 | - make test 14 | - make coveralls 15 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/yallist/iterator.js: -------------------------------------------------------------------------------- 1 | var Yallist = require('./yallist.js') 2 | 3 | Yallist.prototype[Symbol.iterator] = function* () { 4 | for (let walker = this.head; walker; walker = walker.next) { 5 | yield walker.value 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/go_above_17.go: -------------------------------------------------------------------------------- 1 | //+build go1.7 2 | 3 | package reflect2 4 | 5 | import "unsafe" 6 | 7 | //go:linkname resolveTypeOff reflect.resolveTypeOff 8 | func resolveTypeOff(rtype unsafe.Pointer, off int32) unsafe.Pointer 9 | -------------------------------------------------------------------------------- /vendor/github.com/hpcloud/tail/tail_posix.go: -------------------------------------------------------------------------------- 1 | // +build linux darwin freebsd netbsd openbsd 2 | 3 | package tail 4 | 5 | import ( 6 | "os" 7 | ) 8 | 9 | func OpenFile(name string) (file *os.File, err error) { 10 | return os.Open(name) 11 | } 12 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/fs-extra/lib/remove/index.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | 3 | const u = require('universalify').fromCallback 4 | const rimraf = require('./rimraf') 5 | 6 | module.exports = { 7 | remove: u(rimraf), 8 | removeSync: rimraf.sync 9 | } 10 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/inherits/inherits.js: -------------------------------------------------------------------------------- 1 | try { 2 | var util = require('util'); 3 | if (typeof util.inherits !== 'function') throw ''; 4 | module.exports = util.inherits; 5 | } catch (e) { 6 | module.exports = require('./inherits_browser.js'); 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/internal/remote/syscall_dup_solaris.go: -------------------------------------------------------------------------------- 1 | // +build solaris 2 | 3 | package remote 4 | 5 | import "golang.org/x/sys/unix" 6 | 7 | func syscallDup(oldfd int, newfd int) (err error) { 8 | return unix.Dup2(oldfd, newfd) 9 | } 10 | -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- 1 | version: '3' 2 | services: 3 | mongo: 4 | image: mongo 5 | restart: always 6 | ports: 7 | - "27017:27017" 8 | environment: 9 | MONGO_INITDB_ROOT_USERNAME: mongo_user 10 | MONGO_INITDB_ROOT_PASSWORD: mongo_secret -------------------------------------------------------------------------------- /vendor/gopkg.in/fsnotify/fsnotify.v1/.gitignore: -------------------------------------------------------------------------------- 1 | # Setup a Global .gitignore for OS and editor generated files: 2 | # https://help.github.com/articles/ignoring-files 3 | # git config --global core.excludesfile ~/.gitignore_global 4 | 5 | .vagrant 6 | *.sublime-project 7 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/debug/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "env": { 3 | "browser": true, 4 | "node": true 5 | }, 6 | "rules": { 7 | "no-console": 0, 8 | "no-empty": [1, { "allowEmptyCatch": true }] 9 | }, 10 | "extends": "eslint:recommended" 11 | } 12 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/minimist/test/whitespace.js: -------------------------------------------------------------------------------- 1 | var parse = require('../'); 2 | var test = require('tape'); 3 | 4 | test('whitespace should be whitespace' , function (t) { 5 | t.plan(1); 6 | var x = parse([ '-x', '\t' ]).x; 7 | t.equal(x, '\t'); 8 | }); 9 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.8.x 5 | - 1.x 6 | 7 | before_install: 8 | - go get -t -v ./... 9 | 10 | script: 11 | - ./test.sh 12 | 13 | after_success: 14 | - bash <(curl -s https://codecov.io/bash) 15 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/concurrent/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.8.x 5 | - 1.x 6 | 7 | before_install: 8 | - go get -t -v ./... 9 | 10 | script: 11 | - ./test.sh 12 | 13 | after_success: 14 | - bash <(curl -s https://codecov.io/bash) 15 | -------------------------------------------------------------------------------- /vendor/github.com/globalsign/mgo/saslstub.go: -------------------------------------------------------------------------------- 1 | //+build !sasl 2 | 3 | package mgo 4 | 5 | import ( 6 | "fmt" 7 | ) 8 | 9 | func saslNew(cred Credential, host string) (saslStepper, error) { 10 | return nil, fmt.Errorf("SASL support not enabled during build (-tags sasl)") 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/hpcloud/tail/tail_windows.go: -------------------------------------------------------------------------------- 1 | // +build windows 2 | 3 | package tail 4 | 5 | import ( 6 | "github.com/hpcloud/tail/winfile" 7 | "os" 8 | ) 9 | 10 | func OpenFile(name string) (file *os.File, err error) { 11 | return winfile.OpenFile(name, os.O_RDONLY, 0) 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/ugorji/go/codec/goversion_vendor_gte_go17.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012-2018 Ugorji Nwoke. All rights reserved. 2 | // Use of this source code is governed by a MIT license found in the LICENSE file. 3 | 4 | // +build go1.7 5 | 6 | package codec 7 | 8 | const genCheckVendor = true 9 | -------------------------------------------------------------------------------- /vendor/github.com/ugorji/go/codec/goversion_vendor_lt_go15.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012-2018 Ugorji Nwoke. All rights reserved. 2 | // Use of this source code is governed by a MIT license found in the LICENSE file. 3 | 4 | // +build !go1.5 5 | 6 | package codec 7 | 8 | var genCheckVendor = false 9 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/internal/remote/syscall_dup_unix.go: -------------------------------------------------------------------------------- 1 | // +build !linux !arm64 2 | // +build !windows 3 | // +build !solaris 4 | 5 | package remote 6 | 7 | import "syscall" 8 | 9 | func syscallDup(oldfd int, newfd int) (err error) { 10 | return syscall.Dup2(oldfd, newfd) 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/okta/okta-jwt-verifier-golang/.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | end_of_line = lf 5 | insert_final_newline = true 6 | indent_style = space 7 | indent_size = 2 8 | charset = utf-8 9 | trim_trailing_whitespace = true 10 | 11 | [*.go] 12 | indent_style = tab 13 | indent_size = 8 -------------------------------------------------------------------------------- /pkg/http/web/node_modules/readable-stream/writable.js: -------------------------------------------------------------------------------- 1 | var Stream = require("stream") 2 | var Writable = require("./lib/_stream_writable.js") 3 | 4 | if (process.env.READABLE_STREAM === 'disable') { 5 | module.exports = Stream && Stream.Writable || Writable 6 | } else { 7 | module.exports = Writable 8 | } 9 | -------------------------------------------------------------------------------- /vendor/github.com/gin-contrib/sse/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | sudo: false 3 | go: 4 | - 1.6.4 5 | - 1.7.4 6 | - tip 7 | 8 | git: 9 | depth: 3 10 | 11 | script: 12 | - go test -v -covermode=count -coverprofile=coverage.out 13 | 14 | after_success: 15 | - bash <(curl -s https://codecov.io/bash) -------------------------------------------------------------------------------- /vendor/github.com/lestrrat-go/pdebug/autoflag_off.go: -------------------------------------------------------------------------------- 1 | // +build debug 2 | 3 | package pdebug 4 | 5 | import ( 6 | "os" 7 | "strconv" 8 | ) 9 | 10 | var Trace = false 11 | func init() { 12 | if b, err := strconv.ParseBool(os.Getenv("PDEBUG_TRACE")); err == nil && b { 13 | Trace = true 14 | } 15 | } -------------------------------------------------------------------------------- /vendor/github.com/gin-contrib/cors/.gitignore: -------------------------------------------------------------------------------- 1 | *.o 2 | *.a 3 | *.so 4 | 5 | _obj 6 | _test 7 | 8 | *.[568vq] 9 | [568vq].out 10 | 11 | *.cgo1.go 12 | *.cgo2.c 13 | _cgo_defun.c 14 | _cgo_gotypes.go 15 | _cgo_export.* 16 | 17 | _testmain.go 18 | 19 | *.exe 20 | *.test 21 | *.prof 22 | 23 | coverage.out 24 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/endian_big.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | // 5 | // +build ppc64 s390x mips mips64 6 | 7 | package unix 8 | 9 | const isBigEndian = true 10 | -------------------------------------------------------------------------------- /vendor/github.com/ugorji/go/codec/goversion_unexportedembeddedptr_gte_go110.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012-2018 Ugorji Nwoke. All rights reserved. 2 | // Use of this source code is governed by a MIT license found in the LICENSE file. 3 | 4 | // +build go1.10 5 | 6 | package codec 7 | 8 | const allowSetUnexportedEmbeddedPtr = false 9 | -------------------------------------------------------------------------------- /vendor/github.com/ugorji/go/codec/goversion_unexportedembeddedptr_lt_go110.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012-2018 Ugorji Nwoke. All rights reserved. 2 | // Use of this source code is governed by a MIT license found in the LICENSE file. 3 | 4 | // +build !go1.10 5 | 6 | package codec 7 | 8 | const allowSetUnexportedEmbeddedPtr = true 9 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/escape-string-regexp/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g; 4 | 5 | module.exports = function (str) { 6 | if (typeof str !== 'string') { 7 | throw new TypeError('Expected a string'); 8 | } 9 | 10 | return str.replace(matchOperatorsRe, '\\$&'); 11 | }; 12 | -------------------------------------------------------------------------------- /vendor/github.com/globalsign/mgo/saslimpl.go: -------------------------------------------------------------------------------- 1 | //+build sasl 2 | 3 | package mgo 4 | 5 | import ( 6 | "github.com/globalsign/mgo/internal/sasl" 7 | ) 8 | 9 | func saslNew(cred Credential, host string) (saslStepper, error) { 10 | return sasl.New(cred.Username, cred.Password, cred.Mechanism, cred.Service, host) 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - tip 4 | 5 | os: 6 | - linux 7 | - osx 8 | 9 | before_install: 10 | - go get github.com/mattn/goveralls 11 | - go get golang.org/x/tools/cmd/cover 12 | script: 13 | - $HOME/gopath/bin/goveralls -repotoken 3gHdORO5k5ziZcWMBxnd9LrMZaJs8m9x5 14 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/concurrent/go_above_19.go: -------------------------------------------------------------------------------- 1 | //+build go1.9 2 | 3 | package concurrent 4 | 5 | import "sync" 6 | 7 | // Map is a wrapper for sync.Map introduced in go1.9 8 | type Map struct { 9 | sync.Map 10 | } 11 | 12 | // NewMap creates a thread safe Map 13 | func NewMap() *Map { 14 | return &Map{} 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/language/go1_2.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build go1.2 6 | 7 | package language 8 | 9 | import "sort" 10 | 11 | var sortStable = sort.Stable 12 | -------------------------------------------------------------------------------- /pkg/http/web/app/src/githubClient.js: -------------------------------------------------------------------------------- 1 | export default { 2 | getJSONRepos(query) { 3 | return fetch('https://api.github.com/search/repositories?q=' + query).then(response => response.json()); 4 | }, 5 | getJSONRepo(id) { 6 | return fetch('https://api.github.com/repositories/' + id).then(response => response.json()) 7 | } 8 | } -------------------------------------------------------------------------------- /pkg/http/web/node_modules/minimist/test/parse_modified.js: -------------------------------------------------------------------------------- 1 | var parse = require('../'); 2 | var test = require('tape'); 3 | 4 | test('parse with modifier functions' , function (t) { 5 | t.plan(1); 6 | 7 | var argv = parse([ '-b', '123' ], { boolean: 'b' }); 8 | t.deepEqual(argv, { b: true, _: ['123'] }); 9 | }); 10 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.8.x 5 | - 1.x 6 | 7 | before_install: 8 | - go get -t -v ./... 9 | - go get -t -v github.com/modern-go/reflect2-tests/... 10 | 11 | script: 12 | - ./test.sh 13 | 14 | after_success: 15 | - bash <(curl -s https://codecov.io/bash) 16 | -------------------------------------------------------------------------------- /vendor/github.com/hpcloud/tail/appveyor.yml: -------------------------------------------------------------------------------- 1 | version: 0.{build} 2 | skip_tags: true 3 | cache: C:\Users\appveyor\AppData\Local\NuGet\Cache 4 | build_script: 5 | - SET GOPATH=c:\workspace 6 | - go test -v -race ./... 7 | test: off 8 | clone_folder: c:\workspace\src\github.com\hpcloud\tail 9 | branches: 10 | only: 11 | - master 12 | -------------------------------------------------------------------------------- /vendor/github.com/gin-gonic/gin/context_appengine.go: -------------------------------------------------------------------------------- 1 | // +build appengine 2 | 3 | // Copyright 2017 Manu Martinez-Almeida. All rights reserved. 4 | // Use of this source code is governed by a MIT style 5 | // license that can be found in the LICENSE file. 6 | 7 | package gin 8 | 9 | func init() { 10 | defaultAppEngine = true 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/hpcloud/tail/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | script: 4 | - go test -race -v ./... 5 | 6 | go: 7 | - 1.5 8 | - 1.6 9 | - 1.7 10 | - 1.8 11 | - tip 12 | 13 | matrix: 14 | allow_failures: 15 | - go: tip 16 | 17 | install: 18 | - go get gopkg.in/fsnotify/fsnotify.v1 19 | - go get gopkg.in/tomb.v1 20 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_others.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | // +build !appengine 3 | 4 | package isatty 5 | 6 | // IsCygwinTerminal return true if the file descriptor is a cygwin or msys2 7 | // terminal. This is also always false on this environment. 8 | func IsCygwinTerminal(fd uintptr) bool { 9 | return false 10 | } 11 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/debug/src/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Detect Electron renderer process, which is node, but we should 3 | * treat as a browser. 4 | */ 5 | 6 | if (typeof process !== 'undefined' && process.type === 'renderer') { 7 | module.exports = require('./browser.js'); 8 | } else { 9 | module.exports = require('./node.js'); 10 | } 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/endian_little.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | // 5 | // +build 386 amd64 amd64p32 arm arm64 ppc64le mipsle mips64le 6 | 7 | package unix 8 | 9 | const isBigEndian = false 10 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/reporters/stenographer/support/go-isatty/isatty_appengine.go: -------------------------------------------------------------------------------- 1 | // +build appengine 2 | 3 | package isatty 4 | 5 | // IsTerminal returns true if the file descriptor is terminal which 6 | // is always false on on appengine classic which is a sandboxed PaaS. 7 | func IsTerminal(fd uintptr) bool { 8 | return false 9 | } 10 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/pseudomap/map.js: -------------------------------------------------------------------------------- 1 | if (process.env.npm_package_name === 'pseudomap' && 2 | process.env.npm_lifecycle_script === 'test') 3 | process.env.TEST_PSEUDOMAP = 'true' 4 | 5 | if (typeof Map === 'function' && !process.env.TEST_PSEUDOMAP) { 6 | module.exports = Map 7 | } else { 8 | module.exports = require('./pseudomap') 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/go_below_19.go: -------------------------------------------------------------------------------- 1 | //+build !go1.9 2 | 3 | package reflect2 4 | 5 | import ( 6 | "unsafe" 7 | ) 8 | 9 | //go:linkname makemap reflect.makemap 10 | func makemap(rtype unsafe.Pointer) (m unsafe.Pointer) 11 | 12 | func makeMapWithSize(rtype unsafe.Pointer, cap int) unsafe.Pointer { 13 | return makemap(rtype) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/internal/specrunner/random_id.go: -------------------------------------------------------------------------------- 1 | package specrunner 2 | 3 | import ( 4 | "crypto/rand" 5 | "fmt" 6 | ) 7 | 8 | func randomID() string { 9 | b := make([]byte, 8) 10 | _, err := rand.Read(b) 11 | if err != nil { 12 | return "" 13 | } 14 | return fmt.Sprintf("%x-%x-%x-%x", b[0:2], b[2:4], b[4:6], b[6:8]) 15 | } 16 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/fs-extra/lib/util/buffer.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable node/no-deprecated-api */ 2 | module.exports = function (size) { 3 | if (typeof Buffer.allocUnsafe === 'function') { 4 | try { 5 | return Buffer.allocUnsafe(size) 6 | } catch (e) { 7 | return new Buffer(size) 8 | } 9 | } 10 | return new Buffer(size) 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/ugorji/go/codec/goversion_vendor_eq_go15.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012-2018 Ugorji Nwoke. All rights reserved. 2 | // Use of this source code is governed by a MIT license found in the LICENSE file. 3 | 4 | // +build go1.5,!go1.6 5 | 6 | package codec 7 | 8 | import "os" 9 | 10 | var genCheckVendor = os.Getenv("GO15VENDOREXPERIMENT") == "1" 11 | -------------------------------------------------------------------------------- /vendor/github.com/ugorji/go/codec/goversion_vendor_eq_go16.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012-2018 Ugorji Nwoke. All rights reserved. 2 | // Use of this source code is governed by a MIT license found in the LICENSE file. 3 | 4 | // +build go1.6,!go1.7 5 | 6 | package codec 7 | 8 | import "os" 9 | 10 | var genCheckVendor = os.Getenv("GO15VENDOREXPERIMENT") != "0" 11 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/fs-extra/lib/path-exists/index.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | const u = require('universalify').fromPromise 3 | const fs = require('../fs') 4 | 5 | function pathExists (path) { 6 | return fs.access(path).then(() => true).catch(() => false) 7 | } 8 | 9 | module.exports = { 10 | pathExists: u(pathExists), 11 | pathExistsSync: fs.existsSync 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/gin-gonic/gin/response_writer_1.7.go: -------------------------------------------------------------------------------- 1 | // +build !go1.8 2 | 3 | // Copyright 2018 Gin Core Team. All rights reserved. 4 | // Use of this source code is governed by a MIT style 5 | // license that can be found in the LICENSE file. 6 | 7 | package gin 8 | 9 | // ResponseWriter ... 10 | type ResponseWriter interface { 11 | responseWriterBase 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/go_above_19.go: -------------------------------------------------------------------------------- 1 | //+build go1.9 2 | 3 | package reflect2 4 | 5 | import ( 6 | "unsafe" 7 | ) 8 | 9 | //go:linkname makemap reflect.makemap 10 | func makemap(rtype unsafe.Pointer, cap int) (m unsafe.Pointer) 11 | 12 | func makeMapWithSize(rtype unsafe.Pointer, cap int) unsafe.Pointer { 13 | return makemap(rtype, cap) 14 | } 15 | -------------------------------------------------------------------------------- /pkg/core/repository.go: -------------------------------------------------------------------------------- 1 | package core 2 | 3 | // Repository defines the API repository implementation should follow. 4 | type Repository interface { 5 | Find(id string) (*Kudo, error) 6 | FindAll(selector map[string]interface{}) ([]*Kudo, error) 7 | Delete(kudo *Kudo) error 8 | Update(kudo *Kudo) error 9 | Create(kudo ...*Kudo) error 10 | Count() (int, error) 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/test.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | echo "" > coverage.txt 5 | 6 | for d in $(go list ./... | grep -v vendor); do 7 | go test -coverprofile=profile.out -coverpkg=github.com/json-iterator/go $d 8 | if [ -f profile.out ]; then 9 | cat profile.out >> coverage.txt 10 | rm profile.out 11 | fi 12 | done 13 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/types/code_location.go: -------------------------------------------------------------------------------- 1 | package types 2 | 3 | import ( 4 | "fmt" 5 | ) 6 | 7 | type CodeLocation struct { 8 | FileName string 9 | LineNumber int 10 | FullStackTrace string 11 | } 12 | 13 | func (codeLocation CodeLocation) String() string { 14 | return fmt.Sprintf("%s:%d", codeLocation.FileName, codeLocation.LineNumber) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/lestrrat-go/pdebug/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | sudo: false 3 | go: 4 | - 1.6 5 | - 1.7 6 | - tip 7 | install: 8 | - go get -t -v ./... 9 | - go get -t -tags debug0 -v ./... 10 | script: 11 | - go test -v ./... 12 | - go test -tags debug ./... 13 | - PDEBUG_TRACE=1 go test -tags debug ./... 14 | - go test -tags debug0 ./... 15 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/internal/remote/syscall_dup_linux_arm64.go: -------------------------------------------------------------------------------- 1 | // +build linux,arm64 2 | 3 | package remote 4 | 5 | import "syscall" 6 | 7 | // linux_arm64 doesn't have syscall.Dup2 which ginkgo uses, so 8 | // use the nearly identical syscall.Dup3 instead 9 | func syscallDup(oldfd int, newfd int) (err error) { 10 | return syscall.Dup3(oldfd, newfd, 0) 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/concurrent/test.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | echo "" > coverage.txt 5 | 6 | for d in $(go list ./... | grep -v vendor); do 7 | go test -coverprofile=profile.out -coverpkg=github.com/modern-go/concurrent $d 8 | if [ -f profile.out ]; then 9 | cat profile.out >> coverage.txt 10 | rm profile.out 11 | fi 12 | done 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/constants.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris 6 | 7 | package unix 8 | 9 | const ( 10 | R_OK = 0x4 11 | W_OK = 0x2 12 | X_OK = 0x1 13 | ) 14 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/buffer-from/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "buffer-from", 3 | "version": "0.1.2", 4 | "license": "MIT", 5 | "repository": "LinusU/buffer-from", 6 | "scripts": { 7 | "test": "standard && node test" 8 | }, 9 | "devDependencies": { 10 | "standard": "^7.1.2" 11 | }, 12 | "keywords": [ 13 | "buffer", 14 | "buffer from" 15 | ] 16 | } 17 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/cross-spawn/lib/hasBrokenSpawn.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = (function () { 4 | if (process.platform !== 'win32') { 5 | return false; 6 | } 7 | var nodeVer = process.version.substr(1).split('.').map(function (num) { 8 | return parseInt(num, 10); 9 | }); 10 | return (nodeVer[0] === 0 && nodeVer[1] < 12); 11 | })(); 12 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/fs-extra/lib/json/jsonfile.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | 3 | const u = require('universalify').fromCallback 4 | const jsonFile = require('jsonfile') 5 | 6 | module.exports = { 7 | // jsonfile exports 8 | readJson: u(jsonFile.readFile), 9 | readJsonSync: jsonFile.readFileSync, 10 | writeJson: u(jsonFile.writeFile), 11 | writeJsonSync: jsonFile.writeFileSync 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/concurrent/log.go: -------------------------------------------------------------------------------- 1 | package concurrent 2 | 3 | import ( 4 | "os" 5 | "log" 6 | "io/ioutil" 7 | ) 8 | 9 | // ErrorLogger is used to print out error, can be set to writer other than stderr 10 | var ErrorLogger = log.New(os.Stderr, "", 0) 11 | 12 | // InfoLogger is used to print informational message, default to off 13 | var InfoLogger = log.New(ioutil.Discard, "", 0) -------------------------------------------------------------------------------- /vendor/github.com/ugorji/go/codec/goversion_makemap_lt_go19.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012-2018 Ugorji Nwoke. All rights reserved. 2 | // Use of this source code is governed by a MIT license found in the LICENSE file. 3 | 4 | // +build !go1.9 5 | 6 | package codec 7 | 8 | import "reflect" 9 | 10 | func makeMapReflect(t reflect.Type, size int) reflect.Value { 11 | return reflect.MakeMap(t) 12 | } 13 | -------------------------------------------------------------------------------- /vendor/gopkg.in/fsnotify/fsnotify.v1/open_mode_bsd.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build freebsd openbsd netbsd dragonfly 6 | 7 | package fsnotify 8 | 9 | import "golang.org/x/sys/unix" 10 | 11 | const openMode = unix.O_NONBLOCK | unix.O_RDONLY 12 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/util-deprecate/History.md: -------------------------------------------------------------------------------- 1 | 2 | 1.0.2 / 2015-10-07 3 | ================== 4 | 5 | * use try/catch when checking `localStorage` (#3, @kumavis) 6 | 7 | 1.0.1 / 2014-11-25 8 | ================== 9 | 10 | * browser: use `console.warn()` for deprecation calls 11 | * browser: more jsdocs 12 | 13 | 1.0.0 / 2014-04-30 14 | ================== 15 | 16 | * initial commit 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_amd64_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build amd64,linux 6 | // +build !gccgo 7 | 8 | package unix 9 | 10 | import "syscall" 11 | 12 | //go:noescape 13 | func gettimeofday(tv *Timeval) (err syscall.Errno) 14 | -------------------------------------------------------------------------------- /pkg/http/web/app/public/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "short_name": "React App", 3 | "name": "Create React App Sample", 4 | "icons": [ 5 | { 6 | "src": "favicon.ico", 7 | "sizes": "64x64 32x32 24x24 16x16", 8 | "type": "image/x-icon" 9 | } 10 | ], 11 | "start_url": ".", 12 | "display": "standalone", 13 | "theme_color": "#000000", 14 | "background_color": "#ffffff" 15 | } 16 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/builtins/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "builtins", 3 | "version": "1.0.3", 4 | "description": "List of node.js builtin modules", 5 | "repository": "juliangruber/builtins", 6 | "license": "MIT", 7 | "main": "builtins.json", 8 | "publishConfig": { 9 | "registry": "https://registry.npmjs.org" 10 | }, 11 | "scripts": { 12 | "test": "node test.js" 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/fs-extra/lib/util/assign.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | 3 | // simple mutable assign 4 | function assign () { 5 | const args = [].slice.call(arguments).filter(i => i) 6 | const dest = args.shift() 7 | args.forEach(src => { 8 | Object.keys(src).forEach(key => { 9 | dest[key] = src[key] 10 | }) 11 | }) 12 | 13 | return dest 14 | } 15 | 16 | module.exports = assign 17 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/mkdirp/bin/usage.txt: -------------------------------------------------------------------------------- 1 | usage: mkdirp [DIR1,DIR2..] {OPTIONS} 2 | 3 | Create each supplied directory including any necessary parent directories that 4 | don't yet exist. 5 | 6 | If the directory already exists, do nothing. 7 | 8 | OPTIONS are: 9 | 10 | -m, --mode If a directory needs to be created, set the mode as an octal 11 | permission string. 12 | 13 | -------------------------------------------------------------------------------- /vendor/gopkg.in/fsnotify/fsnotify.v1/open_mode_darwin.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build darwin 6 | 7 | package fsnotify 8 | 9 | import "golang.org/x/sys/unix" 10 | 11 | // note: this constant is not defined on BSD 12 | const openMode = unix.O_EVTONLY 13 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/test.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | echo "" > coverage.txt 5 | 6 | for d in $(go list github.com/modern-go/reflect2-tests/... | grep -v vendor); do 7 | go test -coverprofile=profile.out -coverpkg=github.com/modern-go/reflect2 $d 8 | if [ -f profile.out ]; then 9 | cat profile.out >> coverage.txt 10 | rm profile.out 11 | fi 12 | done 13 | -------------------------------------------------------------------------------- /vendor/github.com/pkg/errors/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | *.test 24 | *.prof 25 | -------------------------------------------------------------------------------- /pkg/http/web/app/.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | 6 | # testing 7 | /coverage 8 | 9 | # production 10 | /build 11 | 12 | # misc 13 | .DS_Store 14 | .env.local 15 | .env.development.local 16 | .env.test.local 17 | .env.production.local 18 | 19 | npm-debug.log* 20 | yarn-debug.log* 21 | yarn-error.log* 22 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/fs-extra/docs/remove-sync.md: -------------------------------------------------------------------------------- 1 | # removeSync(path) 2 | 3 | Removes a file or directory. The directory can have contents. Like `rm -rf`. 4 | 5 | - `path` `` 6 | 7 | ## Example: 8 | 9 | ```js 10 | const fs = require('fs-extra') 11 | 12 | // remove file 13 | fs.removeSync('/tmp/myfile') 14 | 15 | fs.removeSync('/home/jprichardson') // I just deleted my entire HOME directory. 16 | ``` 17 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/fs-extra/lib/mkdirs/index.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | const u = require('universalify').fromCallback 3 | const mkdirs = u(require('./mkdirs')) 4 | const mkdirsSync = require('./mkdirs-sync') 5 | 6 | module.exports = { 7 | mkdirs: mkdirs, 8 | mkdirsSync: mkdirsSync, 9 | // alias 10 | mkdirp: mkdirs, 11 | mkdirpSync: mkdirsSync, 12 | ensureDir: mkdirs, 13 | ensureDirSync: mkdirsSync 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/lestrrat-go/pdebug/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | *.test 24 | *.prof 25 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/internal/remote/output_interceptor.go: -------------------------------------------------------------------------------- 1 | package remote 2 | 3 | import "os" 4 | 5 | /* 6 | The OutputInterceptor is used by the ForwardingReporter to 7 | intercept and capture all stdin and stderr output during a test run. 8 | */ 9 | type OutputInterceptor interface { 10 | StartInterceptingOutput() error 11 | StopInterceptingAndReturnOutput() (string, error) 12 | StreamTo(*os.File) 13 | } 14 | -------------------------------------------------------------------------------- /pkg/http/web/app/src/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ReactDOM from 'react-dom'; 3 | import { Router } from 'react-router-dom' 4 | import { createBrowserHistory } from 'history' 5 | 6 | import Main from './Main'; 7 | 8 | const history = createBrowserHistory(); 9 | 10 | ReactDOM.render(( 11 | 12 |
13 | 14 | ), document.getElementById('root')) -------------------------------------------------------------------------------- /pkg/http/web/node_modules/readable-stream/readable-browser.js: -------------------------------------------------------------------------------- 1 | exports = module.exports = require('./lib/_stream_readable.js'); 2 | exports.Stream = exports; 3 | exports.Readable = exports; 4 | exports.Writable = require('./lib/_stream_writable.js'); 5 | exports.Duplex = require('./lib/_stream_duplex.js'); 6 | exports.Transform = require('./lib/_stream_transform.js'); 7 | exports.PassThrough = require('./lib/_stream_passthrough.js'); 8 | -------------------------------------------------------------------------------- /vendor/github.com/gin-gonic/gin/json/json.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 Bo-Yi Wu. All rights reserved. 2 | // Use of this source code is governed by a MIT style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !jsoniter 6 | 7 | package json 8 | 9 | import "encoding/json" 10 | 11 | var ( 12 | Marshal = json.Marshal 13 | MarshalIndent = json.MarshalIndent 14 | NewDecoder = json.NewDecoder 15 | ) 16 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/builtins/Readme.md: -------------------------------------------------------------------------------- 1 | 2 | # builtins 3 | 4 | List of node.js [builtin modules](http://nodejs.org/api/). 5 | 6 | [![build status](https://secure.travis-ci.org/juliangruber/builtins.svg)](http://travis-ci.org/juliangruber/builtins) 7 | 8 | ## Example 9 | 10 | ```js 11 | var builtins = require('builtins'); 12 | 13 | assert(builtins.indexOf('http') > -1); 14 | ``` 15 | 16 | ## License 17 | 18 | MIT 19 | -------------------------------------------------------------------------------- /vendor/github.com/gin-gonic/gin/coverage.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | 5 | echo "mode: count" > coverage.out 6 | 7 | for d in $(go list ./... | grep -E 'gin$|binding$|render$' | grep -v 'examples'); do 8 | go test -v -covermode=count -coverprofile=profile.out $d 9 | if [ -f profile.out ]; then 10 | cat profile.out | grep -v "mode:" >> coverage.out 11 | rm profile.out 12 | fi 13 | done 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/encoding/japanese/all.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package japanese 6 | 7 | import ( 8 | "golang.org/x/text/encoding" 9 | ) 10 | 11 | // All is a list of all defined encodings in this package. 12 | var All = []encoding.Encoding{EUCJP, ISO2022JP, ShiftJIS} 13 | -------------------------------------------------------------------------------- /pkg/http/web/app/public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | React + Go Single-Page App 7 | 8 | 9 | 12 |
13 | 14 | 15 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/concat-map/index.js: -------------------------------------------------------------------------------- 1 | module.exports = function (xs, fn) { 2 | var res = []; 3 | for (var i = 0; i < xs.length; i++) { 4 | var x = fn(xs[i], i); 5 | if (isArray(x)) res.push.apply(res, x); 6 | else res.push(x); 7 | } 8 | return res; 9 | }; 10 | 11 | var isArray = Array.isArray || function (xs) { 12 | return Object.prototype.toString.call(xs) === '[object Array]'; 13 | }; 14 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/internal/leafnodes/interfaces.go: -------------------------------------------------------------------------------- 1 | package leafnodes 2 | 3 | import ( 4 | "github.com/onsi/ginkgo/types" 5 | ) 6 | 7 | type BasicNode interface { 8 | Type() types.SpecComponentType 9 | Run() (types.SpecState, types.SpecFailure) 10 | CodeLocation() types.CodeLocation 11 | } 12 | 13 | type SubjectNode interface { 14 | BasicNode 15 | 16 | Text() string 17 | Flag() types.FlagType 18 | Samples() int 19 | } 20 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/debug/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "debug", 3 | "repo": "visionmedia/debug", 4 | "description": "small debugging utility", 5 | "version": "2.6.9", 6 | "keywords": [ 7 | "debug", 8 | "log", 9 | "debugger" 10 | ], 11 | "main": "src/browser.js", 12 | "scripts": [ 13 | "src/browser.js", 14 | "src/debug.js" 15 | ], 16 | "dependencies": { 17 | "rauchg/ms.js": "0.7.1" 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/encoding/simplifiedchinese/all.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package simplifiedchinese 6 | 7 | import ( 8 | "golang.org/x/text/encoding" 9 | ) 10 | 11 | // All is a list of all defined encodings in this package. 12 | var All = []encoding.Encoding{GB18030, GBK, HZGB2312} 13 | -------------------------------------------------------------------------------- /vendor/github.com/ugorji/go/codec/goversion_arrayof_gte_go15.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012-2018 Ugorji Nwoke. All rights reserved. 2 | // Use of this source code is governed by a MIT license found in the LICENSE file. 3 | 4 | // +build go1.5 5 | 6 | package codec 7 | 8 | import "reflect" 9 | 10 | const reflectArrayOfSupported = true 11 | 12 | func reflectArrayOf(count int, elem reflect.Type) reflect.Type { 13 | return reflect.ArrayOf(count, elem) 14 | } 15 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/uid-number/README.md: -------------------------------------------------------------------------------- 1 | Use this module to convert a username/groupname to a uid/gid number. 2 | 3 | Usage: 4 | 5 | ``` 6 | npm install uid-number 7 | ``` 8 | 9 | Then, in your node program: 10 | 11 | ```javascript 12 | var uidNumber = require("uid-number") 13 | uidNumber("isaacs", function (er, uid, gid) { 14 | // gid is null because we didn't ask for a group name 15 | // uid === 24561 because that's my number. 16 | }) 17 | ``` 18 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - 1.6.x 4 | - 1.7.x 5 | - 1.8.x 6 | - 1.9.x 7 | - 1.10.x 8 | 9 | install: 10 | - go get -v -t ./... 11 | - go get golang.org/x/tools/cmd/cover 12 | - go get github.com/onsi/gomega 13 | - go install github.com/onsi/ginkgo/ginkgo 14 | - export PATH=$PATH:$HOME/gopath/bin 15 | 16 | script: $HOME/gopath/bin/ginkgo -r --randomizeAllSpecs --randomizeSuites --race --trace && go vet 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/aliases.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris 6 | // +build go1.9 7 | 8 | package unix 9 | 10 | import "syscall" 11 | 12 | type Signal = syscall.Signal 13 | type Errno = syscall.Errno 14 | type SysProcAttr = syscall.SysProcAttr 15 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/block-stream/README.md: -------------------------------------------------------------------------------- 1 | # block-stream 2 | 3 | A stream of blocks. 4 | 5 | Write data into it, and it'll output data in buffer blocks the size you 6 | specify, padding with zeroes if necessary. 7 | 8 | ```javascript 9 | var block = new BlockStream(512) 10 | fs.createReadStream("some-file").pipe(block) 11 | block.pipe(fs.createWriteStream("block-file")) 12 | ``` 13 | 14 | When `.end()` or `.flush()` is called, it'll pad the block with zeroes. 15 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | set -x 4 | 5 | if [ ! -d /tmp/build-golang/src/github.com/json-iterator ]; then 6 | mkdir -p /tmp/build-golang/src/github.com/json-iterator 7 | ln -s $PWD /tmp/build-golang/src/github.com/json-iterator/go 8 | fi 9 | export GOPATH=/tmp/build-golang 10 | go get -u github.com/golang/dep/cmd/dep 11 | cd /tmp/build-golang/src/github.com/json-iterator/go 12 | exec $GOPATH/bin/dep ensure -update 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/pagesize_unix.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris 6 | 7 | // For Unix, get the pagesize from the runtime. 8 | 9 | package unix 10 | 11 | import "syscall" 12 | 13 | func Getpagesize() int { 14 | return syscall.Getpagesize() 15 | } 16 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/readable-stream/node_modules/isarray/test.js: -------------------------------------------------------------------------------- 1 | var isArray = require('./'); 2 | var test = require('tape'); 3 | 4 | test('is array', function(t){ 5 | t.ok(isArray([])); 6 | t.notOk(isArray({})); 7 | t.notOk(isArray(null)); 8 | t.notOk(isArray(false)); 9 | 10 | var obj = {}; 11 | obj[0] = true; 12 | t.notOk(isArray(obj)); 13 | 14 | var arr = []; 15 | arr.foo = 'bar'; 16 | t.ok(isArray(arr)); 17 | 18 | t.end(); 19 | }); 20 | 21 | -------------------------------------------------------------------------------- /vendor/github.com/lestrrat-go/jwx/jwa/jwa.go: -------------------------------------------------------------------------------- 1 | //go:generate go run internal/cmd/gentypes/main.go 2 | 3 | // Package jwa defines the various algorithm described in https://tools.ietf.org/html/rfc7518 4 | package jwa 5 | 6 | // Size returns the size of the EllipticCurveAlgorithm 7 | func (crv EllipticCurveAlgorithm) Size() int { 8 | switch crv { 9 | case P256: 10 | return 32 11 | case P384: 12 | return 48 13 | case P521: 14 | return 66 15 | } 16 | return 0 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/matchers/attributes_slice.go: -------------------------------------------------------------------------------- 1 | package matchers 2 | 3 | import ( 4 | "encoding/xml" 5 | "strings" 6 | ) 7 | 8 | type attributesSlice []xml.Attr 9 | 10 | func (attrs attributesSlice) Len() int { return len(attrs) } 11 | func (attrs attributesSlice) Less(i, j int) bool { 12 | return strings.Compare(attrs[i].Name.Local, attrs[j].Name.Local) == -1 13 | } 14 | func (attrs attributesSlice) Swap(i, j int) { attrs[i], attrs[j] = attrs[j], attrs[i] } 15 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/xtend/mutable.js: -------------------------------------------------------------------------------- 1 | module.exports = extend 2 | 3 | var hasOwnProperty = Object.prototype.hasOwnProperty; 4 | 5 | function extend(target) { 6 | for (var i = 1; i < arguments.length; i++) { 7 | var source = arguments[i] 8 | 9 | for (var key in source) { 10 | if (hasOwnProperty.call(source, key)) { 11 | target[key] = source[key] 12 | } 13 | } 14 | } 15 | 16 | return target 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/ugorji/go/codec/goversion_makemap_gte_go19.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012-2018 Ugorji Nwoke. All rights reserved. 2 | // Use of this source code is governed by a MIT license found in the LICENSE file. 3 | 4 | // +build go1.9 5 | 6 | package codec 7 | 8 | import "reflect" 9 | 10 | func makeMapReflect(t reflect.Type, size int) reflect.Value { 11 | if size < 0 { 12 | return reflect.MakeMapWithSize(t, 4) 13 | } 14 | return reflect.MakeMapWithSize(t, size) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/language/common.go: -------------------------------------------------------------------------------- 1 | // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. 2 | 3 | package language 4 | 5 | // This file contains code common to the maketables.go and the package code. 6 | 7 | // langAliasType is the type of an alias in langAliasMap. 8 | type langAliasType int8 9 | 10 | const ( 11 | langDeprecated langAliasType = iota 12 | langMacro 13 | langLegacy 14 | 15 | langAliasTypeUnknown langAliasType = -1 16 | ) 17 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/buffer-from/test.js: -------------------------------------------------------------------------------- 1 | var bufferFrom = require('./') 2 | var assert = require('assert') 3 | 4 | assert.equal(bufferFrom([1, 2, 3, 4]).toString('hex'), '01020304') 5 | 6 | var arr = new Uint8Array([1, 2, 3, 4]) 7 | assert.equal(bufferFrom(arr.buffer, 1, 2).toString('hex'), '0203') 8 | 9 | assert.equal(bufferFrom('test', 'utf8').toString('hex'), '74657374') 10 | 11 | var buf = bufferFrom('test') 12 | assert.equal(bufferFrom(buf).toString('hex'), '74657374') 13 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/debug/src/inspector-log.js: -------------------------------------------------------------------------------- 1 | module.exports = inspectorLog; 2 | 3 | // black hole 4 | const nullStream = new (require('stream').Writable)(); 5 | nullStream._write = () => {}; 6 | 7 | /** 8 | * Outputs a `console.log()` to the Node.js Inspector console *only*. 9 | */ 10 | function inspectorLog() { 11 | const stdout = console._stdout; 12 | console._stdout = nullStream; 13 | console.log.apply(console, arguments); 14 | console._stdout = stdout; 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/ugorji/go/codec/goversion_arrayof_lt_go15.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012-2018 Ugorji Nwoke. All rights reserved. 2 | // Use of this source code is governed by a MIT license found in the LICENSE file. 3 | 4 | // +build !go1.5 5 | 6 | package codec 7 | 8 | import "reflect" 9 | 10 | const reflectArrayOfSupported = false 11 | 12 | func reflectArrayOf(count int, elem reflect.Type) reflect.Type { 13 | panic("codec: reflect.ArrayOf unsupported in this go version") 14 | } 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/fcntl_linux_32bit.go: -------------------------------------------------------------------------------- 1 | // +build linux,386 linux,arm linux,mips linux,mipsle 2 | 3 | // Copyright 2014 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package unix 8 | 9 | func init() { 10 | // On 32-bit Linux systems, the fcntl syscall that matches Go's 11 | // Flock_t type is SYS_FCNTL64, not SYS_FCNTL. 12 | fcntl64Syscall = SYS_FCNTL64 13 | } 14 | -------------------------------------------------------------------------------- /vendor/gopkg.in/go-playground/validator.v8/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | *.test 24 | *.prof 25 | *.test 26 | *.out 27 | *.txt 28 | cover.html 29 | README.html -------------------------------------------------------------------------------- /pkg/core/kudo.go: -------------------------------------------------------------------------------- 1 | package core 2 | 3 | // Kudo represents a oos kudo. 4 | type Kudo struct { 5 | UserID string `json:"user_id" bson:"userId"` 6 | RepoID string `json:"id" bson:"repoId"` 7 | RepoName string `json:"full_name" bson:"repoName"` 8 | RepoURL string `json:"html_url" bson:"repoUrl"` 9 | Language string `json:"language" bson:"language"` 10 | Description string `json:"description" bson:"description"` 11 | Notes string `json:"notes" bson:"notes"` 12 | } 13 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/tar/lib/global-header-writer.js: -------------------------------------------------------------------------------- 1 | module.exports = GlobalHeaderWriter 2 | 3 | var ExtendedHeaderWriter = require("./extended-header-writer.js") 4 | , inherits = require("inherits") 5 | 6 | inherits(GlobalHeaderWriter, ExtendedHeaderWriter) 7 | 8 | function GlobalHeaderWriter (props) { 9 | if (!(this instanceof GlobalHeaderWriter)) { 10 | return new GlobalHeaderWriter(props) 11 | } 12 | ExtendedHeaderWriter.call(this, props) 13 | this.props.type = "g" 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/gin-contrib/cors/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | sudo: false 3 | 4 | go: 5 | - 1.6.x 6 | - 1.7.x 7 | - 1.8.x 8 | - tip 9 | 10 | script: 11 | - go test -v -covermode=atomic -coverprofile=coverage.out 12 | 13 | after_success: 14 | - bash <(curl -s https://codecov.io/bash) 15 | 16 | notifications: 17 | webhooks: 18 | urls: 19 | - https://webhooks.gitter.im/e/acc2c57482e94b44f557 20 | on_success: change 21 | on_failure: always 22 | on_start: false 23 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - 1.6.x 4 | - 1.7.x 5 | - 1.8.x 6 | - 1.9.x 7 | - 1.10.x 8 | - 1.11.x 9 | 10 | install: 11 | - env GO111MODULE=on go get -v ./... 12 | - env GO111MODULE=on go build ./... 13 | - go get github.com/onsi/ginkgo 14 | - go install github.com/onsi/ginkgo/ginkgo 15 | 16 | script: env GO111MODULE=on $HOME/gopath/bin/ginkgo -p -r --randomizeAllSpecs --failOnPending --randomizeSuites --race && env GO111MODULE=on go vet 17 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/xtend/immutable.js: -------------------------------------------------------------------------------- 1 | module.exports = extend 2 | 3 | var hasOwnProperty = Object.prototype.hasOwnProperty; 4 | 5 | function extend() { 6 | var target = {} 7 | 8 | for (var i = 0; i < arguments.length; i++) { 9 | var source = arguments[i] 10 | 11 | for (var key in source) { 12 | if (hasOwnProperty.call(source, key)) { 13 | target[key] = source[key] 14 | } 15 | } 16 | } 17 | 18 | return target 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/gin-gonic/gin/json/jsoniter.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 Bo-Yi Wu. All rights reserved. 2 | // Use of this source code is governed by a MIT style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build jsoniter 6 | 7 | package json 8 | 9 | import "github.com/json-iterator/go" 10 | 11 | var ( 12 | json = jsoniter.ConfigCompatibleWithStandardLibrary 13 | Marshal = json.Marshal 14 | MarshalIndent = json.MarshalIndent 15 | NewDecoder = json.NewDecoder 16 | ) 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/language/Makefile: -------------------------------------------------------------------------------- 1 | # Copyright 2013 The Go Authors. All rights reserved. 2 | # Use of this source code is governed by a BSD-style 3 | # license that can be found in the LICENSE file. 4 | 5 | CLEANFILES+=maketables 6 | 7 | maketables: maketables.go 8 | go build $^ 9 | 10 | tables: maketables 11 | ./maketables > tables.go 12 | gofmt -w -s tables.go 13 | 14 | # Build (but do not run) maketables during testing, 15 | # just to make sure it still compiles. 16 | testshort: maketables 17 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/fs-extra/docs/emptyDir-sync.md: -------------------------------------------------------------------------------- 1 | # emptyDirSync(dir) 2 | 3 | Ensures that a directory is empty. Deletes directory contents if the directory is not empty. If the directory does not exist, it is created. The directory itself is not deleted. 4 | 5 | **Alias:** `emptydirSync()` 6 | 7 | - `dir` `` 8 | 9 | ## Example: 10 | 11 | ```js 12 | const fs = require('fs-extra') 13 | 14 | // assume this directory has a lot of files and folders 15 | fs.emptyDirSync('/tmp/some/dir') 16 | ``` 17 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/fs-extra/lib/json/output-json-sync.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | 3 | const fs = require('graceful-fs') 4 | const path = require('path') 5 | const mkdir = require('../mkdirs') 6 | const jsonFile = require('./jsonfile') 7 | 8 | function outputJsonSync (file, data, options) { 9 | const dir = path.dirname(file) 10 | 11 | if (!fs.existsSync(dir)) { 12 | mkdir.mkdirsSync(dir) 13 | } 14 | 15 | jsonFile.writeJsonSync(file, data, options) 16 | } 17 | 18 | module.exports = outputJsonSync 19 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/tar/examples/extracter.js: -------------------------------------------------------------------------------- 1 | var tar = require("../tar.js") 2 | , fs = require("fs") 3 | 4 | 5 | function onError(err) { 6 | console.error('An error occurred:', err) 7 | } 8 | 9 | function onEnd() { 10 | console.log('Extracted!') 11 | } 12 | 13 | var extractor = tar.Extract({path: __dirname + "/extract"}) 14 | .on('error', onError) 15 | .on('end', onEnd); 16 | 17 | fs.createReadStream(__dirname + "/../test/fixtures/c.tar") 18 | .on('error', onError) 19 | .pipe(extractor); 20 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/fs-extra/docs/ensureDir-sync.md: -------------------------------------------------------------------------------- 1 | # ensureDirSync(dir) 2 | 3 | Ensures that the directory exists. If the directory structure does not exist, it is created. Like `mkdir -p`. 4 | 5 | **Aliases:** `mkdirsSync()`, `mkdirpSync()` 6 | 7 | - `dir` `` 8 | 9 | ## Example: 10 | 11 | ```js 12 | const fs = require('fs-extra') 13 | 14 | const dir = '/tmp/this/path/does/not/exist' 15 | fs.ensureDirSync(dir) 16 | // dir has now been created, including the directory it is to be placed in 17 | ``` 18 | -------------------------------------------------------------------------------- /vendor/github.com/lestrrat-go/jwx/internal/option/option.go: -------------------------------------------------------------------------------- 1 | package option 2 | 3 | type Interface interface { 4 | Name() string 5 | Value() interface{} 6 | } 7 | 8 | type Option struct { 9 | name string 10 | value interface{} 11 | } 12 | 13 | func New(name string, value interface{}) *Option { 14 | return &Option{ 15 | name: name, 16 | value: value, 17 | } 18 | } 19 | 20 | func (o *Option) Name() string { 21 | return o.name 22 | } 23 | func (o *Option) Value() interface{} { 24 | return o.value 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_solaris.go: -------------------------------------------------------------------------------- 1 | // +build solaris 2 | // +build !appengine 3 | 4 | package isatty 5 | 6 | import ( 7 | "golang.org/x/sys/unix" 8 | ) 9 | 10 | // IsTerminal returns true if the given file descriptor is a terminal. 11 | // see: http://src.illumos.org/source/xref/illumos-gate/usr/src/lib/libbc/libc/gen/common/isatty.c 12 | func IsTerminal(fd uintptr) bool { 13 | var termio unix.Termio 14 | err := unix.IoctlSetTermio(int(fd), unix.TCGETA, &termio) 15 | return err == nil 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/reporters/stenographer/support/go-colorable/colorable_others.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package colorable 4 | 5 | import ( 6 | "io" 7 | "os" 8 | ) 9 | 10 | func NewColorable(file *os.File) io.Writer { 11 | if file == nil { 12 | panic("nil passed instead of *os.File to NewColorable()") 13 | } 14 | 15 | return file 16 | } 17 | 18 | func NewColorableStdout() io.Writer { 19 | return os.Stdout 20 | } 21 | 22 | func NewColorableStderr() io.Writer { 23 | return os.Stderr 24 | } 25 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | GINKGO := $$GOPATH/bin/ginkgo 2 | MONGO_URL := mongodb://mongo_user:mongo_secret@0.0.0.0:27017/kudos 3 | 4 | setup: run_services 5 | @MONGO_URL=${MONGO_URL} go run ./cmd/db/setup.go 6 | 7 | run_services: 8 | @docker-compose up --build -d 9 | 10 | run_tests: run_services 11 | @${GINKGO} pkg/** 12 | 13 | run_server: 14 | @MONGO_URL=${MONGO_URL} PORT=4444 go run ./cmd/main.go 15 | 16 | run_client: 17 | @/bin/bash -c "cd $$GOPATH/src/github.com/klebervirgilio/react-crud-app-with-golang/pkg/http/web/app && yarn start" -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_linux.go: -------------------------------------------------------------------------------- 1 | // +build linux 2 | // +build !appengine,!ppc64,!ppc64le 3 | 4 | package isatty 5 | 6 | import ( 7 | "syscall" 8 | "unsafe" 9 | ) 10 | 11 | const ioctlReadTermios = syscall.TCGETS 12 | 13 | // IsTerminal return true if the file descriptor is terminal. 14 | func IsTerminal(fd uintptr) bool { 15 | var termios syscall.Termios 16 | _, _, err := syscall.Syscall6(syscall.SYS_IOCTL, fd, ioctlReadTermios, uintptr(unsafe.Pointer(&termios)), 0, 0, 0) 17 | return err == 0 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/globalsign/mgo/internal/sasl/sasl_windows.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #include "sspi_windows.h" 4 | 5 | SECURITY_STATUS SEC_ENTRY sspi_acquire_credentials_handle(CredHandle* cred_handle, char* username, char* password, char* domain); 6 | int sspi_step(CredHandle* cred_handle, int has_context, CtxtHandle* context, PVOID buffer, ULONG buffer_length, PVOID* out_buffer, ULONG* out_buffer_length, char* target); 7 | int sspi_send_client_authz_id(CtxtHandle* context, PVOID* buffer, ULONG* buffer_length, char* user_plus_realm); 8 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_appengine.go: -------------------------------------------------------------------------------- 1 | // +build appengine 2 | 3 | package isatty 4 | 5 | // IsTerminal returns true if the file descriptor is terminal which 6 | // is always false on on appengine classic which is a sandboxed PaaS. 7 | func IsTerminal(fd uintptr) bool { 8 | return false 9 | } 10 | 11 | // IsCygwinTerminal() return true if the file descriptor is a cygwin or msys2 12 | // terminal. This is also always false on this environment. 13 | func IsCygwinTerminal(fd uintptr) bool { 14 | return false 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/internal/spec_iterator/spec_iterator.go: -------------------------------------------------------------------------------- 1 | package spec_iterator 2 | 3 | import ( 4 | "errors" 5 | 6 | "github.com/onsi/ginkgo/internal/spec" 7 | ) 8 | 9 | var ErrClosed = errors.New("no more specs to run") 10 | 11 | type SpecIterator interface { 12 | Next() (*spec.Spec, error) 13 | NumberOfSpecsPriorToIteration() int 14 | NumberOfSpecsToProcessIfKnown() (int, bool) 15 | NumberOfSpecsThatWillBeRunIfKnown() (int, bool) 16 | } 17 | 18 | type Counter struct { 19 | Index int `json:"index"` 20 | } 21 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/create-react-app/README.md: -------------------------------------------------------------------------------- 1 | # create-react-app 2 | 3 | This package includes the global command for [Create React App](https://github.com/facebook/create-react-app).
4 | Please refer to its documentation: 5 | 6 | - [Getting Started](https://github.com/facebook/create-react-app/blob/master/README.md#getting-started) – How to create a new app. 7 | - [User Guide](https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/template/README.md) – How to develop apps bootstrapped with Create React App. 8 | -------------------------------------------------------------------------------- /vendor/github.com/gin-gonic/gin/test_helpers.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 Manu Martinez-Almeida. All rights reserved. 2 | // Use of this source code is governed by a MIT style 3 | // license that can be found in the LICENSE file. 4 | 5 | package gin 6 | 7 | import "net/http" 8 | 9 | // CreateTestContext returns a fresh engine and context for testing purposes 10 | func CreateTestContext(w http.ResponseWriter) (c *Context, r *Engine) { 11 | r = New() 12 | c = r.allocateContext() 13 | c.reset() 14 | c.writermem.reset(w) 15 | return 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_solaris_amd64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System calls for amd64, Solaris are implemented in runtime/syscall_solaris.go 11 | // 12 | 13 | TEXT ·sysvicall6(SB),NOSPLIT,$0-88 14 | JMP syscall·sysvicall6(SB) 15 | 16 | TEXT ·rawSysvicall6(SB),NOSPLIT,$0-88 17 | JMP syscall·rawSysvicall6(SB) 18 | -------------------------------------------------------------------------------- /vendor/github.com/gin-contrib/sse/writer.go: -------------------------------------------------------------------------------- 1 | package sse 2 | 3 | import "io" 4 | 5 | type stringWriter interface { 6 | io.Writer 7 | WriteString(string) (int, error) 8 | } 9 | 10 | type stringWrapper struct { 11 | io.Writer 12 | } 13 | 14 | func (w stringWrapper) WriteString(str string) (int, error) { 15 | return w.Writer.Write([]byte(str)) 16 | } 17 | 18 | func checkWriter(writer io.Writer) stringWriter { 19 | if w, ok := writer.(stringWriter); ok { 20 | return w 21 | } else { 22 | return stringWrapper{writer} 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_bsd.go: -------------------------------------------------------------------------------- 1 | // +build darwin freebsd openbsd netbsd dragonfly 2 | // +build !appengine 3 | 4 | package isatty 5 | 6 | import ( 7 | "syscall" 8 | "unsafe" 9 | ) 10 | 11 | const ioctlReadTermios = syscall.TIOCGETA 12 | 13 | // IsTerminal return true if the file descriptor is terminal. 14 | func IsTerminal(fd uintptr) bool { 15 | var termios syscall.Termios 16 | _, _, err := syscall.Syscall6(syscall.SYS_IOCTL, fd, ioctlReadTermios, uintptr(unsafe.Pointer(&termios)), 0, 0, 0) 17 | return err == 0 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/Gopkg.lock: -------------------------------------------------------------------------------- 1 | # This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. 2 | 3 | 4 | [[projects]] 5 | name = "github.com/modern-go/concurrent" 6 | packages = ["."] 7 | revision = "e0a39a4cb4216ea8db28e22a69f4ec25610d513a" 8 | version = "1.0.0" 9 | 10 | [solve-meta] 11 | analyzer-name = "dep" 12 | analyzer-version = 1 13 | inputs-digest = "daee8a88b3498b61c5640056665b8b9eea062006f5e596bbb6a3ed9119a11ec7" 14 | solver-name = "gps-cdcl" 15 | solver-version = 1 16 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_linux_ppc64x.go: -------------------------------------------------------------------------------- 1 | // +build linux 2 | // +build ppc64 ppc64le 3 | 4 | package isatty 5 | 6 | import ( 7 | "unsafe" 8 | 9 | syscall "golang.org/x/sys/unix" 10 | ) 11 | 12 | const ioctlReadTermios = syscall.TCGETS 13 | 14 | // IsTerminal return true if the file descriptor is terminal. 15 | func IsTerminal(fd uintptr) bool { 16 | var termios syscall.Termios 17 | _, _, err := syscall.Syscall6(syscall.SYS_IOCTL, fd, ioctlReadTermios, uintptr(unsafe.Pointer(&termios)), 0, 0, 0) 18 | return err == 0 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/reporters/stenographer/support/go-isatty/isatty_linux.go: -------------------------------------------------------------------------------- 1 | // +build linux 2 | // +build !appengine 3 | 4 | package isatty 5 | 6 | import ( 7 | "syscall" 8 | "unsafe" 9 | ) 10 | 11 | const ioctlReadTermios = syscall.TCGETS 12 | 13 | // IsTerminal return true if the file descriptor is terminal. 14 | func IsTerminal(fd uintptr) bool { 15 | var termios syscall.Termios 16 | _, _, err := syscall.Syscall6(syscall.SYS_IOCTL, fd, ioctlReadTermios, uintptr(unsafe.Pointer(&termios)), 0, 0, 0) 17 | return err == 0 18 | } 19 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/fs-extra/docs/ensureLink-sync.md: -------------------------------------------------------------------------------- 1 | # ensureLinkSync(srcpath, dstpath) 2 | 3 | Ensures that the link exists. If the directory structure does not exist, it is created. 4 | 5 | - `srcpath` `` 6 | - `dstpath` `` 7 | 8 | ## Example: 9 | 10 | ```js 11 | const fs = require('fs-extra') 12 | 13 | const srcpath = '/tmp/file.txt' 14 | const dstpath = '/tmp/this/path/does/not/exist/file.txt' 15 | fs.ensureLinkSync(srcpath, dstpath) 16 | // link has now been created, including the directory it is to be placed in 17 | ``` 18 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/minimist/test/dotted.js: -------------------------------------------------------------------------------- 1 | var parse = require('../'); 2 | var test = require('tape'); 3 | 4 | test('dotted alias', function (t) { 5 | var argv = parse(['--a.b', '22'], {default: {'a.b': 11}, alias: {'a.b': 'aa.bb'}}); 6 | t.equal(argv.a.b, 22); 7 | t.equal(argv.aa.bb, 22); 8 | t.end(); 9 | }); 10 | 11 | test('dotted default', function (t) { 12 | var argv = parse('', {default: {'a.b': 11}, alias: {'a.b': 'aa.bb'}}); 13 | t.equal(argv.a.b, 11); 14 | t.equal(argv.aa.bb, 11); 15 | t.end(); 16 | }); 17 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/semver/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "semver", 3 | "version": "5.5.1", 4 | "description": "The semantic version parser used by npm.", 5 | "main": "semver.js", 6 | "scripts": { 7 | "test": "tap test/*.js --cov -J" 8 | }, 9 | "devDependencies": { 10 | "tap": "^12.0.1" 11 | }, 12 | "license": "ISC", 13 | "repository": "https://github.com/npm/node-semver", 14 | "bin": { 15 | "semver": "./bin/semver" 16 | }, 17 | "files": [ 18 | "bin", 19 | "range.bnf", 20 | "semver.js" 21 | ] 22 | } 23 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/string_decoder/README.md: -------------------------------------------------------------------------------- 1 | **string_decoder.js** (`require('string_decoder')`) from Node.js core 2 | 3 | Copyright Joyent, Inc. and other Node contributors. See LICENCE file for details. 4 | 5 | Version numbers match the versions found in Node core, e.g. 0.10.24 matches Node 0.10.24, likewise 0.11.10 matches Node 0.11.10. **Prefer the stable version over the unstable.** 6 | 7 | The *build/* directory contains a build script that will scrape the source from the [joyent/node](https://github.com/joyent/node) repo given a specific Node version. -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/reporters/stenographer/support/go-isatty/isatty_solaris.go: -------------------------------------------------------------------------------- 1 | // +build solaris 2 | // +build !appengine 3 | 4 | package isatty 5 | 6 | import ( 7 | "golang.org/x/sys/unix" 8 | ) 9 | 10 | // IsTerminal returns true if the given file descriptor is a terminal. 11 | // see: http://src.illumos.org/source/xref/illumos-gate/usr/src/lib/libbc/libc/gen/common/isatty.c 12 | func IsTerminal(fd uintptr) bool { 13 | var termio unix.Termio 14 | err := unix.IoctlSetTermio(int(fd), unix.TCGETA, &termio) 15 | return err == nil 16 | } 17 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/graceful-fs/fs.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | 3 | var fs = require('fs') 4 | 5 | module.exports = clone(fs) 6 | 7 | function clone (obj) { 8 | if (obj === null || typeof obj !== 'object') 9 | return obj 10 | 11 | if (obj instanceof Object) 12 | var copy = { __proto__: obj.__proto__ } 13 | else 14 | var copy = Object.create(null) 15 | 16 | Object.getOwnPropertyNames(obj).forEach(function (key) { 17 | Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj, key)) 18 | }) 19 | 20 | return copy 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/reporters/reporter.go: -------------------------------------------------------------------------------- 1 | package reporters 2 | 3 | import ( 4 | "github.com/onsi/ginkgo/config" 5 | "github.com/onsi/ginkgo/types" 6 | ) 7 | 8 | type Reporter interface { 9 | SpecSuiteWillBegin(config config.GinkgoConfigType, summary *types.SuiteSummary) 10 | BeforeSuiteDidRun(setupSummary *types.SetupSummary) 11 | SpecWillRun(specSummary *types.SpecSummary) 12 | SpecDidComplete(specSummary *types.SpecSummary) 13 | AfterSuiteDidRun(setupSummary *types.SetupSummary) 14 | SpecSuiteDidEnd(summary *types.SuiteSummary) 15 | } 16 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/tar/test/zz-cleanup.js: -------------------------------------------------------------------------------- 1 | // clean up the fixtures 2 | 3 | var tap = require("tap") 4 | , rimraf = require("rimraf") 5 | , test = tap.test 6 | , path = require("path") 7 | 8 | test("clean fixtures", function (t) { 9 | rimraf(path.resolve(__dirname, "fixtures"), function (er) { 10 | t.ifError(er, "rimraf ./fixtures/") 11 | t.end() 12 | }) 13 | }) 14 | 15 | test("clean tmp", function (t) { 16 | rimraf(path.resolve(__dirname, "tmp"), function (er) { 17 | t.ifError(er, "rimraf ./tmp/") 18 | t.end() 19 | }) 20 | }) 21 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/uid-number/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Isaac Z. Schlueter (http://blog.izs.me/)", 3 | "name": "uid-number", 4 | "description": "Convert a username/group name to a uid/gid number", 5 | "version": "0.0.6", 6 | "repository": { 7 | "type": "git", 8 | "url": "git://github.com/isaacs/uid-number.git" 9 | }, 10 | "main": "uid-number.js", 11 | "dependencies": {}, 12 | "devDependencies": {}, 13 | "optionalDependencies": {}, 14 | "engines": { 15 | "node": "*" 16 | }, 17 | "license": "ISC" 18 | } 19 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/gccgo_linux_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build gccgo,linux,amd64 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | //extern gettimeofday 12 | func realGettimeofday(*Timeval, *byte) int32 13 | 14 | func gettimeofday(tv *Timeval) (err syscall.Errno) { 15 | r := realGettimeofday(tv, nil) 16 | if r < 0 { 17 | return syscall.GetErrno() 18 | } 19 | return 0 20 | } 21 | -------------------------------------------------------------------------------- /cmd/db/setup.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "log" 5 | "os" 6 | 7 | "github.com/globalsign/mgo" 8 | ) 9 | 10 | func main() { 11 | var err error 12 | mongoURL := os.Getenv("MONGO_URL") 13 | if mongoURL == "" { 14 | log.Fatal("MONGO_URL not provided") 15 | } 16 | session, err := mgo.Dial(mongoURL) 17 | defer session.Close() 18 | 19 | err = session.DB("").AddUser("mongo_user", "mongo_secret", false) 20 | 21 | info := &mgo.CollectionInfo{} 22 | err = session.DB("").C("kudos").Create(info) 23 | 24 | if err != nil { 25 | log.Fatal(err) 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/reporters/stenographer/support/go-isatty/isatty_bsd.go: -------------------------------------------------------------------------------- 1 | // +build darwin freebsd openbsd netbsd 2 | // +build !appengine 3 | 4 | package isatty 5 | 6 | import ( 7 | "syscall" 8 | "unsafe" 9 | ) 10 | 11 | const ioctlReadTermios = syscall.TIOCGETA 12 | 13 | // IsTerminal return true if the file descriptor is terminal. 14 | func IsTerminal(fd uintptr) bool { 15 | var termios syscall.Termios 16 | _, _, err := syscall.Syscall6(syscall.SYS_IOCTL, fd, ioctlReadTermios, uintptr(unsafe.Pointer(&termios)), 0, 0, 0) 17 | return err == 0 18 | } 19 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/duplexer2/node_modules/readable-stream/readable.js: -------------------------------------------------------------------------------- 1 | exports = module.exports = require('./lib/_stream_readable.js'); 2 | exports.Stream = require('stream'); 3 | exports.Readable = exports; 4 | exports.Writable = require('./lib/_stream_writable.js'); 5 | exports.Duplex = require('./lib/_stream_duplex.js'); 6 | exports.Transform = require('./lib/_stream_transform.js'); 7 | exports.PassThrough = require('./lib/_stream_passthrough.js'); 8 | if (!process.browser && process.env.READABLE_STREAM === 'disable') { 9 | module.exports = require('stream'); 10 | } 11 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/process-nextick-args/readme.md: -------------------------------------------------------------------------------- 1 | process-nextick-args 2 | ===== 3 | 4 | [![Build Status](https://travis-ci.org/calvinmetcalf/process-nextick-args.svg?branch=master)](https://travis-ci.org/calvinmetcalf/process-nextick-args) 5 | 6 | ```bash 7 | npm install --save process-nextick-args 8 | ``` 9 | 10 | Always be able to pass arguments to process.nextTick, no matter the platform 11 | 12 | ```js 13 | var pna = require('process-nextick-args'); 14 | 15 | pna.nextTick(function (a, b, c) { 16 | console.log(a, b, c); 17 | }, 'step', 3, 'profit'); 18 | ``` 19 | -------------------------------------------------------------------------------- /vendor/gopkg.in/fsnotify/fsnotify.v1/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | language: go 3 | 4 | go: 5 | - 1.8.x 6 | - 1.9.x 7 | - tip 8 | 9 | matrix: 10 | allow_failures: 11 | - go: tip 12 | fast_finish: true 13 | 14 | before_script: 15 | - go get -u github.com/golang/lint/golint 16 | 17 | script: 18 | - go test -v --race ./... 19 | 20 | after_script: 21 | - test -z "$(gofmt -s -l -w . | tee /dev/stderr)" 22 | - test -z "$(golint ./... | tee /dev/stderr)" 23 | - go vet ./... 24 | 25 | os: 26 | - linux 27 | - osx 28 | 29 | notifications: 30 | email: false 31 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/builtins/builtins.json: -------------------------------------------------------------------------------- 1 | [ 2 | "assert", 3 | "buffer", 4 | "child_process", 5 | "cluster", 6 | "console", 7 | "constants", 8 | "crypto", 9 | "dgram", 10 | "dns", 11 | "domain", 12 | "events", 13 | "fs", 14 | "http", 15 | "https", 16 | "module", 17 | "net", 18 | "os", 19 | "path", 20 | "process", 21 | "punycode", 22 | "querystring", 23 | "readline", 24 | "repl", 25 | "stream", 26 | "string_decoder", 27 | "timers", 28 | "tls", 29 | "tty", 30 | "url", 31 | "util", 32 | "v8", 33 | "vm", 34 | "zlib" 35 | ] 36 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/minimist/test/default_bool.js: -------------------------------------------------------------------------------- 1 | var test = require('tape'); 2 | var parse = require('../'); 3 | 4 | test('boolean default true', function (t) { 5 | var argv = parse([], { 6 | boolean: 'sometrue', 7 | default: { sometrue: true } 8 | }); 9 | t.equal(argv.sometrue, true); 10 | t.end(); 11 | }); 12 | 13 | test('boolean default false', function (t) { 14 | var argv = parse([], { 15 | boolean: 'somefalse', 16 | default: { somefalse: false } 17 | }); 18 | t.equal(argv.somefalse, false); 19 | t.end(); 20 | }); 21 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/language/gen_common.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build ignore 6 | 7 | package main 8 | 9 | // This file contains code common to the maketables.go and the package code. 10 | 11 | // langAliasType is the type of an alias in langAliasMap. 12 | type langAliasType int8 13 | 14 | const ( 15 | langDeprecated langAliasType = iota 16 | langMacro 17 | langLegacy 18 | 19 | langAliasTypeUnknown langAliasType = -1 20 | ) 21 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/isarray/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "isarray", 3 | "description" : "Array#isArray for older browsers", 4 | "version" : "0.0.1", 5 | "repository" : "juliangruber/isarray", 6 | "homepage": "https://github.com/juliangruber/isarray", 7 | "main" : "index.js", 8 | "scripts" : [ 9 | "index.js" 10 | ], 11 | "dependencies" : {}, 12 | "keywords": ["browser","isarray","array"], 13 | "author": { 14 | "name": "Julian Gruber", 15 | "email": "mail@juliangruber.com", 16 | "url": "http://juliangruber.com" 17 | }, 18 | "license": "MIT" 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/reporters/stenographer/support/go-isatty/isatty_windows.go: -------------------------------------------------------------------------------- 1 | // +build windows 2 | // +build !appengine 3 | 4 | package isatty 5 | 6 | import ( 7 | "syscall" 8 | "unsafe" 9 | ) 10 | 11 | var kernel32 = syscall.NewLazyDLL("kernel32.dll") 12 | var procGetConsoleMode = kernel32.NewProc("GetConsoleMode") 13 | 14 | // IsTerminal return true if the file descriptor is terminal. 15 | func IsTerminal(fd uintptr) bool { 16 | var st uint32 17 | r, _, e := syscall.Syscall(procGetConsoleMode.Addr(), 2, fd, uintptr(unsafe.Pointer(&st)), 0) 18 | return r != 0 && e == 0 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/matchers/be_nil_matcher.go: -------------------------------------------------------------------------------- 1 | package matchers 2 | 3 | import "github.com/onsi/gomega/format" 4 | 5 | type BeNilMatcher struct { 6 | } 7 | 8 | func (matcher *BeNilMatcher) Match(actual interface{}) (success bool, err error) { 9 | return isNil(actual), nil 10 | } 11 | 12 | func (matcher *BeNilMatcher) FailureMessage(actual interface{}) (message string) { 13 | return format.Message(actual, "to be nil") 14 | } 15 | 16 | func (matcher *BeNilMatcher) NegatedFailureMessage(actual interface{}) (message string) { 17 | return format.Message(actual, "not to be nil") 18 | } 19 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build linux,!gccgo 6 | 7 | package unix 8 | 9 | // SyscallNoError may be used instead of Syscall for syscalls that don't fail. 10 | func SyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) 11 | 12 | // RawSyscallNoError may be used instead of RawSyscall for syscalls that don't 13 | // fail. 14 | func RawSyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) 15 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/fs-extra/docs/ensureSymlink-sync.md: -------------------------------------------------------------------------------- 1 | # ensureSymlinkSync(srcpath, dstpath, [type]) 2 | 3 | Ensures that the symlink exists. If the directory structure does not exist, it is created. 4 | 5 | - `srcpath` `` 6 | - `dstpath` `` 7 | - `type` `` 8 | 9 | ## Example: 10 | 11 | ```js 12 | const fs = require('fs-extra') 13 | 14 | const srcpath = '/tmp/file.txt' 15 | const dstpath = '/tmp/this/path/does/not/exist/file.txt' 16 | fs.ensureSymlinkSync(srcpath, dstpath) 17 | // symlink has now been created, including the directory it is to be placed in 18 | ``` 19 | -------------------------------------------------------------------------------- /vendor/github.com/gin-gonic/gin/binding/query.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 Manu Martinez-Almeida. All rights reserved. 2 | // Use of this source code is governed by a MIT style 3 | // license that can be found in the LICENSE file. 4 | 5 | package binding 6 | 7 | import "net/http" 8 | 9 | type queryBinding struct{} 10 | 11 | func (queryBinding) Name() string { 12 | return "query" 13 | } 14 | 15 | func (queryBinding) Bind(req *http.Request, obj interface{}) error { 16 | values := req.URL.Query() 17 | if err := mapForm(obj, values); err != nil { 18 | return err 19 | } 20 | return validate(obj) 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/hpcloud/tail/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM golang 2 | 3 | RUN mkdir -p $GOPATH/src/github.com/hpcloud/tail/ 4 | ADD . $GOPATH/src/github.com/hpcloud/tail/ 5 | 6 | # expecting to fetch dependencies successfully. 7 | RUN go get -v github.com/hpcloud/tail 8 | 9 | # expecting to run the test successfully. 10 | RUN go test -v github.com/hpcloud/tail 11 | 12 | # expecting to install successfully 13 | RUN go install -v github.com/hpcloud/tail 14 | RUN go install -v github.com/hpcloud/tail/cmd/gotail 15 | 16 | RUN $GOPATH/bin/gotail -h || true 17 | 18 | ENV PATH $GOPATH/bin:$PATH 19 | CMD ["gotail"] 20 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/fs-extra/docs/ensureFile-sync.md: -------------------------------------------------------------------------------- 1 | # ensureFileSync(file) 2 | 3 | Ensures that the file exists. If the file that is requested to be created is in directories that do not exist, these directories are created. If the file already exists, it is **NOT MODIFIED**. 4 | 5 | **Alias:** `createFileSync()` 6 | 7 | - `file` `` 8 | 9 | ## Example: 10 | 11 | ```js 12 | const fs = require('fs-extra') 13 | 14 | const file = '/tmp/this/path/does/not/exist/file.txt' 15 | fs.ensureFileSync(file) 16 | // file has now been created, including the directory it is to be placed in 17 | ``` 18 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/mkdirp/test/root.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../'); 2 | var path = require('path'); 3 | var fs = require('fs'); 4 | var test = require('tap').test; 5 | var _0755 = parseInt('0755', 8); 6 | 7 | test('root', function (t) { 8 | // '/' on unix, 'c:/' on windows. 9 | var file = path.resolve('/'); 10 | 11 | mkdirp(file, _0755, function (err) { 12 | if (err) throw err 13 | fs.stat(file, function (er, stat) { 14 | if (er) throw er 15 | t.ok(stat.isDirectory(), 'target is a directory'); 16 | t.end(); 17 | }) 18 | }); 19 | }); 20 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/fs-extra/lib/json/index.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | 3 | const u = require('universalify').fromCallback 4 | const jsonFile = require('./jsonfile') 5 | 6 | jsonFile.outputJson = u(require('./output-json')) 7 | jsonFile.outputJsonSync = require('./output-json-sync') 8 | // aliases 9 | jsonFile.outputJSON = jsonFile.outputJson 10 | jsonFile.outputJSONSync = jsonFile.outputJsonSync 11 | jsonFile.writeJSON = jsonFile.writeJson 12 | jsonFile.writeJSONSync = jsonFile.writeJsonSync 13 | jsonFile.readJSON = jsonFile.readJson 14 | jsonFile.readJSONSync = jsonFile.readJsonSync 15 | 16 | module.exports = jsonFile 17 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/readable-stream/node_modules/isarray/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "isarray", 3 | "description" : "Array#isArray for older browsers", 4 | "version" : "0.0.1", 5 | "repository" : "juliangruber/isarray", 6 | "homepage": "https://github.com/juliangruber/isarray", 7 | "main" : "index.js", 8 | "scripts" : [ 9 | "index.js" 10 | ], 11 | "dependencies" : {}, 12 | "keywords": ["browser","isarray","array"], 13 | "author": { 14 | "name": "Julian Gruber", 15 | "email": "mail@juliangruber.com", 16 | "url": "http://juliangruber.com" 17 | }, 18 | "license": "MIT" 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/reporters/stenographer/support/go-isatty/README.md: -------------------------------------------------------------------------------- 1 | # go-isatty 2 | 3 | isatty for golang 4 | 5 | ## Usage 6 | 7 | ```go 8 | package main 9 | 10 | import ( 11 | "fmt" 12 | "github.com/mattn/go-isatty" 13 | "os" 14 | ) 15 | 16 | func main() { 17 | if isatty.IsTerminal(os.Stdout.Fd()) { 18 | fmt.Println("Is Terminal") 19 | } else { 20 | fmt.Println("Is Not Terminal") 21 | } 22 | } 23 | ``` 24 | 25 | ## Installation 26 | 27 | ``` 28 | $ go get github.com/mattn/go-isatty 29 | ``` 30 | 31 | # License 32 | 33 | MIT 34 | 35 | # Author 36 | 37 | Yasuhiro Matsumoto (a.k.a mattn) 38 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/tar/examples/packer.js: -------------------------------------------------------------------------------- 1 | var tar = require("../tar.js") 2 | , fstream = require("fstream") 3 | , fs = require("fs") 4 | 5 | var dirDest = fs.createWriteStream('dir.tar') 6 | 7 | 8 | function onError(err) { 9 | console.error('An error occurred:', err) 10 | } 11 | 12 | function onEnd() { 13 | console.log('Packed!') 14 | } 15 | 16 | var packer = tar.Pack({ noProprietary: true }) 17 | .on('error', onError) 18 | .on('end', onEnd); 19 | 20 | // This must be a "directory" 21 | fstream.Reader({ path: __dirname, type: "Directory" }) 22 | .on('error', onError) 23 | .pipe(packer) 24 | .pipe(dirDest) 25 | -------------------------------------------------------------------------------- /vendor/github.com/ugorji/go/codec/goversion_unsupported_lt_go14.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012-2018 Ugorji Nwoke. All rights reserved. 2 | // Use of this source code is governed by a MIT license found in the LICENSE file. 3 | 4 | // +build !go1.4 5 | 6 | package codec 7 | 8 | // This codec package will only work for go1.4 and above. 9 | // This is for the following reasons: 10 | // - go 1.4 was released in 2014 11 | // - go runtime is written fully in go 12 | // - interface only holds pointers 13 | // - reflect.Value is stabilized as 3 words 14 | 15 | func init() { 16 | panic("codec: go 1.3 and below are not supported") 17 | } 18 | -------------------------------------------------------------------------------- /vendor/gopkg.in/yaml.v2/NOTICE: -------------------------------------------------------------------------------- 1 | Copyright 2011-2016 Canonical Ltd. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/onsi/gomega 2 | 3 | require ( 4 | github.com/fsnotify/fsnotify v1.4.7 // indirect 5 | github.com/golang/protobuf v1.2.0 6 | github.com/hpcloud/tail v1.0.0 // indirect 7 | github.com/onsi/ginkgo v1.6.0 8 | golang.org/x/net v0.0.0-20180906233101-161cd47e91fd 9 | golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f // indirect 10 | golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e // indirect 11 | golang.org/x/text v0.3.0 // indirect 12 | gopkg.in/fsnotify.v1 v1.4.7 // indirect 13 | gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect 14 | gopkg.in/yaml.v2 v2.2.1 15 | ) 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/race0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build aix darwin,!race linux,!race freebsd,!race netbsd openbsd solaris dragonfly 6 | 7 | package unix 8 | 9 | import ( 10 | "unsafe" 11 | ) 12 | 13 | const raceenabled = false 14 | 15 | func raceAcquire(addr unsafe.Pointer) { 16 | } 17 | 18 | func raceReleaseMerge(addr unsafe.Pointer) { 19 | } 20 | 21 | func raceReadRange(addr unsafe.Pointer, len int) { 22 | } 23 | 24 | func raceWriteRange(addr unsafe.Pointer, len int) { 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/gin-gonic/gin/response_writer_1.8.go: -------------------------------------------------------------------------------- 1 | // +build go1.8 2 | 3 | // Copyright 2018 Gin Core Team. All rights reserved. 4 | // Use of this source code is governed by a MIT style 5 | // license that can be found in the LICENSE file. 6 | 7 | package gin 8 | 9 | import ( 10 | "net/http" 11 | ) 12 | 13 | // ResponseWriter ... 14 | type ResponseWriter interface { 15 | responseWriterBase 16 | // get the http.Pusher for server push 17 | Pusher() http.Pusher 18 | } 19 | 20 | func (w *responseWriter) Pusher() (pusher http.Pusher) { 21 | if pusher, ok := w.ResponseWriter.(http.Pusher); ok { 22 | return pusher 23 | } 24 | return nil 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/lestrrat-go/jwx/internal/base64/base64.go: -------------------------------------------------------------------------------- 1 | package base64 2 | 3 | import ( 4 | "encoding/base64" 5 | "encoding/binary" 6 | ) 7 | 8 | func EncodeToString(src []byte) string { 9 | return base64.RawURLEncoding.EncodeToString(src) 10 | } 11 | 12 | func EncodeUint64ToString(v uint64) string { 13 | data := make([]byte, 8) 14 | binary.BigEndian.PutUint64(data, v) 15 | 16 | i := 0 17 | for ; i < len(data); i++ { 18 | if data[i] != 0x0 { 19 | break 20 | } 21 | } 22 | 23 | return EncodeToString(data[i:]) 24 | } 25 | 26 | func DecodeString(src string) ([]byte, error) { 27 | return base64.RawURLEncoding.DecodeString(src) 28 | } 29 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_solaris_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build amd64,solaris 6 | 7 | package unix 8 | 9 | func setTimespec(sec, nsec int64) Timespec { 10 | return Timespec{Sec: sec, Nsec: nsec} 11 | } 12 | 13 | func setTimeval(sec, usec int64) Timeval { 14 | return Timeval{Sec: sec, Usec: usec} 15 | } 16 | 17 | func (iov *Iovec) SetLen(length int) { 18 | iov.Len = uint64(length) 19 | } 20 | 21 | func (cmsg *Cmsghdr) SetLen(length int) { 22 | cmsg.Len = uint32(length) 23 | } 24 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/fs-extra/lib/index.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | 3 | const assign = require('./util/assign') 4 | 5 | const fs = {} 6 | 7 | // Export graceful-fs: 8 | assign(fs, require('./fs')) 9 | // Export extra methods: 10 | assign(fs, require('./copy')) 11 | assign(fs, require('./copy-sync')) 12 | assign(fs, require('./mkdirs')) 13 | assign(fs, require('./remove')) 14 | assign(fs, require('./json')) 15 | assign(fs, require('./move')) 16 | assign(fs, require('./move-sync')) 17 | assign(fs, require('./empty')) 18 | assign(fs, require('./ensure')) 19 | assign(fs, require('./output')) 20 | assign(fs, require('./path-exists')) 21 | 22 | module.exports = fs 23 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/hyperquest/test/readable.js: -------------------------------------------------------------------------------- 1 | var test = require('tape'); 2 | var hyperquest = require('../'); 3 | var http = require('http'); 4 | 5 | var server = http.createServer(function (req, res) { res.end() }); 6 | 7 | test('readable', function (t) { 8 | server.listen(function () { 9 | var port = server.address().port; 10 | var req = hyperquest('http://localhost:' + port); 11 | t.notOk(req.flowing); 12 | t.ok(req._read); 13 | req.on('data', function () {}); 14 | req.on('end', function () { 15 | server.close(); 16 | t.end(); 17 | }); 18 | }); 19 | }); 20 | 21 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/fs-extra/docs/move-sync.md: -------------------------------------------------------------------------------- 1 | # moveSync(src, dest, [options]) 2 | 3 | Moves a file or directory, even across devices. 4 | 5 | - `src` `` 6 | - `dest` `` 7 | - `options` `` 8 | - `overwrite` ``: overwrite existing file or directory, default is `false`. 9 | 10 | ## Example: 11 | 12 | ```js 13 | const fs = require('fs-extra') 14 | 15 | fs.moveSync('/tmp/somefile', '/tmp/does/not/exist/yet/somefile') 16 | ``` 17 | 18 | **Using `overwrite` option** 19 | 20 | ```js 21 | const fs = require('fs-extra') 22 | 23 | fs.moveSync('/tmp/somedir', '/tmp/may/already/existed/somedir', { overwrite: true }) 24 | ``` 25 | -------------------------------------------------------------------------------- /vendor/github.com/lestrrat-go/jwx/jws/sign/sign.go: -------------------------------------------------------------------------------- 1 | package sign 2 | 3 | import ( 4 | "github.com/lestrrat-go/jwx/jwa" 5 | "github.com/pkg/errors" 6 | ) 7 | 8 | // New creates a signer that signs payloads using the given signature algorithm. 9 | func New(alg jwa.SignatureAlgorithm) (Signer, error) { 10 | switch alg { 11 | case jwa.RS256, jwa.RS384, jwa.RS512, jwa.PS256, jwa.PS384, jwa.PS512: 12 | return newRSA(alg) 13 | case jwa.ES256, jwa.ES384, jwa.ES512: 14 | return newECDSA(alg) 15 | case jwa.HS256, jwa.HS384, jwa.HS512: 16 | return newHMAC(alg) 17 | default: 18 | return nil, errors.Errorf(`unsupported signature algorithm %s`, alg) 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/through2/node_modules/readable-stream/readable.js: -------------------------------------------------------------------------------- 1 | var Stream = require('stream'); // hack to fix a circular dependency issue when used with browserify 2 | exports = module.exports = require('./lib/_stream_readable.js'); 3 | exports.Stream = Stream; 4 | exports.Readable = exports; 5 | exports.Writable = require('./lib/_stream_writable.js'); 6 | exports.Duplex = require('./lib/_stream_duplex.js'); 7 | exports.Transform = require('./lib/_stream_transform.js'); 8 | exports.PassThrough = require('./lib/_stream_passthrough.js'); 9 | if (!process.browser && process.env.READABLE_STREAM === 'disable') { 10 | module.exports = require('stream'); 11 | } 12 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/fs-extra/lib/mkdirs/win32.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | 3 | const path = require('path') 4 | 5 | // get drive on windows 6 | function getRootPath (p) { 7 | p = path.normalize(path.resolve(p)).split(path.sep) 8 | if (p.length > 0) return p[0] 9 | return null 10 | } 11 | 12 | // http://stackoverflow.com/a/62888/10333 contains more accurate 13 | // TODO: expand to include the rest 14 | const INVALID_PATH_CHARS = /[<>:"|?*]/ 15 | 16 | function invalidWin32Path (p) { 17 | const rp = getRootPath(p) 18 | p = p.replace(rp, '') 19 | return INVALID_PATH_CHARS.test(p) 20 | } 21 | 22 | module.exports = { 23 | getRootPath, 24 | invalidWin32Path 25 | } 26 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/string_decoder/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "string_decoder", 3 | "version": "0.10.31", 4 | "description": "The string_decoder module from Node core", 5 | "main": "index.js", 6 | "dependencies": {}, 7 | "devDependencies": { 8 | "tap": "~0.4.8" 9 | }, 10 | "scripts": { 11 | "test": "tap test/simple/*.js" 12 | }, 13 | "repository": { 14 | "type": "git", 15 | "url": "git://github.com/rvagg/string_decoder.git" 16 | }, 17 | "homepage": "https://github.com/rvagg/string_decoder", 18 | "keywords": [ 19 | "string", 20 | "decoder", 21 | "browser", 22 | "browserify" 23 | ], 24 | "license": "MIT" 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/gin-gonic/gin/render/data.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 Manu Martinez-Almeida. All rights reserved. 2 | // Use of this source code is governed by a MIT style 3 | // license that can be found in the LICENSE file. 4 | 5 | package render 6 | 7 | import "net/http" 8 | 9 | type Data struct { 10 | ContentType string 11 | Data []byte 12 | } 13 | 14 | // Render (Data) writes data with custom ContentType. 15 | func (r Data) Render(w http.ResponseWriter) (err error) { 16 | r.WriteContentType(w) 17 | _, err = w.Write(r.Data) 18 | return 19 | } 20 | 21 | func (r Data) WriteContentType(w http.ResponseWriter) { 22 | writeContentType(w, []string{r.ContentType}) 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/lestrrat-go/jwx/jws/verify/verify.go: -------------------------------------------------------------------------------- 1 | package verify 2 | 3 | import ( 4 | "github.com/lestrrat-go/jwx/jwa" 5 | "github.com/pkg/errors" 6 | ) 7 | 8 | // New creates a new JWS verifier using the specified algorithm 9 | // and the public key 10 | func New(alg jwa.SignatureAlgorithm) (Verifier, error) { 11 | switch alg { 12 | case jwa.RS256, jwa.RS384, jwa.RS512, jwa.PS256, jwa.PS384, jwa.PS512: 13 | return newRSA(alg) 14 | case jwa.ES256, jwa.ES384, jwa.ES512: 15 | return newECDSA(alg) 16 | case jwa.HS256, jwa.HS384, jwa.HS512: 17 | return newHMAC(alg) 18 | default: 19 | return nil, errors.Errorf(`unsupported signature algorithm: %s`, alg) 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/types/synchronization.go: -------------------------------------------------------------------------------- 1 | package types 2 | 3 | import ( 4 | "encoding/json" 5 | ) 6 | 7 | type RemoteBeforeSuiteState int 8 | 9 | const ( 10 | RemoteBeforeSuiteStateInvalid RemoteBeforeSuiteState = iota 11 | 12 | RemoteBeforeSuiteStatePending 13 | RemoteBeforeSuiteStatePassed 14 | RemoteBeforeSuiteStateFailed 15 | RemoteBeforeSuiteStateDisappeared 16 | ) 17 | 18 | type RemoteBeforeSuiteData struct { 19 | Data []byte 20 | State RemoteBeforeSuiteState 21 | } 22 | 23 | func (r RemoteBeforeSuiteData) ToJSON() []byte { 24 | data, _ := json.Marshal(r) 25 | return data 26 | } 27 | 28 | type RemoteAfterSuiteData struct { 29 | CanRun bool 30 | } 31 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/builtins/History.md: -------------------------------------------------------------------------------- 1 | 2 | 0.0.7 / 2014-09-01 3 | ================== 4 | 5 | * update .repository 6 | 7 | 0.0.6 / 2014-09-01 8 | ================== 9 | 10 | * add travis 11 | * add test script 12 | * add constants 13 | 14 | 0.0.5 / 2014-06-27 15 | ================== 16 | 17 | * add module 18 | * publish to public npm 19 | 20 | 0.0.4 / 2014-04-25 21 | ================== 22 | 23 | * add timers 24 | 25 | 0.0.3 / 2014-02-22 26 | ================== 27 | 28 | * add buffer 29 | 30 | 0.0.2 / 2014-02-11 31 | ================== 32 | 33 | * add assert 34 | 35 | 0.0.1 / 2014-02-11 36 | ================== 37 | 38 | * add main 39 | * initial commit 40 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/tar/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Isaac Z. Schlueter (http://blog.izs.me/)", 3 | "name": "tar", 4 | "description": "tar for node", 5 | "version": "2.2.1", 6 | "repository": { 7 | "type": "git", 8 | "url": "git://github.com/isaacs/node-tar.git" 9 | }, 10 | "main": "tar.js", 11 | "scripts": { 12 | "test": "tap test/*.js" 13 | }, 14 | "dependencies": { 15 | "block-stream": "*", 16 | "fstream": "^1.0.2", 17 | "inherits": "2" 18 | }, 19 | "devDependencies": { 20 | "graceful-fs": "^4.1.2", 21 | "rimraf": "1.x", 22 | "tap": "0.x", 23 | "mkdirp": "^0.5.0" 24 | }, 25 | "license": "ISC" 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/gin-gonic/gin/render/xml.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 Manu Martinez-Almeida. All rights reserved. 2 | // Use of this source code is governed by a MIT style 3 | // license that can be found in the LICENSE file. 4 | 5 | package render 6 | 7 | import ( 8 | "encoding/xml" 9 | "net/http" 10 | ) 11 | 12 | type XML struct { 13 | Data interface{} 14 | } 15 | 16 | var xmlContentType = []string{"application/xml; charset=utf-8"} 17 | 18 | func (r XML) Render(w http.ResponseWriter) error { 19 | r.WriteContentType(w) 20 | return xml.NewEncoder(w).Encode(r.Data) 21 | } 22 | 23 | func (r XML) WriteContentType(w http.ResponseWriter) { 24 | writeContentType(w, xmlContentType) 25 | } 26 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_gc_386.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build linux,!gccgo,386 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | // Underlying system call writes to newoffset via pointer. 12 | // Implemented in assembly to avoid allocation. 13 | func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno) 14 | 15 | func socketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno) 16 | func rawsocketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno) 17 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/rimraf/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "rimraf", 3 | "version": "2.6.2", 4 | "main": "rimraf.js", 5 | "description": "A deep deletion module for node (like `rm -rf`)", 6 | "author": "Isaac Z. Schlueter (http://blog.izs.me/)", 7 | "license": "ISC", 8 | "repository": "git://github.com/isaacs/rimraf.git", 9 | "scripts": { 10 | "test": "tap test/*.js" 11 | }, 12 | "bin": "./bin.js", 13 | "dependencies": { 14 | "glob": "^7.0.5" 15 | }, 16 | "files": [ 17 | "LICENSE", 18 | "README.md", 19 | "bin.js", 20 | "rimraf.js" 21 | ], 22 | "devDependencies": { 23 | "mkdirp": "^0.5.1", 24 | "tap": "^10.1.2" 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/hyperquest/example/many_request.js: -------------------------------------------------------------------------------- 1 | var http = require('http'); 2 | var request = require('request'); 3 | 4 | var server = http.createServer(function (req, res) { 5 | res.write(req.url.slice(1) + '\n'); 6 | setTimeout(res.end.bind(res), 3000); 7 | }); 8 | 9 | server.listen(5000, function () { 10 | var pending = 20; 11 | for (var i = 0; i < 20; i++) { 12 | var r = request('http://localhost:5000/' + i); 13 | r.pipe(process.stdout, { end: false }); 14 | r.on('end', function () { 15 | if (--pending === 0) server.close(); 16 | }); 17 | } 18 | }); 19 | 20 | process.stdout.setMaxListeners(0); // turn off annoying warnings 21 | -------------------------------------------------------------------------------- /cmd/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "flag" 5 | "log" 6 | "net/http" 7 | "os" 8 | 9 | web "github.com/klebervirgilio/react-crud-app-with-golang/pkg/http" 10 | "github.com/klebervirgilio/react-crud-app-with-golang/pkg/storage" 11 | ) 12 | 13 | func main() { 14 | httpPort := os.Getenv("PORT") 15 | if httpPort == "" { 16 | httpPort = ":4444" 17 | } else { 18 | httpPort = ":" + httpPort 19 | } 20 | 21 | flag.StringVar(&httpPort, "b", httpPort, "bind on port") 22 | flag.Parse() 23 | 24 | repo := storage.NewMongoRepository() 25 | webService := web.New(repo) 26 | 27 | log.Printf("Running on port %s\n", httpPort) 28 | log.Fatal(http.ListenAndServe(httpPort, webService.Router)) 29 | } 30 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/block-stream/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Isaac Z. Schlueter (http://blog.izs.me/)", 3 | "name": "block-stream", 4 | "description": "a stream of blocks", 5 | "version": "0.0.9", 6 | "repository": { 7 | "type": "git", 8 | "url": "git://github.com/isaacs/block-stream.git" 9 | }, 10 | "engines": { 11 | "node": "0.4 || >=0.5.8" 12 | }, 13 | "main": "block-stream.js", 14 | "dependencies": { 15 | "inherits": "~2.0.0" 16 | }, 17 | "devDependencies": { 18 | "tap": "^5.7.1" 19 | }, 20 | "scripts": { 21 | "test": "tap test/*.js --cov" 22 | }, 23 | "license": "ISC", 24 | "files": [ 25 | "block-stream.js" 26 | ] 27 | } 28 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/hyperquest/example/many_hyperquest.js: -------------------------------------------------------------------------------- 1 | var http = require('http'); 2 | var hyperquest = require('../'); 3 | 4 | var server = http.createServer(function (req, res) { 5 | res.write(req.url.slice(1) + '\n'); 6 | setTimeout(res.end.bind(res), 3000); 7 | }); 8 | 9 | server.listen(5000, function () { 10 | var pending = 20; 11 | for (var i = 0; i < 20; i++) { 12 | var r = hyperquest('http://localhost:5000/' + i); 13 | r.pipe(process.stdout, { end: false }); 14 | r.on('end', function () { 15 | if (--pending === 0) server.close(); 16 | }); 17 | } 18 | }); 19 | 20 | process.stdout.setMaxListeners(0); // turn off annoying warnings 21 | -------------------------------------------------------------------------------- /vendor/github.com/globalsign/mgo/bson/README.md: -------------------------------------------------------------------------------- 1 | [![GoDoc](https://godoc.org/github.com/globalsign/mgo/bson?status.svg)](https://godoc.org/github.com/globalsign/mgo/bson) 2 | 3 | An Implementation of BSON for Go 4 | -------------------------------- 5 | 6 | Package bson is an implementation of the [BSON specification](http://bsonspec.org) for Go. 7 | 8 | While the BSON package implements the BSON spec as faithfully as possible, there 9 | is some MongoDB specific behaviour (such as map keys `$in`, `$all`, etc) in the 10 | `bson` package. The priority is for backwards compatibility for the `mgo` 11 | driver, though fixes for obviously buggy behaviour is welcome (and features, etc 12 | behind feature flags). 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_unix_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build darwin dragonfly freebsd linux netbsd openbsd solaris 6 | // +build !gccgo 7 | 8 | package unix 9 | 10 | import "syscall" 11 | 12 | func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) 13 | func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) 14 | func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) 15 | func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) 16 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/mkdirp/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "mkdirp", 3 | "description": "Recursively mkdir, like `mkdir -p`", 4 | "version": "0.5.1", 5 | "author": "James Halliday (http://substack.net)", 6 | "main": "index.js", 7 | "keywords": [ 8 | "mkdir", 9 | "directory" 10 | ], 11 | "repository": { 12 | "type": "git", 13 | "url": "https://github.com/substack/node-mkdirp.git" 14 | }, 15 | "scripts": { 16 | "test": "tap test/*.js" 17 | }, 18 | "dependencies": { 19 | "minimist": "0.0.8" 20 | }, 21 | "devDependencies": { 22 | "tap": "1", 23 | "mock-fs": "2 >=2.7.0" 24 | }, 25 | "bin": "bin/cmd.js", 26 | "license": "MIT" 27 | } 28 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/xtend/.jshintrc: -------------------------------------------------------------------------------- 1 | { 2 | "maxdepth": 4, 3 | "maxstatements": 200, 4 | "maxcomplexity": 12, 5 | "maxlen": 80, 6 | "maxparams": 5, 7 | 8 | "curly": true, 9 | "eqeqeq": true, 10 | "immed": true, 11 | "latedef": false, 12 | "noarg": true, 13 | "noempty": true, 14 | "nonew": true, 15 | "undef": true, 16 | "unused": "vars", 17 | "trailing": true, 18 | 19 | "quotmark": true, 20 | "expr": true, 21 | "asi": true, 22 | 23 | "browser": false, 24 | "esnext": true, 25 | "devel": false, 26 | "node": false, 27 | "nonstandard": false, 28 | 29 | "predef": ["require", "module", "__dirname", "__filename"] 30 | } 31 | -------------------------------------------------------------------------------- /vendor/github.com/gin-gonic/gin/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | ## Contributing 2 | 3 | - With issues: 4 | - Use the search tool before opening a new issue. 5 | - Please provide source code and commit sha if you found a bug. 6 | - Review existing issues and provide feedback or react to them. 7 | 8 | - With pull requests: 9 | - Open your pull request against `master` 10 | - Your pull request should have no more than two commits, if not you should squash them. 11 | - It should pass all tests in the available continuous integrations systems such as TravisCI. 12 | - You should add/modify tests to cover your proposed code changes. 13 | - If your pull request contains a new feature, please document it on the README. 14 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/concurrent/executor.go: -------------------------------------------------------------------------------- 1 | package concurrent 2 | 3 | import "context" 4 | 5 | // Executor replace go keyword to start a new goroutine 6 | // the goroutine should cancel itself if the context passed in has been cancelled 7 | // the goroutine started by the executor, is owned by the executor 8 | // we can cancel all executors owned by the executor just by stop the executor itself 9 | // however Executor interface does not Stop method, the one starting and owning executor 10 | // should use the concrete type of executor, instead of this interface. 11 | type Executor interface { 12 | // Go starts a new goroutine controlled by the context 13 | Go(handler func(ctx context.Context)) 14 | } 15 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/escape-string-regexp/readme.md: -------------------------------------------------------------------------------- 1 | # escape-string-regexp [![Build Status](https://travis-ci.org/sindresorhus/escape-string-regexp.svg?branch=master)](https://travis-ci.org/sindresorhus/escape-string-regexp) 2 | 3 | > Escape RegExp special characters 4 | 5 | 6 | ## Install 7 | 8 | ``` 9 | $ npm install --save escape-string-regexp 10 | ``` 11 | 12 | 13 | ## Usage 14 | 15 | ```js 16 | const escapeStringRegexp = require('escape-string-regexp'); 17 | 18 | const escapedString = escapeStringRegexp('how much $ for a unicorn?'); 19 | //=> 'how much \$ for a unicorn\?' 20 | 21 | new RegExp(escapedString); 22 | ``` 23 | 24 | 25 | ## License 26 | 27 | MIT © [Sindre Sorhus](http://sindresorhus.com) 28 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/os-tmpdir/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | var isWindows = process.platform === 'win32'; 3 | var trailingSlashRe = isWindows ? /[^:]\\$/ : /.\/$/; 4 | 5 | // https://github.com/nodejs/node/blob/3e7a14381497a3b73dda68d05b5130563cdab420/lib/os.js#L25-L43 6 | module.exports = function () { 7 | var path; 8 | 9 | if (isWindows) { 10 | path = process.env.TEMP || 11 | process.env.TMP || 12 | (process.env.SystemRoot || process.env.windir) + '\\temp'; 13 | } else { 14 | path = process.env.TMPDIR || 15 | process.env.TMP || 16 | process.env.TEMP || 17 | '/tmp'; 18 | } 19 | 20 | if (trailingSlashRe.test(path)) { 21 | path = path.slice(0, -1); 22 | } 23 | 24 | return path; 25 | }; 26 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/semver/range.bnf: -------------------------------------------------------------------------------- 1 | range-set ::= range ( logical-or range ) * 2 | logical-or ::= ( ' ' ) * '||' ( ' ' ) * 3 | range ::= hyphen | simple ( ' ' simple ) * | '' 4 | hyphen ::= partial ' - ' partial 5 | simple ::= primitive | partial | tilde | caret 6 | primitive ::= ( '<' | '>' | '>=' | '<=' | '=' ) partial 7 | partial ::= xr ( '.' xr ( '.' xr qualifier ? )? )? 8 | xr ::= 'x' | 'X' | '*' | nr 9 | nr ::= '0' | [1-9] ( [0-9] ) * 10 | tilde ::= '~' partial 11 | caret ::= '^' partial 12 | qualifier ::= ( '-' pre )? ( '+' build )? 13 | pre ::= parts 14 | build ::= parts 15 | parts ::= part ( '.' part ) * 16 | part ::= nr | [-0-9A-Za-z]+ 17 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/Gopkg.lock: -------------------------------------------------------------------------------- 1 | # This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. 2 | 3 | 4 | [[projects]] 5 | name = "github.com/modern-go/concurrent" 6 | packages = ["."] 7 | revision = "e0a39a4cb4216ea8db28e22a69f4ec25610d513a" 8 | version = "1.0.0" 9 | 10 | [[projects]] 11 | name = "github.com/modern-go/reflect2" 12 | packages = ["."] 13 | revision = "4b7aa43c6742a2c18fdef89dd197aaae7dac7ccd" 14 | version = "1.0.1" 15 | 16 | [solve-meta] 17 | analyzer-name = "dep" 18 | analyzer-version = 1 19 | inputs-digest = "ea54a775e5a354cb015502d2e7aa4b74230fc77e894f34a838b268c25ec8eeb8" 20 | solver-name = "gps-cdcl" 21 | solver-version = 1 22 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/dirent.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build aix darwin dragonfly freebsd linux nacl netbsd openbsd solaris 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | // ParseDirent parses up to max directory entries in buf, 12 | // appending the names to names. It returns the number of 13 | // bytes consumed from buf, the number of entries added 14 | // to names, and the new names slice. 15 | func ParseDirent(buf []byte, max int, names []string) (consumed int, count int, newnames []string) { 16 | return syscall.ParseDirent(buf, max, names) 17 | } 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_gccgo_arm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build linux,gccgo,arm 6 | 7 | package unix 8 | 9 | import ( 10 | "syscall" 11 | "unsafe" 12 | ) 13 | 14 | func seek(fd int, offset int64, whence int) (int64, syscall.Errno) { 15 | var newoffset int64 16 | offsetLow := uint32(offset & 0xffffffff) 17 | offsetHigh := uint32((offset >> 32) & 0xffffffff) 18 | _, _, err := Syscall6(SYS__LLSEEK, uintptr(fd), uintptr(offsetHigh), uintptr(offsetLow), uintptr(unsafe.Pointer(&newoffset)), uintptr(whence), 0) 19 | return newoffset, err 20 | } 21 | -------------------------------------------------------------------------------- /pkg/storage/storage_suite_test.go: -------------------------------------------------------------------------------- 1 | package storage_test 2 | 3 | import ( 4 | "log" 5 | "os" 6 | "testing" 7 | 8 | "github.com/globalsign/mgo" 9 | "github.com/globalsign/mgo/bson" 10 | "github.com/klebervirgilio/react-crud-app-with-golang/pkg/storage" 11 | 12 | . "github.com/onsi/ginkgo" 13 | . "github.com/onsi/gomega" 14 | ) 15 | 16 | func TestStorage(t *testing.T) { 17 | RegisterFailHandler(Fail) 18 | RunSpecs(t, "Storage Suite") 19 | } 20 | 21 | var _ = BeforeEach(func() { 22 | mongoURL := os.Getenv("MONGO_URL") 23 | session, err := mgo.Dial(mongoURL) 24 | if err != nil { 25 | log.Fatal(err) 26 | } 27 | defer session.Close() 28 | session.DB("").C(storage.GetCollectionName()).RemoveAll(bson.M{}) 29 | }) 30 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/fs.realpath/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "fs.realpath", 3 | "version": "1.0.0", 4 | "description": "Use node's fs.realpath, but fall back to the JS implementation if the native one fails", 5 | "main": "index.js", 6 | "dependencies": {}, 7 | "devDependencies": {}, 8 | "scripts": { 9 | "test": "tap test/*.js --cov" 10 | }, 11 | "repository": { 12 | "type": "git", 13 | "url": "git+https://github.com/isaacs/fs.realpath.git" 14 | }, 15 | "keywords": [ 16 | "realpath", 17 | "fs", 18 | "polyfill" 19 | ], 20 | "author": "Isaac Z. Schlueter (http://blog.izs.me/)", 21 | "license": "ISC", 22 | "files": [ 23 | "old.js", 24 | "index.js" 25 | ] 26 | } 27 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/isarray/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "isarray", 3 | "description" : "Array#isArray for older browsers", 4 | "version" : "0.0.1", 5 | "repository" : { 6 | "type" : "git", 7 | "url" : "git://github.com/juliangruber/isarray.git" 8 | }, 9 | "homepage": "https://github.com/juliangruber/isarray", 10 | "main" : "index.js", 11 | "scripts" : { 12 | "test" : "tap test/*.js" 13 | }, 14 | "dependencies" : {}, 15 | "devDependencies" : { 16 | "tap" : "*" 17 | }, 18 | "keywords": ["browser","isarray","array"], 19 | "author": { 20 | "name": "Julian Gruber", 21 | "email": "mail@juliangruber.com", 22 | "url": "http://juliangruber.com" 23 | }, 24 | "license": "MIT" 25 | } 26 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/path-is-absolute/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | function posix(path) { 4 | return path.charAt(0) === '/'; 5 | } 6 | 7 | function win32(path) { 8 | // https://github.com/nodejs/node/blob/b3fcc245fb25539909ef1d5eaa01dbf92e168633/lib/path.js#L56 9 | var splitDeviceRe = /^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/; 10 | var result = splitDeviceRe.exec(path); 11 | var device = result[1] || ''; 12 | var isUnc = Boolean(device && device.charAt(1) !== ':'); 13 | 14 | // UNC paths are always absolute 15 | return Boolean(result[2] || isUnc); 16 | } 17 | 18 | module.exports = process.platform === 'win32' ? win32 : posix; 19 | module.exports.posix = posix; 20 | module.exports.win32 = win32; 21 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/process-nextick-args/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "process-nextick-args", 3 | "version": "2.0.0", 4 | "description": "process.nextTick but always with args", 5 | "main": "index.js", 6 | "files": [ 7 | "index.js" 8 | ], 9 | "scripts": { 10 | "test": "node test.js" 11 | }, 12 | "repository": { 13 | "type": "git", 14 | "url": "https://github.com/calvinmetcalf/process-nextick-args.git" 15 | }, 16 | "author": "", 17 | "license": "MIT", 18 | "bugs": { 19 | "url": "https://github.com/calvinmetcalf/process-nextick-args/issues" 20 | }, 21 | "homepage": "https://github.com/calvinmetcalf/process-nextick-args", 22 | "devDependencies": { 23 | "tap": "~0.2.6" 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/lestrrat-go/pdebug/common.go: -------------------------------------------------------------------------------- 1 | package pdebug 2 | 3 | import ( 4 | "io" 5 | "os" 6 | "sync" 7 | "time" 8 | ) 9 | 10 | type pdctx struct { 11 | mutex sync.Mutex 12 | indentL int 13 | LogTime bool 14 | Prefix string 15 | Writer io.Writer 16 | } 17 | 18 | var emptyMarkerGuard = &markerg{} 19 | 20 | type markerg struct { 21 | indentg guard 22 | ctx *pdctx 23 | f string 24 | args []interface{} 25 | start time.Time 26 | errptr *error 27 | } 28 | 29 | var DefaultCtx = &pdctx{ 30 | LogTime: true, 31 | Prefix: "|DEBUG| ", 32 | Writer: os.Stdout, 33 | } 34 | 35 | type guard struct { 36 | cb func() 37 | } 38 | 39 | func (g *guard) End() { 40 | if cb := g.cb; cb != nil { 41 | cb() 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/fs-extra/docs/ensureDir.md: -------------------------------------------------------------------------------- 1 | # ensureDir(dir, [callback]) 2 | 3 | Ensures that the directory exists. If the directory structure does not exist, it is created. Like `mkdir -p`. 4 | 5 | **Aliases:** `mkdirs()`, `mkdirp()` 6 | 7 | - `dir` `` 8 | - `callback` `` 9 | 10 | ## Example: 11 | 12 | ```js 13 | const fs = require('fs-extra') 14 | 15 | const dir = '/tmp/this/path/does/not/exist' 16 | fs.ensureDir(dir, err => { 17 | console.log(err) // => null 18 | // dir has now been created, including the directory it is to be placed in 19 | }) 20 | 21 | // With Promises: 22 | fs.ensureDir(dir) 23 | .then(() => { 24 | console.log('success!') 25 | }) 26 | .catch(err => { 27 | console.error(err) 28 | }) 29 | ``` 30 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/fstream-ignore/README.md: -------------------------------------------------------------------------------- 1 | # fstream-ignore 2 | 3 | A fstream DirReader that filters out files that match globs in `.ignore` 4 | files throughout the tree, like how git ignores files based on a 5 | `.gitignore` file. 6 | 7 | Here's an example: 8 | 9 | ```javascript 10 | var Ignore = require("fstream-ignore") 11 | Ignore({ path: __dirname 12 | , ignoreFiles: [".ignore", ".gitignore"] 13 | }) 14 | .on("child", function (c) { 15 | console.error(c.path.substr(c.root.path.length + 1)) 16 | }) 17 | .pipe(tar.Pack()) 18 | .pipe(fs.createWriteStream("foo.tar")) 19 | ``` 20 | 21 | This will tar up the files in __dirname into `foo.tar`, ignoring 22 | anything matched by the globs in any .iginore or .gitignore file. 23 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/inherits/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "inherits", 3 | "description": "Browser-friendly inheritance fully compatible with standard node.js inherits()", 4 | "version": "2.0.3", 5 | "keywords": [ 6 | "inheritance", 7 | "class", 8 | "klass", 9 | "oop", 10 | "object-oriented", 11 | "inherits", 12 | "browser", 13 | "browserify" 14 | ], 15 | "main": "./inherits.js", 16 | "browser": "./inherits_browser.js", 17 | "repository": "git://github.com/isaacs/inherits", 18 | "license": "ISC", 19 | "scripts": { 20 | "test": "node test" 21 | }, 22 | "devDependencies": { 23 | "tap": "^7.1.0" 24 | }, 25 | "files": [ 26 | "inherits.js", 27 | "inherits_browser.js" 28 | ] 29 | } 30 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/once/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "once", 3 | "version": "1.4.0", 4 | "description": "Run a function exactly one time", 5 | "main": "once.js", 6 | "directories": { 7 | "test": "test" 8 | }, 9 | "dependencies": { 10 | "wrappy": "1" 11 | }, 12 | "devDependencies": { 13 | "tap": "^7.0.1" 14 | }, 15 | "scripts": { 16 | "test": "tap test/*.js" 17 | }, 18 | "files": [ 19 | "once.js" 20 | ], 21 | "repository": { 22 | "type": "git", 23 | "url": "git://github.com/isaacs/once" 24 | }, 25 | "keywords": [ 26 | "once", 27 | "function", 28 | "one", 29 | "single" 30 | ], 31 | "author": "Isaac Z. Schlueter (http://blog.izs.me/)", 32 | "license": "ISC" 33 | } 34 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/str.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris 6 | 7 | package unix 8 | 9 | func itoa(val int) string { // do it here rather than with fmt to avoid dependency 10 | if val < 0 { 11 | return "-" + uitoa(uint(-val)) 12 | } 13 | return uitoa(uint(val)) 14 | } 15 | 16 | func uitoa(val uint) string { 17 | var buf [32]byte // big enough for int64 18 | i := len(buf) - 1 19 | for val >= 10 { 20 | buf[i] = byte(val%10 + '0') 21 | i-- 22 | val /= 10 23 | } 24 | buf[i] = byte(val + '0') 25 | return string(buf[i:]) 26 | } 27 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/fstream-ignore/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Isaac Z. Schlueter (http://blog.izs.me/)", 3 | "name": "fstream-ignore", 4 | "description": "A thing for ignoring files based on globs", 5 | "version": "1.0.5", 6 | "repository": { 7 | "type": "git", 8 | "url": "git://github.com/isaacs/fstream-ignore.git" 9 | }, 10 | "main": "ignore.js", 11 | "scripts": { 12 | "test": "tap test/*.js --cov" 13 | }, 14 | "dependencies": { 15 | "fstream": "^1.0.0", 16 | "inherits": "2", 17 | "minimatch": "^3.0.0" 18 | }, 19 | "devDependencies": { 20 | "mkdirp": "", 21 | "rimraf": "", 22 | "tap": "^5.7.1" 23 | }, 24 | "license": "ISC", 25 | "files": [ 26 | "ignore.js" 27 | ] 28 | } 29 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/fs-extra/lib/ensure/index.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | 3 | const file = require('./file') 4 | const link = require('./link') 5 | const symlink = require('./symlink') 6 | 7 | module.exports = { 8 | // file 9 | createFile: file.createFile, 10 | createFileSync: file.createFileSync, 11 | ensureFile: file.createFile, 12 | ensureFileSync: file.createFileSync, 13 | // link 14 | createLink: link.createLink, 15 | createLinkSync: link.createLinkSync, 16 | ensureLink: link.createLink, 17 | ensureLinkSync: link.createLinkSync, 18 | // symlink 19 | createSymlink: symlink.createSymlink, 20 | createSymlinkSync: symlink.createSymlinkSync, 21 | ensureSymlink: symlink.createSymlink, 22 | ensureSymlinkSync: symlink.createSymlinkSync 23 | } 24 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/fstream/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Isaac Z. Schlueter (http://blog.izs.me/)", 3 | "name": "fstream", 4 | "description": "Advanced file system stream things", 5 | "version": "1.0.11", 6 | "repository": { 7 | "type": "git", 8 | "url": "https://github.com/npm/fstream.git" 9 | }, 10 | "main": "fstream.js", 11 | "engines": { 12 | "node": ">=0.6" 13 | }, 14 | "dependencies": { 15 | "graceful-fs": "^4.1.2", 16 | "inherits": "~2.0.0", 17 | "mkdirp": ">=0.5 0", 18 | "rimraf": "2" 19 | }, 20 | "devDependencies": { 21 | "standard": "^4.0.0", 22 | "tap": "^1.2.0" 23 | }, 24 | "scripts": { 25 | "test": "standard && tap examples/*.js" 26 | }, 27 | "license": "ISC" 28 | } 29 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/matchers/be_true_matcher.go: -------------------------------------------------------------------------------- 1 | package matchers 2 | 3 | import ( 4 | "fmt" 5 | 6 | "github.com/onsi/gomega/format" 7 | ) 8 | 9 | type BeTrueMatcher struct { 10 | } 11 | 12 | func (matcher *BeTrueMatcher) Match(actual interface{}) (success bool, err error) { 13 | if !isBool(actual) { 14 | return false, fmt.Errorf("Expected a boolean. Got:\n%s", format.Object(actual, 1)) 15 | } 16 | 17 | return actual.(bool), nil 18 | } 19 | 20 | func (matcher *BeTrueMatcher) FailureMessage(actual interface{}) (message string) { 21 | return format.Message(actual, "to be true") 22 | } 23 | 24 | func (matcher *BeTrueMatcher) NegatedFailureMessage(actual interface{}) (message string) { 25 | return format.Message(actual, "not to be true") 26 | } 27 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/wrappy/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "wrappy", 3 | "version": "1.0.2", 4 | "description": "Callback wrapping utility", 5 | "main": "wrappy.js", 6 | "files": [ 7 | "wrappy.js" 8 | ], 9 | "directories": { 10 | "test": "test" 11 | }, 12 | "dependencies": {}, 13 | "devDependencies": { 14 | "tap": "^2.3.1" 15 | }, 16 | "scripts": { 17 | "test": "tap --coverage test/*.js" 18 | }, 19 | "repository": { 20 | "type": "git", 21 | "url": "https://github.com/npm/wrappy" 22 | }, 23 | "author": "Isaac Z. Schlueter (http://blog.izs.me/)", 24 | "license": "ISC", 25 | "bugs": { 26 | "url": "https://github.com/npm/wrappy/issues" 27 | }, 28 | "homepage": "https://github.com/npm/wrappy" 29 | } 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/race.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build darwin,race linux,race freebsd,race 6 | 7 | package unix 8 | 9 | import ( 10 | "runtime" 11 | "unsafe" 12 | ) 13 | 14 | const raceenabled = true 15 | 16 | func raceAcquire(addr unsafe.Pointer) { 17 | runtime.RaceAcquire(addr) 18 | } 19 | 20 | func raceReleaseMerge(addr unsafe.Pointer) { 21 | runtime.RaceReleaseMerge(addr) 22 | } 23 | 24 | func raceReadRange(addr unsafe.Pointer, len int) { 25 | runtime.RaceReadRange(addr, len) 26 | } 27 | 28 | func raceWriteRange(addr unsafe.Pointer, len int) { 29 | runtime.RaceWriteRange(addr, len) 30 | } 31 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/matchers/be_false_matcher.go: -------------------------------------------------------------------------------- 1 | package matchers 2 | 3 | import ( 4 | "fmt" 5 | 6 | "github.com/onsi/gomega/format" 7 | ) 8 | 9 | type BeFalseMatcher struct { 10 | } 11 | 12 | func (matcher *BeFalseMatcher) Match(actual interface{}) (success bool, err error) { 13 | if !isBool(actual) { 14 | return false, fmt.Errorf("Expected a boolean. Got:\n%s", format.Object(actual, 1)) 15 | } 16 | 17 | return actual == false, nil 18 | } 19 | 20 | func (matcher *BeFalseMatcher) FailureMessage(actual interface{}) (message string) { 21 | return format.Message(actual, "to be false") 22 | } 23 | 24 | func (matcher *BeFalseMatcher) NegatedFailureMessage(actual interface{}) (message string) { 25 | return format.Message(actual, "not to be false") 26 | } 27 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/fs-extra/docs/pathExists.md: -------------------------------------------------------------------------------- 1 | # pathExists(file[, callback]) 2 | 3 | Test whether or not the given path exists by checking with the file system. Like [`fs.exists`](https://nodejs.org/api/fs.html#fs_fs_exists_path_callback), but with a normal callback signature (err, exists). Uses `fs.access` under the hood. 4 | 5 | - `file` `` 6 | - `callback` `` 7 | 8 | ## Example: 9 | 10 | ```js 11 | const fs = require('fs-extra') 12 | 13 | const file = '/tmp/this/path/does/not/exist/file.txt' 14 | // Promise usage: 15 | fs.pathExists(file) 16 | .then(exists => console.log(exists)) // => false 17 | // Callback usage: 18 | fs.pathExists(file, (err, exists) => { 19 | console.log(err) // => null 20 | console.log(exists) // => false 21 | }) 22 | ``` 23 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/tar-pack/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "tar-pack", 3 | "version": "3.4.1", 4 | "description": "Package and un-package modules of some sort (in tar/gz bundles).", 5 | "scripts": { 6 | "test": "mocha -R list" 7 | }, 8 | "repository": { 9 | "type": "git", 10 | "url": "https://github.com/ForbesLindesay/tar-pack.git" 11 | }, 12 | "license": "BSD-2-Clause", 13 | "dependencies": { 14 | "debug": "^2.2.0", 15 | "fstream": "^1.0.10", 16 | "fstream-ignore": "^1.0.5", 17 | "once": "^1.3.3", 18 | "readable-stream": "^2.1.4", 19 | "rimraf": "^2.5.1", 20 | "tar": "^2.2.1", 21 | "uid-number": "^0.0.6" 22 | }, 23 | "devDependencies": { 24 | "mocha": "*", 25 | "rfile": "*", 26 | "mkdirp": "*" 27 | } 28 | } -------------------------------------------------------------------------------- /pkg/http/web/node_modules/validate-npm-package-name/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2015, npm, Inc 2 | 3 | 4 | Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. 5 | 6 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 7 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/env_unix.go: -------------------------------------------------------------------------------- 1 | // Copyright 2010 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris 6 | 7 | // Unix environment variables. 8 | 9 | package unix 10 | 11 | import "syscall" 12 | 13 | func Getenv(key string) (value string, found bool) { 14 | return syscall.Getenv(key) 15 | } 16 | 17 | func Setenv(key, value string) error { 18 | return syscall.Setenv(key, value) 19 | } 20 | 21 | func Clearenv() { 22 | syscall.Clearenv() 23 | } 24 | 25 | func Environ() []string { 26 | return syscall.Environ() 27 | } 28 | 29 | func Unsetenv(key string) error { 30 | return syscall.Unsetenv(key) 31 | } 32 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/uid-number/get-uid-gid.js: -------------------------------------------------------------------------------- 1 | if (module !== require.main) { 2 | throw new Error("This file should not be loaded with require()") 3 | } 4 | 5 | if (!process.getuid || !process.getgid) { 6 | throw new Error("this file should not be called without uid/gid support") 7 | } 8 | 9 | var argv = process.argv.slice(2) 10 | , user = argv[0] || process.getuid() 11 | , group = argv[1] || process.getgid() 12 | 13 | if (!isNaN(user)) user = +user 14 | if (!isNaN(group)) group = +group 15 | 16 | console.error([user, group]) 17 | 18 | try { 19 | process.setgid(group) 20 | process.setuid(user) 21 | console.log(JSON.stringify({uid:+process.getuid(), gid:+process.getgid()})) 22 | } catch (ex) { 23 | console.log(JSON.stringify({error:ex.message,errno:ex.errno})) 24 | } 25 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/fs-extra/docs/remove.md: -------------------------------------------------------------------------------- 1 | # remove(path, [callback]) 2 | 3 | Removes a file or directory. The directory can have contents. Like `rm -rf`. 4 | 5 | - `path` `` 6 | - `callback` `` 7 | 8 | ## Example: 9 | 10 | ```js 11 | const fs = require('fs-extra') 12 | 13 | // remove file 14 | fs.remove('/tmp/myfile', err => { 15 | if (err) return console.error(err) 16 | 17 | console.log('success!') 18 | }) 19 | 20 | fs.remove('/home/jprichardson', err => { 21 | if (err) return console.error(err) 22 | 23 | console.log('success!') // I just deleted my entire HOME directory. 24 | }) 25 | 26 | // Promise Usage 27 | fs.remove('/tmp/myfile') 28 | .then(() => { 29 | console.log('success!') 30 | }) 31 | .catch(err => { 32 | console.error(err) 33 | }) 34 | ``` 35 | -------------------------------------------------------------------------------- /vendor/github.com/gin-gonic/gin/render/yaml.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 Manu Martinez-Almeida. All rights reserved. 2 | // Use of this source code is governed by a MIT style 3 | // license that can be found in the LICENSE file. 4 | 5 | package render 6 | 7 | import ( 8 | "net/http" 9 | 10 | "gopkg.in/yaml.v2" 11 | ) 12 | 13 | type YAML struct { 14 | Data interface{} 15 | } 16 | 17 | var yamlContentType = []string{"application/x-yaml; charset=utf-8"} 18 | 19 | func (r YAML) Render(w http.ResponseWriter) error { 20 | r.WriteContentType(w) 21 | 22 | bytes, err := yaml.Marshal(r.Data) 23 | if err != nil { 24 | return err 25 | } 26 | 27 | w.Write(bytes) 28 | return nil 29 | } 30 | 31 | func (r YAML) WriteContentType(w http.ResponseWriter) { 32 | writeContentType(w, yamlContentType) 33 | } 34 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/fs-extra/docs/emptyDir.md: -------------------------------------------------------------------------------- 1 | # emptyDir(dir, [callback]) 2 | 3 | Ensures that a directory is empty. Deletes directory contents if the directory is not empty. If the directory does not exist, it is created. The directory itself is not deleted. 4 | 5 | **Alias:** `emptydir()` 6 | 7 | - `dir` `` 8 | - `callback` `` 9 | 10 | ## Example: 11 | 12 | ```js 13 | const fs = require('fs-extra') 14 | 15 | // assume this directory has a lot of files and folders 16 | fs.emptyDir('/tmp/some/dir', err => { 17 | if (err) return console.error(err) 18 | 19 | console.log('success!') 20 | }) 21 | 22 | // With promises 23 | fs.emptyDir('/tmp/some/dir') 24 | .then(() => { 25 | console.log('success!') 26 | }) 27 | .catch(err => { 28 | console.error(err) 29 | }) 30 | ``` 31 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/fstream/lib/get-type.js: -------------------------------------------------------------------------------- 1 | module.exports = getType 2 | 3 | function getType (st) { 4 | var types = [ 5 | 'Directory', 6 | 'File', 7 | 'SymbolicLink', 8 | 'Link', // special for hardlinks from tarballs 9 | 'BlockDevice', 10 | 'CharacterDevice', 11 | 'FIFO', 12 | 'Socket' 13 | ] 14 | var type 15 | 16 | if (st.type && types.indexOf(st.type) !== -1) { 17 | st[st.type] = true 18 | return st.type 19 | } 20 | 21 | for (var i = 0, l = types.length; i < l; i++) { 22 | type = types[i] 23 | var is = st[type] || st['is' + type] 24 | if (typeof is === 'function') is = is.call(st) 25 | if (is) { 26 | st[type] = true 27 | st.type = type 28 | return type 29 | } 30 | } 31 | 32 | return null 33 | } 34 | -------------------------------------------------------------------------------- /vendor/gopkg.in/yaml.v2/writerc.go: -------------------------------------------------------------------------------- 1 | package yaml 2 | 3 | // Set the writer error and return false. 4 | func yaml_emitter_set_writer_error(emitter *yaml_emitter_t, problem string) bool { 5 | emitter.error = yaml_WRITER_ERROR 6 | emitter.problem = problem 7 | return false 8 | } 9 | 10 | // Flush the output buffer. 11 | func yaml_emitter_flush(emitter *yaml_emitter_t) bool { 12 | if emitter.write_handler == nil { 13 | panic("write handler not set") 14 | } 15 | 16 | // Check if the buffer is empty. 17 | if emitter.buffer_pos == 0 { 18 | return true 19 | } 20 | 21 | if err := emitter.write_handler(emitter, emitter.buffer[:emitter.buffer_pos]); err != nil { 22 | return yaml_emitter_set_writer_error(emitter, "write error: "+err.Error()) 23 | } 24 | emitter.buffer_pos = 0 25 | return true 26 | } 27 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/fs-extra/docs/ensureLink.md: -------------------------------------------------------------------------------- 1 | # ensureLink(srcpath, dstpath, [callback]) 2 | 3 | Ensures that the link exists. If the directory structure does not exist, it is created. 4 | 5 | - `srcpath` `` 6 | - `dstpath` `` 7 | - `callback` `` 8 | 9 | ## Example: 10 | 11 | ```js 12 | const fs = require('fs-extra') 13 | 14 | const srcpath = '/tmp/file.txt' 15 | const dstpath = '/tmp/this/path/does/not/exist/file.txt' 16 | fs.ensureLink(srcpath, dstpath, err => { 17 | console.log(err) // => null 18 | // link has now been created, including the directory it is to be placed in 19 | }) 20 | 21 | // With Promises: 22 | fs.ensureLink(srcpath, dstpath) 23 | .then(() => { 24 | console.log('success!') 25 | }) 26 | .catch(err => { 27 | console.error(err) 28 | }) 29 | ``` 30 | -------------------------------------------------------------------------------- /vendor/github.com/gin-gonic/gin/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | sudo: false 3 | go: 4 | - 1.6.x 5 | - 1.7.x 6 | - 1.8.x 7 | - 1.9.x 8 | - 1.10.x 9 | - master 10 | 11 | git: 12 | depth: 10 13 | 14 | install: 15 | - make install 16 | 17 | go_import_path: github.com/gin-gonic/gin 18 | 19 | script: 20 | - make vet 21 | - make fmt-check 22 | - make embedmd 23 | - make misspell-check 24 | - make test 25 | 26 | after_success: 27 | - bash <(curl -s https://codecov.io/bash) 28 | 29 | notifications: 30 | webhooks: 31 | urls: 32 | - https://webhooks.gitter.im/e/7f95bf605c4d356372f4 33 | on_success: change # options: [always|never|change] default: always 34 | on_failure: always # options: [always|never|change] default: always 35 | on_start: false # default: false 36 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/matchers/be_zero_matcher.go: -------------------------------------------------------------------------------- 1 | package matchers 2 | 3 | import ( 4 | "reflect" 5 | 6 | "github.com/onsi/gomega/format" 7 | ) 8 | 9 | type BeZeroMatcher struct { 10 | } 11 | 12 | func (matcher *BeZeroMatcher) Match(actual interface{}) (success bool, err error) { 13 | if actual == nil { 14 | return true, nil 15 | } 16 | zeroValue := reflect.Zero(reflect.TypeOf(actual)).Interface() 17 | 18 | return reflect.DeepEqual(zeroValue, actual), nil 19 | 20 | } 21 | 22 | func (matcher *BeZeroMatcher) FailureMessage(actual interface{}) (message string) { 23 | return format.Message(actual, "to be zero-valued") 24 | } 25 | 26 | func (matcher *BeZeroMatcher) NegatedFailureMessage(actual interface{}) (message string) { 27 | return format.Message(actual, "not to be zero-valued") 28 | } 29 | -------------------------------------------------------------------------------- /vendor/github.com/ugorji/go/codec/gen-enc-chan.go.tmpl: -------------------------------------------------------------------------------- 1 | {{.Label}}: 2 | switch timeout{{.Sfx}} := z.EncBasicHandle().ChanRecvTimeout; { 3 | case timeout{{.Sfx}} == 0: // only consume available 4 | for { 5 | select { 6 | case b{{.Sfx}} := <-{{.Chan}}: 7 | {{ .Slice }} = append({{.Slice}}, b{{.Sfx}}) 8 | default: 9 | break {{.Label}} 10 | } 11 | } 12 | case timeout{{.Sfx}} > 0: // consume until timeout 13 | tt{{.Sfx}} := time.NewTimer(timeout{{.Sfx}}) 14 | for { 15 | select { 16 | case b{{.Sfx}} := <-{{.Chan}}: 17 | {{.Slice}} = append({{.Slice}}, b{{.Sfx}}) 18 | case <-tt{{.Sfx}}.C: 19 | // close(tt.C) 20 | break {{.Label}} 21 | } 22 | } 23 | default: // consume until close 24 | for b{{.Sfx}} := range {{.Chan}} { 25 | {{.Slice}} = append({{.Slice}}, b{{.Sfx}}) 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/inherits/inherits_browser.js: -------------------------------------------------------------------------------- 1 | if (typeof Object.create === 'function') { 2 | // implementation from standard node.js 'util' module 3 | module.exports = function inherits(ctor, superCtor) { 4 | ctor.super_ = superCtor 5 | ctor.prototype = Object.create(superCtor.prototype, { 6 | constructor: { 7 | value: ctor, 8 | enumerable: false, 9 | writable: true, 10 | configurable: true 11 | } 12 | }); 13 | }; 14 | } else { 15 | // old school shim for old browsers 16 | module.exports = function inherits(ctor, superCtor) { 17 | ctor.super_ = superCtor 18 | var TempCtor = function () {} 19 | TempCtor.prototype = superCtor.prototype 20 | ctor.prototype = new TempCtor() 21 | ctor.prototype.constructor = ctor 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/tar/test/parse-discard.js: -------------------------------------------------------------------------------- 1 | var tap = require("tap") 2 | , tar = require("../tar.js") 3 | , fs = require("fs") 4 | , path = require("path") 5 | , file = path.resolve(__dirname, "fixtures/c.tar") 6 | 7 | tap.test("parser test", function (t) { 8 | var parser = tar.Parse() 9 | var total = 0 10 | var dataTotal = 0 11 | 12 | parser.on("end", function () { 13 | 14 | t.equals(total-513,dataTotal,'should have discarded only c.txt') 15 | 16 | t.end() 17 | }) 18 | 19 | fs.createReadStream(file) 20 | .pipe(parser) 21 | .on('entry',function(entry){ 22 | if(entry.path === 'c.txt') entry.abort() 23 | 24 | total += entry.size; 25 | entry.on('data',function(data){ 26 | dataTotal += data.length 27 | }) 28 | }) 29 | }) 30 | -------------------------------------------------------------------------------- /vendor/github.com/pkg/errors/appveyor.yml: -------------------------------------------------------------------------------- 1 | version: build-{build}.{branch} 2 | 3 | clone_folder: C:\gopath\src\github.com\pkg\errors 4 | shallow_clone: true # for startup speed 5 | 6 | environment: 7 | GOPATH: C:\gopath 8 | 9 | platform: 10 | - x64 11 | 12 | # http://www.appveyor.com/docs/installed-software 13 | install: 14 | # some helpful output for debugging builds 15 | - go version 16 | - go env 17 | # pre-installed MinGW at C:\MinGW is 32bit only 18 | # but MSYS2 at C:\msys64 has mingw64 19 | - set PATH=C:\msys64\mingw64\bin;%PATH% 20 | - gcc --version 21 | - g++ --version 22 | 23 | build_script: 24 | - go install -v ./... 25 | 26 | test_script: 27 | - set PATH=C:\gopath\bin;%PATH% 28 | - go test -v ./... 29 | 30 | #artifacts: 31 | # - path: '%GOPATH%\bin\*.exe' 32 | deploy: off 33 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/yallist/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "yallist", 3 | "version": "2.1.2", 4 | "description": "Yet Another Linked List", 5 | "main": "yallist.js", 6 | "directories": { 7 | "test": "test" 8 | }, 9 | "files": [ 10 | "yallist.js", 11 | "iterator.js" 12 | ], 13 | "dependencies": {}, 14 | "devDependencies": { 15 | "tap": "^10.3.0" 16 | }, 17 | "scripts": { 18 | "test": "tap test/*.js --100", 19 | "preversion": "npm test", 20 | "postversion": "npm publish", 21 | "postpublish": "git push origin --all; git push origin --tags" 22 | }, 23 | "repository": { 24 | "type": "git", 25 | "url": "git+https://github.com/isaacs/yallist.git" 26 | }, 27 | "author": "Isaac Z. Schlueter (http://blog.izs.me/)", 28 | "license": "ISC" 29 | } 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_freebsd_arm.s: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for ARM, FreeBSD 11 | // 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-28 17 | B syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-40 20 | B syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-52 23 | B syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28 26 | B syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 29 | B syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_netbsd_arm.s: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for ARM, NetBSD 11 | // 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-28 17 | B syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-40 20 | B syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-52 23 | B syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28 26 | B syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 29 | B syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_openbsd_arm.s: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for ARM, OpenBSD 11 | // 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-28 17 | B syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-40 20 | B syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-52 23 | B syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28 26 | B syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 29 | B syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/fs-extra/lib/json/output-json.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | 3 | const path = require('path') 4 | const mkdir = require('../mkdirs') 5 | const pathExists = require('../path-exists').pathExists 6 | const jsonFile = require('./jsonfile') 7 | 8 | function outputJson (file, data, options, callback) { 9 | if (typeof options === 'function') { 10 | callback = options 11 | options = {} 12 | } 13 | 14 | const dir = path.dirname(file) 15 | 16 | pathExists(dir, (err, itDoes) => { 17 | if (err) return callback(err) 18 | if (itDoes) return jsonFile.writeJson(file, data, options, callback) 19 | 20 | mkdir.mkdirs(dir, err => { 21 | if (err) return callback(err) 22 | jsonFile.writeJson(file, data, options, callback) 23 | }) 24 | }) 25 | } 26 | 27 | module.exports = outputJson 28 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/inflight/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "inflight", 3 | "version": "1.0.6", 4 | "description": "Add callbacks to requests in flight to avoid async duplication", 5 | "main": "inflight.js", 6 | "files": [ 7 | "inflight.js" 8 | ], 9 | "dependencies": { 10 | "once": "^1.3.0", 11 | "wrappy": "1" 12 | }, 13 | "devDependencies": { 14 | "tap": "^7.1.2" 15 | }, 16 | "scripts": { 17 | "test": "tap test.js --100" 18 | }, 19 | "repository": { 20 | "type": "git", 21 | "url": "https://github.com/npm/inflight.git" 22 | }, 23 | "author": "Isaac Z. Schlueter (http://blog.izs.me/)", 24 | "bugs": { 25 | "url": "https://github.com/isaacs/inflight/issues" 26 | }, 27 | "homepage": "https://github.com/isaacs/inflight", 28 | "license": "ISC" 29 | } 30 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/pseudomap/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "pseudomap", 3 | "version": "1.0.2", 4 | "description": "A thing that is a lot like ES6 `Map`, but without iterators, for use in environments where `for..of` syntax and `Map` are not available.", 5 | "main": "map.js", 6 | "directories": { 7 | "test": "test" 8 | }, 9 | "devDependencies": { 10 | "tap": "^2.3.1" 11 | }, 12 | "scripts": { 13 | "test": "tap test/*.js" 14 | }, 15 | "repository": { 16 | "type": "git", 17 | "url": "git+https://github.com/isaacs/pseudomap.git" 18 | }, 19 | "author": "Isaac Z. Schlueter (http://blog.izs.me/)", 20 | "license": "ISC", 21 | "bugs": { 22 | "url": "https://github.com/isaacs/pseudomap/issues" 23 | }, 24 | "homepage": "https://github.com/isaacs/pseudomap#readme" 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/matchers/be_empty_matcher.go: -------------------------------------------------------------------------------- 1 | package matchers 2 | 3 | import ( 4 | "fmt" 5 | 6 | "github.com/onsi/gomega/format" 7 | ) 8 | 9 | type BeEmptyMatcher struct { 10 | } 11 | 12 | func (matcher *BeEmptyMatcher) Match(actual interface{}) (success bool, err error) { 13 | length, ok := lengthOf(actual) 14 | if !ok { 15 | return false, fmt.Errorf("BeEmpty matcher expects a string/array/map/channel/slice. Got:\n%s", format.Object(actual, 1)) 16 | } 17 | 18 | return length == 0, nil 19 | } 20 | 21 | func (matcher *BeEmptyMatcher) FailureMessage(actual interface{}) (message string) { 22 | return format.Message(actual, "to be empty") 23 | } 24 | 25 | func (matcher *BeEmptyMatcher) NegatedFailureMessage(actual interface{}) (message string) { 26 | return format.Message(actual, "not to be empty") 27 | } 28 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_darwin_386.s: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for 386, Darwin 11 | // 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-28 17 | JMP syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-40 20 | JMP syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-52 23 | JMP syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28 26 | JMP syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 29 | JMP syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_freebsd_386.s: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for 386, FreeBSD 11 | // 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-28 17 | JMP syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-40 20 | JMP syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-52 23 | JMP syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28 26 | JMP syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 29 | JMP syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_netbsd_386.s: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for 386, NetBSD 11 | // 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-28 17 | JMP syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-40 20 | JMP syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-52 23 | JMP syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28 26 | JMP syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 29 | JMP syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_openbsd_386.s: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for 386, OpenBSD 11 | // 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-28 17 | JMP syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-40 20 | JMP syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-52 23 | JMP syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28 26 | JMP syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 29 | JMP syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/core-util-is/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "core-util-is", 3 | "version": "1.0.2", 4 | "description": "The `util.is*` functions introduced in Node v0.12.", 5 | "main": "lib/util.js", 6 | "repository": { 7 | "type": "git", 8 | "url": "git://github.com/isaacs/core-util-is" 9 | }, 10 | "keywords": [ 11 | "util", 12 | "isBuffer", 13 | "isArray", 14 | "isNumber", 15 | "isString", 16 | "isRegExp", 17 | "isThis", 18 | "isThat", 19 | "polyfill" 20 | ], 21 | "author": "Isaac Z. Schlueter (http://blog.izs.me/)", 22 | "license": "MIT", 23 | "bugs": { 24 | "url": "https://github.com/isaacs/core-util-is/issues" 25 | }, 26 | "scripts": { 27 | "test": "tap test.js" 28 | }, 29 | "devDependencies": { 30 | "tap": "^2.3.0" 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/tar/LICENSE: -------------------------------------------------------------------------------- 1 | The ISC License 2 | Copyright (c) Isaac Z. Schlueter and Contributors 3 | Permission to use, copy, modify, and/or distribute this software for any 4 | purpose with or without fee is hereby granted, provided that the above 5 | copyright notice and this permission notice appear in all copies. 6 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 7 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 8 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 9 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 10 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 11 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR 12 | IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 13 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/concurrent/go_below_19.go: -------------------------------------------------------------------------------- 1 | //+build !go1.9 2 | 3 | package concurrent 4 | 5 | import "sync" 6 | 7 | // Map implements a thread safe map for go version below 1.9 using mutex 8 | type Map struct { 9 | lock sync.RWMutex 10 | data map[interface{}]interface{} 11 | } 12 | 13 | // NewMap creates a thread safe map 14 | func NewMap() *Map { 15 | return &Map{ 16 | data: make(map[interface{}]interface{}, 32), 17 | } 18 | } 19 | 20 | // Load is same as sync.Map Load 21 | func (m *Map) Load(key interface{}) (elem interface{}, found bool) { 22 | m.lock.RLock() 23 | elem, found = m.data[key] 24 | m.lock.RUnlock() 25 | return 26 | } 27 | 28 | // Load is same as sync.Map Store 29 | func (m *Map) Store(key interface{}, elem interface{}) { 30 | m.lock.Lock() 31 | m.data[key] = elem 32 | m.lock.Unlock() 33 | } 34 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_darwin_amd64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for AMD64, Darwin 11 | // 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-56 17 | JMP syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 20 | JMP syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-104 23 | JMP syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 26 | JMP syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 29 | JMP syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_freebsd_amd64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for AMD64, FreeBSD 11 | // 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-56 17 | JMP syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 20 | JMP syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-104 23 | JMP syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 26 | JMP syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 29 | JMP syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_netbsd_amd64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for AMD64, NetBSD 11 | // 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-56 17 | JMP syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 20 | JMP syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-104 23 | JMP syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 26 | JMP syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 29 | JMP syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_openbsd_amd64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for AMD64, OpenBSD 11 | // 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-56 17 | JMP syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 20 | JMP syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-104 23 | JMP syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 26 | JMP syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 29 | JMP syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/duplexer2/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "duplexer2", 3 | "version": "0.0.2", 4 | "description": "Like duplexer (http://npm.im/duplexer) but using streams2", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "mocha -R tap" 8 | }, 9 | "repository": { 10 | "type": "git", 11 | "url": "git://github.com/deoxxa/duplexer2.git" 12 | }, 13 | "keywords": [ 14 | "duplex", 15 | "stream", 16 | "join", 17 | "combine" 18 | ], 19 | "author": "Conrad Pankoff (http://www.fknsrs.biz/)", 20 | "license": "BSD", 21 | "bugs": { 22 | "url": "https://github.com/deoxxa/duplexer2/issues" 23 | }, 24 | "devDependencies": { 25 | "chai": "~1.7.2", 26 | "mocha": "~1.12.1" 27 | }, 28 | "dependencies": { 29 | "readable-stream": "~1.1.9" 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/inflight/LICENSE: -------------------------------------------------------------------------------- 1 | The ISC License 2 | 3 | Copyright (c) Isaac Z. Schlueter 4 | 5 | Permission to use, copy, modify, and/or distribute this software for any 6 | purpose with or without fee is hereby granted, provided that the above 7 | copyright notice and this permission notice appear in all copies. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR 15 | IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/minimatch/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Isaac Z. Schlueter (http://blog.izs.me)", 3 | "name": "minimatch", 4 | "description": "a glob matcher in javascript", 5 | "version": "3.0.4", 6 | "repository": { 7 | "type": "git", 8 | "url": "git://github.com/isaacs/minimatch.git" 9 | }, 10 | "main": "minimatch.js", 11 | "scripts": { 12 | "test": "tap test/*.js --cov", 13 | "preversion": "npm test", 14 | "postversion": "npm publish", 15 | "postpublish": "git push origin --all; git push origin --tags" 16 | }, 17 | "engines": { 18 | "node": "*" 19 | }, 20 | "dependencies": { 21 | "brace-expansion": "^1.1.7" 22 | }, 23 | "devDependencies": { 24 | "tap": "^10.3.2" 25 | }, 26 | "license": "ISC", 27 | "files": [ 28 | "minimatch.js" 29 | ] 30 | } 31 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/uid-number/LICENSE: -------------------------------------------------------------------------------- 1 | The ISC License 2 | 3 | Copyright (c) Isaac Z. Schlueter 4 | 5 | Permission to use, copy, modify, and/or distribute this software for any 6 | purpose with or without fee is hereby granted, provided that the above 7 | copyright notice and this permission notice appear in all copies. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR 15 | IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 | -------------------------------------------------------------------------------- /vendor/github.com/lestrrat-go/pdebug/doc.go: -------------------------------------------------------------------------------- 1 | // Package pdebug provides tools to produce debug logs the way the author 2 | // (Daisuke Maki a.k.a. lestrrat) likes. All of the functions are no-ops 3 | // unless you compile with the `-tags debug` option. 4 | // 5 | // When you compile your program with `-tags debug`, no trace is displayed, 6 | // but the code enclosed within `if pdebug.Enabled { ... }` is compiled in. 7 | // To show the debug trace, set the PDEBUG_TRACE environment variable to 8 | // true (or 1, or whatever `strconv.ParseBool` parses to true) 9 | // 10 | // If you want to show the debug trace regardless of an environment variable, 11 | // for example, perhaps while you are debugging or running tests, use the 12 | // `-tags debug0` build tag instead. This will enable the debug trace 13 | // forcefully 14 | package pdebug 15 | 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_dragonfly_amd64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for AMD64, DragonFly 11 | // 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-56 17 | JMP syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 20 | JMP syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-104 23 | JMP syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 26 | JMP syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 29 | JMP syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/fs-extra/docs/ensureFile.md: -------------------------------------------------------------------------------- 1 | # ensureFile(file, [callback]) 2 | 3 | Ensures that the file exists. If the file that is requested to be created is in directories that do not exist, these directories are created. If the file already exists, it is **NOT MODIFIED**. 4 | 5 | **Alias:** `createFile()` 6 | 7 | - `file` `` 8 | - `callback` `` 9 | 10 | ## Example: 11 | 12 | ```js 13 | const fs = require('fs-extra') 14 | 15 | const file = '/tmp/this/path/does/not/exist/file.txt' 16 | fs.ensureFile(file, err => { 17 | console.log(err) // => null 18 | // file has now been created, including the directory it is to be placed in 19 | }) 20 | 21 | // With Promises: 22 | fs.ensureFile(file) 23 | .then(() => { 24 | console.log('success!') 25 | }) 26 | .catch(err => { 27 | console.error(err) 28 | }) 29 | ``` 30 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/inherits/LICENSE: -------------------------------------------------------------------------------- 1 | The ISC License 2 | 3 | Copyright (c) Isaac Z. Schlueter 4 | 5 | Permission to use, copy, modify, and/or distribute this software for any 6 | purpose with or without fee is hereby granted, provided that the above 7 | copyright notice and this permission notice appear in all copies. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 10 | REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND 11 | FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 12 | INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 13 | LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 14 | OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 15 | PERFORMANCE OF THIS SOFTWARE. 16 | 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_darwin_arm.s: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | // +build arm,darwin 7 | 8 | #include "textflag.h" 9 | 10 | // 11 | // System call support for ARM, Darwin 12 | // 13 | 14 | // Just jump to package syscall's implementation for all these functions. 15 | // The runtime may know about them. 16 | 17 | TEXT ·Syscall(SB),NOSPLIT,$0-28 18 | B syscall·Syscall(SB) 19 | 20 | TEXT ·Syscall6(SB),NOSPLIT,$0-40 21 | B syscall·Syscall6(SB) 22 | 23 | TEXT ·Syscall9(SB),NOSPLIT,$0-52 24 | B syscall·Syscall9(SB) 25 | 26 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28 27 | B syscall·RawSyscall(SB) 28 | 29 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 30 | B syscall·RawSyscall6(SB) 31 | -------------------------------------------------------------------------------- /vendor/github.com/gin-gonic/gin/deprecated.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 Manu Martinez-Almeida. All rights reserved. 2 | // Use of this source code is governed by a MIT style 3 | // license that can be found in the LICENSE file. 4 | 5 | package gin 6 | 7 | import ( 8 | "log" 9 | 10 | "github.com/gin-gonic/gin/binding" 11 | ) 12 | 13 | // BindWith binds the passed struct pointer using the specified binding engine. 14 | // See the binding package. 15 | func (c *Context) BindWith(obj interface{}, b binding.Binding) error { 16 | log.Println(`BindWith(\"interface{}, binding.Binding\") error is going to 17 | be deprecated, please check issue #662 and either use MustBindWith() if you 18 | want HTTP 400 to be automatically returned if any error occur, or use 19 | ShouldBindWith() if you need to manage the error.`) 20 | return c.MustBindWith(obj, b) 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/lestrrat-go/jwx/jws/option.go: -------------------------------------------------------------------------------- 1 | package jws 2 | 3 | import ( 4 | "github.com/lestrrat-go/jwx/internal/option" 5 | "github.com/lestrrat-go/jwx/jws/sign" 6 | ) 7 | 8 | type Option = option.Interface 9 | 10 | const ( 11 | optkeyPayloadSigner = `payload-signer` 12 | optkeyHeaders = `headers` 13 | optkeyPrettyJSONFormat = `format-json-pretty` 14 | ) 15 | 16 | func WithPretty(b bool) Option { 17 | return option.New(optkeyPrettyJSONFormat, b) 18 | } 19 | 20 | func WithSigner(signer sign.Signer, key interface{}, public, protected Headers) Option { 21 | return option.New(optkeyPayloadSigner, &payloadSigner{ 22 | signer: signer, 23 | key: key, 24 | protected: protected, 25 | public: public, 26 | }) 27 | } 28 | 29 | func WithHeaders(h Headers) Option { 30 | return option.New(optkeyHeaders, h) 31 | } 32 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/bluetooth_linux.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Bluetooth sockets and messages 6 | 7 | package unix 8 | 9 | // Bluetooth Protocols 10 | const ( 11 | BTPROTO_L2CAP = 0 12 | BTPROTO_HCI = 1 13 | BTPROTO_SCO = 2 14 | BTPROTO_RFCOMM = 3 15 | BTPROTO_BNEP = 4 16 | BTPROTO_CMTP = 5 17 | BTPROTO_HIDP = 6 18 | BTPROTO_AVDTP = 7 19 | ) 20 | 21 | const ( 22 | HCI_CHANNEL_RAW = 0 23 | HCI_CHANNEL_USER = 1 24 | HCI_CHANNEL_MONITOR = 2 25 | HCI_CHANNEL_CONTROL = 3 26 | ) 27 | 28 | // Socketoption Level 29 | const ( 30 | SOL_BLUETOOTH = 0x112 31 | SOL_HCI = 0x0 32 | SOL_L2CAP = 0x6 33 | SOL_RFCOMM = 0x12 34 | SOL_SCO = 0x11 35 | ) 36 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/fs-extra/docs/outputFile-sync.md: -------------------------------------------------------------------------------- 1 | # outputFileSync(file, data, [options]) 2 | 3 | Almost the same as `writeFileSync` (i.e. it [overwrites](http://pages.citebite.com/v2o5n8l2f5reb)), except that if the parent directory does not exist, it's created. `file` must be a file path (a buffer or a file descriptor is not allowed). `options` are what you'd pass to [`fs.writeFileSync()`](https://nodejs.org/api/fs.html#fs_fs_writefilesync_file_data_options). 4 | 5 | - `file` `` 6 | - `data` ` | | ` 7 | - `options` ` | ` 8 | 9 | ## Example: 10 | 11 | ```js 12 | const fs = require('fs-extra') 13 | 14 | const file = '/tmp/this/path/does/not/exist/file.txt' 15 | fs.outputFileSync(file, 'hello!') 16 | 17 | const data = fs.readFileSync(file, 'utf8') 18 | console.log(data) // => hello! 19 | ``` 20 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/fstream/LICENSE: -------------------------------------------------------------------------------- 1 | The ISC License 2 | 3 | Copyright (c) Isaac Z. Schlueter and Contributors 4 | 5 | Permission to use, copy, modify, and/or distribute this software for any 6 | purpose with or without fee is hereby granted, provided that the above 7 | copyright notice and this permission notice appear in all copies. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR 15 | IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/glob/LICENSE: -------------------------------------------------------------------------------- 1 | The ISC License 2 | 3 | Copyright (c) Isaac Z. Schlueter and Contributors 4 | 5 | Permission to use, copy, modify, and/or distribute this software for any 6 | purpose with or without fee is hereby granted, provided that the above 7 | copyright notice and this permission notice appear in all copies. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR 15 | IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/isexe/LICENSE: -------------------------------------------------------------------------------- 1 | The ISC License 2 | 3 | Copyright (c) Isaac Z. Schlueter and Contributors 4 | 5 | Permission to use, copy, modify, and/or distribute this software for any 6 | purpose with or without fee is hereby granted, provided that the above 7 | copyright notice and this permission notice appear in all copies. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR 15 | IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/once/LICENSE: -------------------------------------------------------------------------------- 1 | The ISC License 2 | 3 | Copyright (c) Isaac Z. Schlueter and Contributors 4 | 5 | Permission to use, copy, modify, and/or distribute this software for any 6 | purpose with or without fee is hereby granted, provided that the above 7 | copyright notice and this permission notice appear in all copies. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR 15 | IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 | -------------------------------------------------------------------------------- /pkg/http/web/node_modules/rimraf/LICENSE: -------------------------------------------------------------------------------- 1 | The ISC License 2 | 3 | Copyright (c) Isaac Z. Schlueter and Contributors 4 | 5 | Permission to use, copy, modify, and/or distribute this software for any 6 | purpose with or without fee is hereby granted, provided that the above 7 | copyright notice and this permission notice appear in all copies. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR 15 | IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 | --------------------------------------------------------------------------------