├── vendor
├── gopkg.in
│ ├── mgo.v2
│ │ ├── txn
│ │ │ ├── output.txt
│ │ │ └── tarjan_test.go
│ │ ├── harness
│ │ │ ├── daemons
│ │ │ │ ├── cfg1
│ │ │ │ │ ├── db
│ │ │ │ │ │ ├── .empty
│ │ │ │ │ │ └── mongod.lock
│ │ │ │ │ ├── log
│ │ │ │ │ │ └── run
│ │ │ │ │ └── run
│ │ │ │ ├── cfg2
│ │ │ │ │ ├── db
│ │ │ │ │ │ └── .empty
│ │ │ │ │ ├── log
│ │ │ │ │ │ └── run
│ │ │ │ │ └── run
│ │ │ │ ├── cfg3
│ │ │ │ │ ├── db
│ │ │ │ │ │ └── .empty
│ │ │ │ │ ├── log
│ │ │ │ │ │ └── run
│ │ │ │ │ └── run
│ │ │ │ ├── db1
│ │ │ │ │ ├── db
│ │ │ │ │ │ └── .empty
│ │ │ │ │ ├── log
│ │ │ │ │ │ └── run
│ │ │ │ │ └── run
│ │ │ │ ├── db2
│ │ │ │ │ ├── db
│ │ │ │ │ │ └── .empty
│ │ │ │ │ ├── log
│ │ │ │ │ │ └── run
│ │ │ │ │ └── run
│ │ │ │ ├── db3
│ │ │ │ │ ├── db
│ │ │ │ │ │ └── .empty
│ │ │ │ │ ├── log
│ │ │ │ │ │ └── run
│ │ │ │ │ └── run
│ │ │ │ ├── rs1a
│ │ │ │ │ ├── db
│ │ │ │ │ │ └── .empty
│ │ │ │ │ ├── log
│ │ │ │ │ │ └── run
│ │ │ │ │ └── run
│ │ │ │ ├── rs1b
│ │ │ │ │ ├── db
│ │ │ │ │ │ └── .empty
│ │ │ │ │ ├── log
│ │ │ │ │ │ └── run
│ │ │ │ │ └── run
│ │ │ │ ├── rs1c
│ │ │ │ │ ├── db
│ │ │ │ │ │ └── .empty
│ │ │ │ │ ├── log
│ │ │ │ │ │ └── run
│ │ │ │ │ └── run
│ │ │ │ ├── rs2a
│ │ │ │ │ ├── db
│ │ │ │ │ │ └── .empty
│ │ │ │ │ ├── log
│ │ │ │ │ │ └── run
│ │ │ │ │ └── run
│ │ │ │ ├── rs2b
│ │ │ │ │ ├── db
│ │ │ │ │ │ └── .empty
│ │ │ │ │ ├── log
│ │ │ │ │ │ └── run
│ │ │ │ │ └── run
│ │ │ │ ├── rs2c
│ │ │ │ │ ├── db
│ │ │ │ │ │ └── .empty
│ │ │ │ │ ├── log
│ │ │ │ │ │ └── run
│ │ │ │ │ └── run
│ │ │ │ ├── rs3a
│ │ │ │ │ ├── db
│ │ │ │ │ │ └── .empty
│ │ │ │ │ ├── log
│ │ │ │ │ │ └── run
│ │ │ │ │ └── run
│ │ │ │ ├── rs3b
│ │ │ │ │ ├── db
│ │ │ │ │ │ └── .empty
│ │ │ │ │ ├── log
│ │ │ │ │ │ └── run
│ │ │ │ │ └── run
│ │ │ │ ├── rs3c
│ │ │ │ │ ├── db
│ │ │ │ │ │ └── .empty
│ │ │ │ │ ├── log
│ │ │ │ │ │ └── run
│ │ │ │ │ └── run
│ │ │ │ ├── rs4a
│ │ │ │ │ ├── db
│ │ │ │ │ │ └── .empty
│ │ │ │ │ ├── log
│ │ │ │ │ │ └── run
│ │ │ │ │ └── run
│ │ │ │ ├── s1
│ │ │ │ │ ├── log
│ │ │ │ │ │ └── run
│ │ │ │ │ └── run
│ │ │ │ ├── s2
│ │ │ │ │ ├── log
│ │ │ │ │ │ └── run
│ │ │ │ │ └── run
│ │ │ │ └── s3
│ │ │ │ │ ├── log
│ │ │ │ │ └── run
│ │ │ │ │ └── run
│ │ │ └── certs
│ │ │ │ └── client.req
│ │ ├── raceon.go
│ │ ├── raceoff.go
│ │ ├── Makefile
│ │ ├── internal
│ │ │ ├── json
│ │ │ │ ├── testdata
│ │ │ │ │ └── code.json.gz
│ │ │ │ └── tags_test.go
│ │ │ └── sasl
│ │ │ │ └── sasl_windows.h
│ │ ├── README.md
│ │ ├── dbtest
│ │ │ └── export_test.go
│ │ ├── syscall_windows_test.go
│ │ ├── saslstub.go
│ │ ├── saslimpl.go
│ │ ├── syscall_test.go
│ │ ├── bson
│ │ │ └── specdata
│ │ │ │ └── update.sh
│ │ └── export_test.go
│ └── yaml.v2
│ │ ├── .travis.yml
│ │ ├── suite_test.go
│ │ └── example_embedded_test.go
├── golang.org
│ └── x
│ │ ├── sys
│ │ ├── unix
│ │ │ ├── .gitignore
│ │ │ ├── endian_big.go
│ │ │ ├── export_test.go
│ │ │ ├── endian_little.go
│ │ │ ├── constants.go
│ │ │ ├── syscall_no_getwd.go
│ │ │ ├── zsysnum_solaris_amd64.go
│ │ │ ├── env_unset.go
│ │ │ ├── syscall_linux_amd64_gc.go
│ │ │ ├── pagesize_unix.go
│ │ │ ├── flock_linux_32bit.go
│ │ │ ├── asm_solaris_amd64.s
│ │ │ ├── gccgo_linux_amd64.go
│ │ │ ├── race0.go
│ │ │ ├── env_unix.go
│ │ │ ├── syscall_unix_gc.go
│ │ │ ├── asm_linux_arm64.s
│ │ │ ├── str.go
│ │ │ ├── file_unix.go
│ │ │ ├── race.go
│ │ │ ├── asm_linux_s390x.s
│ │ │ ├── asm_linux_ppc64x.s
│ │ │ ├── asm_linux_arm.s
│ │ │ ├── asm_linux_mips64x.s
│ │ │ ├── flock.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_linux_amd64.s
│ │ │ ├── asm_netbsd_amd64.s
│ │ │ ├── asm_openbsd_amd64.s
│ │ │ ├── asm_dragonfly_amd64.s
│ │ │ ├── syscall_solaris_amd64.go
│ │ │ ├── asm_darwin_arm.s
│ │ │ ├── bluetooth_linux.go
│ │ │ ├── asm_darwin_arm64.s
│ │ │ ├── asm_linux_mipsx.s
│ │ │ ├── dev_darwin.go
│ │ │ ├── syscall_solaris_test.go
│ │ │ ├── syscall_openbsd_amd64.go
│ │ │ ├── syscall_netbsd_amd64.go
│ │ │ ├── syscall_netbsd_386.go
│ │ │ ├── syscall_netbsd_arm.go
│ │ │ ├── syscall_openbsd_386.go
│ │ │ ├── syscall_openbsd_arm.go
│ │ │ ├── mksysnum_darwin.pl
│ │ │ ├── asm_linux_386.s
│ │ │ ├── mmap_unix_test.go
│ │ │ ├── dev_netbsd.go
│ │ │ ├── dev_openbsd.go
│ │ │ ├── openbsd_pledge.go
│ │ │ ├── dev_freebsd.go
│ │ │ └── dev_dragonfly.go
│ │ ├── codereview.cfg
│ │ ├── .gitignore
│ │ ├── AUTHORS
│ │ ├── CONTRIBUTORS
│ │ ├── plan9
│ │ │ ├── asm.s
│ │ │ ├── env_unset.go
│ │ │ ├── pwd_go15_plan9.go
│ │ │ ├── pwd_plan9.go
│ │ │ ├── race0.go
│ │ │ ├── mksysnum_plan9.sh
│ │ │ ├── str.go
│ │ │ ├── env_plan9.go
│ │ │ ├── race.go
│ │ │ ├── asm_plan9_386.s
│ │ │ ├── asm_plan9_amd64.s
│ │ │ └── syscall_test.go
│ │ ├── windows
│ │ │ ├── svc
│ │ │ │ ├── go12.go
│ │ │ │ ├── example
│ │ │ │ │ └── beep.go
│ │ │ │ ├── go12.c
│ │ │ │ └── go13.go
│ │ │ ├── registry
│ │ │ │ ├── mksyscall.go
│ │ │ │ └── export_test.go
│ │ │ ├── mksyscall.go
│ │ │ ├── env_unset.go
│ │ │ ├── asm_windows_386.s
│ │ │ ├── asm_windows_amd64.s
│ │ │ ├── race0.go
│ │ │ ├── types_windows_386.go
│ │ │ ├── types_windows_amd64.go
│ │ │ ├── str.go
│ │ │ ├── env_windows.go
│ │ │ ├── race.go
│ │ │ ├── memory_windows.go
│ │ │ └── eventlog.go
│ │ ├── .gitattributes
│ │ ├── README.md
│ │ └── CONTRIBUTING.md
│ │ └── crypto
│ │ ├── codereview.cfg
│ │ ├── .gitignore
│ │ ├── ed25519
│ │ └── testdata
│ │ │ └── sign.input.gz
│ │ ├── sha3
│ │ ├── testdata
│ │ │ └── keccakKats.json.deflate
│ │ ├── keccakf_amd64.go
│ │ ├── xor.go
│ │ ├── register.go
│ │ └── xor_generic.go
│ │ ├── AUTHORS
│ │ ├── CONTRIBUTORS
│ │ ├── ssh
│ │ ├── test
│ │ │ └── doc.go
│ │ ├── terminal
│ │ │ ├── util_linux.go
│ │ │ └── util_bsd.go
│ │ ├── testdata
│ │ │ └── doc.go
│ │ ├── tcpip_test.go
│ │ ├── doc.go
│ │ └── agent
│ │ │ └── example_test.go
│ │ ├── curve25519
│ │ ├── const_amd64.h
│ │ ├── const_amd64.s
│ │ ├── curve25519_test.go
│ │ └── doc.go
│ │ ├── blake2b
│ │ ├── blake2b_ref.go
│ │ ├── blake2b_amd64.go
│ │ └── register.go
│ │ ├── .gitattributes
│ │ ├── blake2s
│ │ ├── register.go
│ │ ├── blake2s_ref.go
│ │ ├── blake2s_386.go
│ │ └── blake2s_amd64.go
│ │ ├── md4
│ │ └── example_test.go
│ │ ├── chacha20poly1305
│ │ ├── chacha20poly1305_noasm.go
│ │ └── internal
│ │ │ └── chacha20
│ │ │ └── chacha_test.go
│ │ ├── pkcs12
│ │ ├── internal
│ │ │ └── rc2
│ │ │ │ └── bench_test.go
│ │ └── errors.go
│ │ ├── scrypt
│ │ └── example_test.go
│ │ ├── poly1305
│ │ ├── sum_amd64.go
│ │ └── sum_arm.go
│ │ ├── README.md
│ │ ├── salsa20
│ │ └── salsa
│ │ │ └── salsa20_amd64.go
│ │ ├── bcrypt
│ │ └── base64.go
│ │ ├── acme
│ │ └── autocert
│ │ │ └── example_test.go
│ │ └── openpgp
│ │ └── packet
│ │ └── compressed_test.go
└── github.com
│ ├── Sirupsen
│ └── logrus
│ │ ├── .gitignore
│ │ ├── terminal_bsd.go
│ │ ├── appveyor.yml
│ │ ├── .travis.yml
│ │ ├── terminal_linux.go
│ │ ├── hooks
│ │ ├── syslog
│ │ │ ├── syslog_test.go
│ │ │ └── README.md
│ │ └── test
│ │ │ └── test_test.go
│ │ └── doc.go
│ ├── joho
│ └── godotenv
│ │ ├── .gitignore
│ │ ├── fixtures
│ │ ├── invalid1.env
│ │ ├── exported.env
│ │ ├── equals.env
│ │ ├── plain.env
│ │ └── quoted.env
│ │ ├── .travis.yml
│ │ ├── autoload
│ │ └── autoload.go
│ │ └── LICENCE
│ ├── labstack
│ ├── gommon
│ │ ├── .gitignore
│ │ ├── gommon.go
│ │ ├── email
│ │ │ └── email_test.go
│ │ ├── log
│ │ │ ├── README.md
│ │ │ ├── white.go
│ │ │ └── color.go
│ │ ├── glide.yaml
│ │ ├── random
│ │ │ ├── random_test.go
│ │ │ └── random.go
│ │ ├── bytes
│ │ │ └── README.md
│ │ ├── .travis.yml
│ │ ├── README.md
│ │ ├── glide.lock
│ │ └── LICENSE
│ └── echo
│ │ ├── .gitignore
│ │ ├── _fixture
│ │ ├── favicon.ico
│ │ ├── images
│ │ │ └── walle.png
│ │ ├── index.html
│ │ └── folder
│ │ │ └── index.html
│ │ ├── util_go18.go
│ │ ├── util_go17.go
│ │ ├── .travis.yml
│ │ ├── Makefile
│ │ ├── middleware
│ │ ├── middleware.go
│ │ ├── recover_test.go
│ │ ├── request_id_test.go
│ │ └── body_dump_test.go
│ │ ├── echo_go1.8_test.go
│ │ ├── response_test.go
│ │ ├── .editorconfig
│ │ ├── echo_go1.8.go
│ │ ├── .github
│ │ └── ISSUE_TEMPLATE.md
│ │ ├── .gitattributes
│ │ ├── log.go
│ │ └── LICENSE
│ ├── jinzhu
│ ├── gorm
│ │ ├── .gitignore
│ │ ├── dialects
│ │ │ ├── mysql
│ │ │ │ └── mysql.go
│ │ │ ├── sqlite
│ │ │ │ └── sqlite.go
│ │ │ └── postgres
│ │ │ │ └── postgres.go
│ │ ├── test_all.sh
│ │ ├── .codeclimate.yml
│ │ ├── model.go
│ │ ├── interface.go
│ │ ├── search_test.go
│ │ └── utils_test.go
│ └── inflection
│ │ └── LICENSE
│ ├── BurntSushi
│ └── toml
│ │ ├── _examples
│ │ ├── readme2.toml
│ │ ├── implicit.toml
│ │ ├── invalid-apples.toml
│ │ ├── readme1.toml
│ │ ├── example.toml
│ │ ├── invalid.toml
│ │ └── hard.toml
│ │ ├── session.vim
│ │ ├── .gitignore
│ │ ├── COMPATIBLE
│ │ ├── .travis.yml
│ │ ├── Makefile
│ │ ├── COPYING
│ │ ├── cmd
│ │ ├── tomlv
│ │ │ ├── COPYING
│ │ │ └── README.md
│ │ ├── toml-test-decoder
│ │ │ ├── COPYING
│ │ │ └── README.md
│ │ └── toml-test-encoder
│ │ │ ├── COPYING
│ │ │ └── README.md
│ │ ├── encoding_types_1.1.go
│ │ └── encoding_types.go
│ ├── fatih
│ ├── camelcase
│ │ ├── .travis.yml
│ │ └── LICENSE.md
│ └── structs
│ │ ├── .travis.yml
│ │ ├── .gitignore
│ │ ├── tags.go
│ │ ├── tags_test.go
│ │ └── LICENSE
│ ├── koding
│ └── multiconfig
│ │ ├── .travis.yml
│ │ ├── doc.go
│ │ ├── .gitignore
│ │ ├── testdata
│ │ ├── config.toml
│ │ ├── config.yaml
│ │ └── config.json
│ │ ├── tag_test.go
│ │ ├── multiloader.go
│ │ └── multivalidator.go
│ ├── mattn
│ ├── go-isatty
│ │ ├── doc.go
│ │ ├── .travis.yml
│ │ ├── isatty_others.go
│ │ ├── isatty_others_test.go
│ │ ├── example_test.go
│ │ ├── isatty_solaris.go
│ │ ├── isatty_linux.go
│ │ ├── isatty_appengine.go
│ │ ├── isatty_bsd.go
│ │ ├── isatty_linux_ppc64x.go
│ │ ├── isatty_windows_test.go
│ │ └── LICENSE
│ └── go-colorable
│ │ ├── .travis.yml
│ │ ├── _example
│ │ ├── title
│ │ │ └── main.go
│ │ ├── escape-seq
│ │ │ └── main.go
│ │ └── logrus
│ │ │ └── main.go
│ │ ├── colorable_appengine.go
│ │ └── colorable_others.go
│ ├── go-sql-driver
│ └── mysql
│ │ ├── .gitignore
│ │ ├── .travis.yml
│ │ ├── .github
│ │ ├── PULL_REQUEST_TEMPLATE.md
│ │ └── ISSUE_TEMPLATE.md
│ │ ├── appengine.go
│ │ ├── result.go
│ │ └── transaction.go
│ └── valyala
│ ├── fasttemplate
│ ├── unsafe_gae.go
│ └── unsafe.go
│ └── bytebufferpool
│ ├── doc.go
│ ├── .travis.yml
│ ├── bytebuffer_example_test.go
│ ├── bytebuffer_timing_test.go
│ └── README.md
├── main.go
├── api.go
├── .env
├── .gitignore
├── router.go
├── db.go
├── LICENSE
└── config.go
/vendor/gopkg.in/mgo.v2/txn/output.txt:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/.gitignore:
--------------------------------------------------------------------------------
1 | _obj/
2 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/harness/daemons/cfg1/db/.empty:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/harness/daemons/cfg2/db/.empty:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/harness/daemons/cfg3/db/.empty:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/harness/daemons/db1/db/.empty:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/harness/daemons/db2/db/.empty:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/harness/daemons/db3/db/.empty:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/harness/daemons/rs1a/db/.empty:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/harness/daemons/rs1b/db/.empty:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/harness/daemons/rs1c/db/.empty:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/harness/daemons/rs2a/db/.empty:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/harness/daemons/rs2b/db/.empty:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/harness/daemons/rs2c/db/.empty:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/harness/daemons/rs3a/db/.empty:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/harness/daemons/rs3b/db/.empty:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/harness/daemons/rs3c/db/.empty:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/harness/daemons/rs4a/db/.empty:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/vendor/github.com/Sirupsen/logrus/.gitignore:
--------------------------------------------------------------------------------
1 | logrus
2 |
--------------------------------------------------------------------------------
/vendor/github.com/joho/godotenv/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 |
--------------------------------------------------------------------------------
/vendor/github.com/labstack/gommon/.gitignore:
--------------------------------------------------------------------------------
1 | vendor
2 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/harness/daemons/cfg1/db/mongod.lock:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/vendor/github.com/labstack/gommon/gommon.go:
--------------------------------------------------------------------------------
1 | package gommon
2 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/codereview.cfg:
--------------------------------------------------------------------------------
1 | issuerepo: golang/go
2 |
--------------------------------------------------------------------------------
/vendor/github.com/jinzhu/gorm/.gitignore:
--------------------------------------------------------------------------------
1 | documents
2 | _book
3 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/crypto/codereview.cfg:
--------------------------------------------------------------------------------
1 | issuerepo: golang/go
2 |
--------------------------------------------------------------------------------
/vendor/github.com/labstack/gommon/email/email_test.go:
--------------------------------------------------------------------------------
1 | package email
2 |
--------------------------------------------------------------------------------
/vendor/github.com/BurntSushi/toml/_examples/readme2.toml:
--------------------------------------------------------------------------------
1 | some_key_NAME = "wat"
2 |
--------------------------------------------------------------------------------
/vendor/github.com/fatih/camelcase/.travis.yml:
--------------------------------------------------------------------------------
1 | language: go
2 | go: 1.x
3 |
4 |
--------------------------------------------------------------------------------
/vendor/github.com/joho/godotenv/fixtures/invalid1.env:
--------------------------------------------------------------------------------
1 | INVALID LINE
2 | foo=bar
3 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/harness/daemons/s1/log/run:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | exec cat - > log.txt
4 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/harness/daemons/s2/log/run:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | exec cat - > log.txt
4 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/harness/daemons/s3/log/run:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | exec cat - > log.txt
4 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/harness/daemons/cfg1/log/run:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | exec cat - > log.txt
4 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/harness/daemons/cfg2/log/run:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | exec cat - > log.txt
4 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/harness/daemons/cfg3/log/run:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | exec cat - > log.txt
4 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/harness/daemons/db1/log/run:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | exec cat - > log.txt
4 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/harness/daemons/db2/log/run:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | exec cat - > log.txt
4 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/harness/daemons/db3/log/run:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | exec cat - > log.txt
4 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/harness/daemons/rs1a/log/run:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | exec cat - > log.txt
4 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/harness/daemons/rs1b/log/run:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | exec cat - > log.txt
4 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/harness/daemons/rs1c/log/run:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | exec cat - > log.txt
4 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/harness/daemons/rs2a/log/run:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | exec cat - > log.txt
4 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/harness/daemons/rs2b/log/run:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | exec cat - > log.txt
4 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/harness/daemons/rs2c/log/run:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | exec cat - > log.txt
4 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/harness/daemons/rs3a/log/run:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | exec cat - > log.txt
4 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/harness/daemons/rs3b/log/run:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | exec cat - > log.txt
4 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/harness/daemons/rs3c/log/run:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | exec cat - > log.txt
4 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/harness/daemons/rs4a/log/run:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | exec cat - > log.txt
4 |
--------------------------------------------------------------------------------
/vendor/github.com/joho/godotenv/fixtures/exported.env:
--------------------------------------------------------------------------------
1 | export OPTION_A=2
2 | export OPTION_B='\n'
3 |
--------------------------------------------------------------------------------
/main.go:
--------------------------------------------------------------------------------
1 | package main
2 |
3 | func main() {
4 | initConfig()
5 | initDB()
6 | initRouter()
7 | }
8 |
9 |
--------------------------------------------------------------------------------
/vendor/github.com/BurntSushi/toml/session.vim:
--------------------------------------------------------------------------------
1 | au BufWritePost *.go silent!make tags > /dev/null 2>&1
2 |
--------------------------------------------------------------------------------
/vendor/github.com/koding/multiconfig/.travis.yml:
--------------------------------------------------------------------------------
1 | language: go
2 | go: 1.3
3 | script: go test ./...
4 |
5 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/raceon.go:
--------------------------------------------------------------------------------
1 | // +build race
2 |
3 | package mgo
4 |
5 | const raceDetector = true
6 |
--------------------------------------------------------------------------------
/vendor/github.com/BurntSushi/toml/.gitignore:
--------------------------------------------------------------------------------
1 | TAGS
2 | tags
3 | .*.swp
4 | tomlcheck/tomlcheck
5 | toml.test
6 |
--------------------------------------------------------------------------------
/vendor/github.com/mattn/go-isatty/doc.go:
--------------------------------------------------------------------------------
1 | // Package isatty implements interface to isatty
2 | package isatty
3 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/raceoff.go:
--------------------------------------------------------------------------------
1 | // +build !race
2 |
3 | package mgo
4 |
5 | const raceDetector = false
6 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/Makefile:
--------------------------------------------------------------------------------
1 | startdb:
2 | @harness/setup.sh start
3 |
4 | stopdb:
5 | @harness/setup.sh stop
6 |
--------------------------------------------------------------------------------
/vendor/github.com/jinzhu/gorm/dialects/mysql/mysql.go:
--------------------------------------------------------------------------------
1 | package mysql
2 |
3 | import _ "github.com/go-sql-driver/mysql"
4 |
--------------------------------------------------------------------------------
/vendor/github.com/jinzhu/gorm/dialects/sqlite/sqlite.go:
--------------------------------------------------------------------------------
1 | package sqlite
2 |
3 | import _ "github.com/mattn/go-sqlite3"
4 |
--------------------------------------------------------------------------------
/api.go:
--------------------------------------------------------------------------------
1 | package main
2 |
3 | import "github.com/labstack/echo"
4 |
5 | func api(c echo.Context)error{
6 | return nil
7 | }
8 |
--------------------------------------------------------------------------------
/vendor/github.com/joho/godotenv/.travis.yml:
--------------------------------------------------------------------------------
1 | language: go
2 |
3 | go:
4 | - 1.8
5 |
6 | os:
7 | - linux
8 | - osx
9 |
--------------------------------------------------------------------------------
/vendor/github.com/labstack/echo/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | coverage.txt
3 | _test
4 | vendor
5 | .idea
6 | *.iml
7 | *.out
8 |
--------------------------------------------------------------------------------
/vendor/github.com/labstack/gommon/log/README.md:
--------------------------------------------------------------------------------
1 | ## WORK IN PROGRESS
2 |
3 | ### Usage
4 |
5 | [log_test.go](log_test.go)
6 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/.gitignore:
--------------------------------------------------------------------------------
1 | # Add no patterns to .hgignore except for files generated by the build.
2 | last-change
3 |
--------------------------------------------------------------------------------
/vendor/github.com/joho/godotenv/fixtures/equals.env:
--------------------------------------------------------------------------------
1 | export OPTION_A='postgres://localhost:5432/database?sslmode=disable'
2 |
3 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/crypto/.gitignore:
--------------------------------------------------------------------------------
1 | # Add no patterns to .hgignore except for files generated by the build.
2 | last-change
3 |
--------------------------------------------------------------------------------
/vendor/github.com/BurntSushi/toml/_examples/implicit.toml:
--------------------------------------------------------------------------------
1 | # [x] you
2 | # [x.y] don't
3 | # [x.y.z] need these
4 | [x.y.z.w] # for this to work
5 |
--------------------------------------------------------------------------------
/vendor/github.com/BurntSushi/toml/_examples/invalid-apples.toml:
--------------------------------------------------------------------------------
1 | # DO NOT WANT
2 | [fruit]
3 | type = "apple"
4 |
5 | [fruit.type]
6 | apple = "yes"
7 |
--------------------------------------------------------------------------------
/vendor/github.com/labstack/echo/_fixture/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gocw/wepay/HEAD/vendor/github.com/labstack/echo/_fixture/favicon.ico
--------------------------------------------------------------------------------
/.env:
--------------------------------------------------------------------------------
1 | #配置数据库 mysql|mongodb
2 | CONFIG_DB=mysql
3 | #配置数据库地址
4 | CONFIG_DBURL=root:root@tcp(localhost:3306)/wepay?charset=utf8
5 | #配置日志
6 | CONFIG_DEBUG=false
--------------------------------------------------------------------------------
/vendor/github.com/go-sql-driver/mysql/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | .DS_Store?
3 | ._*
4 | .Spotlight-V100
5 | .Trashes
6 | Icon?
7 | ehthumbs.db
8 | Thumbs.db
9 |
--------------------------------------------------------------------------------
/vendor/github.com/joho/godotenv/fixtures/plain.env:
--------------------------------------------------------------------------------
1 | OPTION_A=1
2 | OPTION_B=2
3 | OPTION_C= 3
4 | OPTION_D =4
5 | OPTION_E = 5
6 | OPTION_F =
7 | OPTION_G=
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/harness/daemons/cfg1/run:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | . ../.env
4 |
5 | exec mongod $COMMONCOPTS \
6 | --port 40101 \
7 | --configsvr
8 |
9 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/harness/daemons/cfg2/run:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | . ../.env
4 |
5 | exec mongod $COMMONCOPTS \
6 | --port 40102 \
7 | --configsvr
8 |
9 |
--------------------------------------------------------------------------------
/vendor/github.com/labstack/echo/_fixture/images/walle.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gocw/wepay/HEAD/vendor/github.com/labstack/echo/_fixture/images/walle.png
--------------------------------------------------------------------------------
/vendor/golang.org/x/crypto/ed25519/testdata/sign.input.gz:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gocw/wepay/HEAD/vendor/golang.org/x/crypto/ed25519/testdata/sign.input.gz
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/internal/json/testdata/code.json.gz:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gocw/wepay/HEAD/vendor/gopkg.in/mgo.v2/internal/json/testdata/code.json.gz
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/harness/daemons/db2/run:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | . ../.env
4 |
5 | exec mongod $COMMONDOPTS \
6 | --shardsvr \
7 | --port 40002 \
8 | --auth
9 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/harness/daemons/s1/run:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | . ../.env
4 |
5 | exec mongos $COMMONSOPTS \
6 | --port 40201 \
7 | --configdb 127.0.0.1:40101
8 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/harness/daemons/s2/run:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | . ../.env
4 |
5 | exec mongos $COMMONSOPTS \
6 | --port 40202 \
7 | --configdb 127.0.0.1:40102
8 |
--------------------------------------------------------------------------------
/vendor/github.com/BurntSushi/toml/COMPATIBLE:
--------------------------------------------------------------------------------
1 | Compatible with TOML version
2 | [v0.4.0](https://github.com/toml-lang/toml/blob/v0.4.0/versions/en/toml-v0.4.0.md)
3 |
4 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/harness/daemons/rs1a/run:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | . ../.env
4 |
5 | exec mongod $COMMONDOPTS \
6 | --shardsvr \
7 | --replSet rs1 \
8 | --port 40011
9 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/harness/daemons/rs1b/run:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | . ../.env
4 |
5 | exec mongod $COMMONDOPTS \
6 | --shardsvr \
7 | --replSet rs1 \
8 | --port 40012
9 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/harness/daemons/rs1c/run:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | . ../.env
4 |
5 | exec mongod $COMMONDOPTS \
6 | --shardsvr \
7 | --replSet rs1 \
8 | --port 40013
9 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/harness/daemons/rs2a/run:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | . ../.env
4 |
5 | exec mongod $COMMONDOPTS \
6 | --shardsvr \
7 | --replSet rs2 \
8 | --port 40021
9 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/harness/daemons/rs2b/run:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | . ../.env
4 |
5 | exec mongod $COMMONDOPTS \
6 | --shardsvr \
7 | --replSet rs2 \
8 | --port 40022
9 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/harness/daemons/rs2c/run:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | . ../.env
4 |
5 | exec mongod $COMMONDOPTS \
6 | --shardsvr \
7 | --replSet rs2 \
8 | --port 40023
9 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/harness/daemons/rs4a/run:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | . ../.env
4 |
5 | exec mongod $COMMONDOPTS \
6 | --shardsvr \
7 | --replSet rs4 \
8 | --port 40041
9 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/yaml.v2/.travis.yml:
--------------------------------------------------------------------------------
1 | language: go
2 |
3 | go:
4 | - 1.4
5 | - 1.5
6 | - 1.6
7 | - tip
8 |
9 | go_import_path: gopkg.in/yaml.v2
10 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/crypto/sha3/testdata/keccakKats.json.deflate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gocw/wepay/HEAD/vendor/golang.org/x/crypto/sha3/testdata/keccakKats.json.deflate
--------------------------------------------------------------------------------
/vendor/github.com/jinzhu/gorm/test_all.sh:
--------------------------------------------------------------------------------
1 | dialects=("postgres" "mysql" "sqlite")
2 |
3 | for dialect in "${dialects[@]}" ; do
4 | GORM_DIALECT=${dialect} go test
5 | done
6 |
--------------------------------------------------------------------------------
/vendor/github.com/BurntSushi/toml/_examples/readme1.toml:
--------------------------------------------------------------------------------
1 | Age = 25
2 | Cats = [ "Cauchy", "Plato" ]
3 | Pi = 3.14
4 | Perfection = [ 6, 28, 496, 8128 ]
5 | DOB = 1987-07-05T05:45:00Z
6 |
--------------------------------------------------------------------------------
/vendor/github.com/joho/godotenv/fixtures/quoted.env:
--------------------------------------------------------------------------------
1 | OPTION_A='1'
2 | OPTION_B='2'
3 | OPTION_C=''
4 | OPTION_D='\n'
5 | OPTION_E="1"
6 | OPTION_F="2"
7 | OPTION_G=""
8 | OPTION_H="\n"
9 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/README.md:
--------------------------------------------------------------------------------
1 | The MongoDB driver for Go
2 | -------------------------
3 |
4 | Please go to [http://labix.org/mgo](http://labix.org/mgo) for all project details.
5 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/harness/daemons/s3/run:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | . ../.env
4 |
5 | exec mongos $COMMONSOPTS \
6 | --port 40203 \
7 | --configdb 127.0.0.1:40103 \
8 | --keyFile=../../certs/keyfile
9 |
--------------------------------------------------------------------------------
/vendor/github.com/labstack/gommon/log/white.go:
--------------------------------------------------------------------------------
1 | // +build appengine
2 |
3 | package log
4 |
5 | import (
6 | "io"
7 | "os"
8 | )
9 |
10 | func output() io.Writer {
11 | return os.Stdout
12 | }
13 |
--------------------------------------------------------------------------------
/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/gopkg.in/mgo.v2/harness/daemons/cfg3/run:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | . ../.env
4 |
5 | exec mongod $COMMONCOPTS \
6 | --port 40103 \
7 | --configsvr \
8 | --auth \
9 | --keyFile=../../certs/keyfile
10 |
--------------------------------------------------------------------------------
/vendor/github.com/labstack/echo/_fixture/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Echo
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/crypto/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 https://tip.golang.org/AUTHORS.
4 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/crypto/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 https://tip.golang.org/CONTRIBUTORS.
4 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/harness/daemons/rs3a/run:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | . ../.env
4 |
5 | exec mongod $COMMONDOPTS \
6 | --shardsvr \
7 | --replSet rs3 \
8 | --port 40031 \
9 | --keyFile=../../certs/keyfile
10 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/harness/daemons/rs3b/run:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | . ../.env
4 |
5 | exec mongod $COMMONDOPTS \
6 | --shardsvr \
7 | --replSet rs3 \
8 | --port 40032 \
9 | --keyFile=../../certs/keyfile
10 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/harness/daemons/rs3c/run:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | . ../.env
4 |
5 | exec mongod $COMMONDOPTS \
6 | --shardsvr \
7 | --replSet rs3 \
8 | --port 40033 \
9 | --keyFile=../../certs/keyfile
10 |
--------------------------------------------------------------------------------
/vendor/github.com/jinzhu/gorm/.codeclimate.yml:
--------------------------------------------------------------------------------
1 | ---
2 | engines:
3 | gofmt:
4 | enabled: true
5 | govet:
6 | enabled: true
7 | golint:
8 | enabled: true
9 | ratings:
10 | paths:
11 | - "**.go"
12 |
--------------------------------------------------------------------------------
/vendor/github.com/labstack/echo/_fixture/folder/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Echo
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/yaml.v2/suite_test.go:
--------------------------------------------------------------------------------
1 | package yaml_test
2 |
3 | import (
4 | . "gopkg.in/check.v1"
5 | "testing"
6 | )
7 |
8 | func Test(t *testing.T) { TestingT(t) }
9 |
10 | type S struct{}
11 |
12 | var _ = Suite(&S{})
13 |
--------------------------------------------------------------------------------
/vendor/github.com/go-sql-driver/mysql/.travis.yml:
--------------------------------------------------------------------------------
1 | sudo: false
2 | language: go
3 | go:
4 | - 1.2
5 | - 1.3
6 | - 1.4
7 | - 1.5
8 | - 1.6
9 | - 1.7
10 | - tip
11 |
12 | before_script:
13 | - mysql -e 'create database gotest;'
14 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/dbtest/export_test.go:
--------------------------------------------------------------------------------
1 | package dbtest
2 |
3 | import (
4 | "os"
5 | )
6 |
7 | func (dbs *DBServer) ProcessTest() *os.Process {
8 | if dbs.server == nil {
9 | return nil
10 | }
11 | return dbs.server.Process
12 | }
13 |
--------------------------------------------------------------------------------
/vendor/github.com/labstack/echo/util_go18.go:
--------------------------------------------------------------------------------
1 | // +build go1.8
2 |
3 | package echo
4 |
5 | import "net/url"
6 |
7 | // PathUnescape is wraps `url.PathUnescape`
8 | func PathUnescape(s string) (string, error) {
9 | return url.PathUnescape(s)
10 | }
11 |
--------------------------------------------------------------------------------
/vendor/github.com/labstack/gommon/log/color.go:
--------------------------------------------------------------------------------
1 | // +build !appengine
2 |
3 | package log
4 |
5 | import (
6 | "io"
7 |
8 | "github.com/mattn/go-colorable"
9 | )
10 |
11 | func output() io.Writer {
12 | return colorable.NewColorableStdout()
13 | }
14 |
--------------------------------------------------------------------------------
/vendor/github.com/valyala/fasttemplate/unsafe_gae.go:
--------------------------------------------------------------------------------
1 | // +build appengine
2 |
3 | package fasttemplate
4 |
5 | func unsafeBytes2String(b []byte) string {
6 | return string(b)
7 | }
8 |
9 | func unsafeString2Bytes(s string) []byte {
10 | return []byte(s)
11 | }
12 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/plan9/asm.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 | #include "textflag.h"
6 |
7 | TEXT ·use(SB),NOSPLIT,$0
8 | RET
9 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/syscall_windows_test.go:
--------------------------------------------------------------------------------
1 | package mgo_test
2 |
3 | func stop(pid int) (err error) {
4 | panicOnWindows() // Always does.
5 | return nil
6 | }
7 |
8 | func cont(pid int) (err error) {
9 | panicOnWindows() // Always does.
10 | return nil
11 | }
12 |
--------------------------------------------------------------------------------
/vendor/github.com/Sirupsen/logrus/terminal_bsd.go:
--------------------------------------------------------------------------------
1 | // +build darwin freebsd openbsd netbsd dragonfly
2 | // +build !appengine
3 |
4 | package logrus
5 |
6 | import "golang.org/x/sys/unix"
7 |
8 | const ioctlReadTermios = unix.TIOCGETA
9 |
10 | type Termios unix.Termios
11 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/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/labstack/echo/util_go17.go:
--------------------------------------------------------------------------------
1 | // +build go1.7, !go1.8
2 |
3 | package echo
4 |
5 | import (
6 | "net/url"
7 | )
8 |
9 | // PathUnescape is wraps `url.QueryUnescape`
10 | func PathUnescape(s string) (string, error) {
11 | return url.QueryUnescape(s)
12 | }
13 |
--------------------------------------------------------------------------------
/vendor/github.com/mattn/go-colorable/.travis.yml:
--------------------------------------------------------------------------------
1 | language: go
2 | go:
3 | - tip
4 |
5 | before_install:
6 | - go get github.com/mattn/goveralls
7 | - go get golang.org/x/tools/cmd/cover
8 | script:
9 | - $HOME/gopath/bin/goveralls -repotoken xnXqRGwgW3SXIguzxf90ZSK1GPYZPaGrw
10 |
--------------------------------------------------------------------------------
/vendor/github.com/mattn/go-isatty/.travis.yml:
--------------------------------------------------------------------------------
1 | language: go
2 | go:
3 | - tip
4 |
5 | before_install:
6 | - go get github.com/mattn/goveralls
7 | - go get golang.org/x/tools/cmd/cover
8 | script:
9 | - $HOME/gopath/bin/goveralls -repotoken 3gHdORO5k5ziZcWMBxnd9LrMZaJs8m9x5
10 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/harness/daemons/db3/run:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | . ../.env
4 |
5 | exec mongod $COMMONDOPTS \
6 | --shardsvr \
7 | --port 40003 \
8 | --auth \
9 | --sslMode preferSSL \
10 | --sslCAFile ../../certs/server.pem \
11 | --sslPEMKeyFile ../../certs/server.pem
12 |
13 |
--------------------------------------------------------------------------------
/vendor/github.com/labstack/echo/.travis.yml:
--------------------------------------------------------------------------------
1 | language: go
2 | go:
3 | - 1.7.x
4 | - 1.8.x
5 | - tip
6 | install:
7 | - make dependency
8 | script:
9 | - make test
10 | after_success:
11 | - bash <(curl -s https://codecov.io/bash)
12 | matrix:
13 | allow_failures:
14 | - go: tip
15 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/harness/daemons/db1/run:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | . ../.env
4 |
5 | if [ x$NOIPV6 = x1 ]; then
6 | BINDIP="127.0.0.1"
7 | else
8 | BINDIP="127.0.0.1,::1"
9 | fi
10 |
11 | exec mongod $COMMONDOPTSNOIP \
12 | --shardsvr \
13 | --bind_ip=$BINDIP \
14 | --port 40001 \
15 | --ipv6
16 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/saslimpl.go:
--------------------------------------------------------------------------------
1 | //+build sasl
2 |
3 | package mgo
4 |
5 | import (
6 | "gopkg.in/mgo.v2/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/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/BurntSushi/toml/.travis.yml:
--------------------------------------------------------------------------------
1 | language: go
2 | go:
3 | - 1.1
4 | - 1.2
5 | - 1.3
6 | - 1.4
7 | - 1.5
8 | - 1.6
9 | - tip
10 | install:
11 | - go install ./...
12 | - go get github.com/BurntSushi/toml-test
13 | script:
14 | - export PATH="$PATH:$HOME/gopath/bin"
15 | - make test
16 |
--------------------------------------------------------------------------------
/vendor/github.com/labstack/gommon/glide.yaml:
--------------------------------------------------------------------------------
1 | package: github.com/labstack/gommon
2 | import:
3 | - package: github.com/mattn/go-colorable
4 | - package: github.com/mattn/go-isatty
5 | - package: github.com/valyala/fasttemplate
6 | testImport:
7 | - package: github.com/stretchr/testify
8 | subpackages:
9 | - assert
10 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/syscall_test.go:
--------------------------------------------------------------------------------
1 | // +build !windows
2 |
3 | package mgo_test
4 |
5 | import (
6 | "syscall"
7 | )
8 |
9 | func stop(pid int) (err error) {
10 | return syscall.Kill(pid, syscall.SIGSTOP)
11 | }
12 |
13 | func cont(pid int) (err error) {
14 | return syscall.Kill(pid, syscall.SIGCONT)
15 | }
16 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/export_test.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 darwin dragonfly freebsd linux netbsd openbsd solaris
6 |
7 | package unix
8 |
9 | var Itoa = itoa
10 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/vendor/github.com/labstack/gommon/random/random_test.go:
--------------------------------------------------------------------------------
1 | package random
2 |
3 | import (
4 | "regexp"
5 | "testing"
6 |
7 | "github.com/stretchr/testify/assert"
8 | )
9 |
10 | func Test(t *testing.T) {
11 | assert.Len(t, String(32), 32)
12 | r := New()
13 | assert.Regexp(t, regexp.MustCompile("[0-9]+$"), r.String(8, Numeric))
14 | }
15 |
--------------------------------------------------------------------------------
/vendor/github.com/mattn/go-colorable/_example/title/main.go:
--------------------------------------------------------------------------------
1 | package main
2 |
3 | import (
4 | "fmt"
5 | "os"
6 | . "github.com/mattn/go-colorable"
7 | )
8 |
9 | func main() {
10 | out := NewColorableStdout()
11 | fmt.Fprint(out, "\x1B]0;TITLE Changed\007(See title and hit any key)")
12 | var c [1]byte
13 | os.Stdin.Read(c[:])
14 | }
15 |
--------------------------------------------------------------------------------
/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/golang.org/x/sys/windows/svc/go12.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 windows
6 | // +build !go1.3
7 |
8 | package svc
9 |
10 | // from go12.c
11 | func getServiceMain(r *uintptr)
12 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Binaries for programs and plugins
2 | *.exe
3 | *.dll
4 | *.so
5 | *.dylib
6 |
7 | # Test binary, build with `go test -c`
8 | *.test
9 |
10 | # Output of the go coverage tool, specifically when used with LiteIDE
11 | *.out
12 |
13 | # Project-local glide cache, RE: https://github.com/Masterminds/glide/issues/736
14 | .glide/
15 | .idea/
--------------------------------------------------------------------------------
/vendor/github.com/joho/godotenv/autoload/autoload.go:
--------------------------------------------------------------------------------
1 | package autoload
2 |
3 | /*
4 | You can just read the .env file on import just by doing
5 |
6 | import _ "github.com/joho/godotenv/autoload"
7 |
8 | And bob's your mother's brother
9 | */
10 |
11 | import "github.com/joho/godotenv"
12 |
13 | func init() {
14 | godotenv.Load()
15 | }
16 |
--------------------------------------------------------------------------------
/vendor/github.com/valyala/bytebufferpool/doc.go:
--------------------------------------------------------------------------------
1 | // Package bytebufferpool implements a pool of byte buffers
2 | // with anti-fragmentation protection.
3 | //
4 | // The pool may waste limited amount of memory due to fragmentation.
5 | // This amount equals to the maximum total size of the byte buffers
6 | // in concurrent use.
7 | package bytebufferpool
8 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/windows/registry/mksyscall.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 registry
6 |
7 | //go:generate go run $GOROOT/src/syscall/mksyscall_windows.go -output zsyscall_windows.go syscall.go
8 |
--------------------------------------------------------------------------------
/router.go:
--------------------------------------------------------------------------------
1 | package main
2 |
3 | import (
4 | "net/http"
5 |
6 | "github.com/labstack/echo"
7 | "errors"
8 | )
9 |
10 | func initRouter() {
11 |
12 | e := echo.New()
13 | e.GET("/", func(c echo.Context) error {
14 | return c.String(http.StatusOK, "wepay")
15 | })
16 | e.POST("/wepay/api",api)
17 | e.Logger.Fatal(e.Start(":1323"))
18 | }
19 |
20 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/crypto/ssh/test/doc.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 | // This package contains integration tests for the
6 | // golang.org/x/crypto/ssh package.
7 | package test // import "golang.org/x/crypto/ssh/test"
8 |
--------------------------------------------------------------------------------
/vendor/github.com/fatih/structs/.travis.yml:
--------------------------------------------------------------------------------
1 | language: go
2 | go:
3 | - 1.7.x
4 | - tip
5 | sudo: false
6 | before_install:
7 | - go get github.com/axw/gocov/gocov
8 | - go get github.com/mattn/goveralls
9 | - if ! go get github.com/golang/tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi
10 | script:
11 | - $HOME/gopath/bin/goveralls -service=travis-ci
12 |
--------------------------------------------------------------------------------
/vendor/github.com/Sirupsen/logrus/appveyor.yml:
--------------------------------------------------------------------------------
1 | version: "{build}"
2 | platform: x64
3 | clone_folder: c:\gopath\src\github.com\sirupsen\logrus
4 | environment:
5 | GOPATH: c:\gopath
6 | branches:
7 | only:
8 | - master
9 | install:
10 | - set PATH=%GOPATH%\bin;c:\go\bin;%PATH%
11 | - go version
12 | build_script:
13 | - go get -t
14 | - go test
15 |
--------------------------------------------------------------------------------
/vendor/github.com/valyala/bytebufferpool/.travis.yml:
--------------------------------------------------------------------------------
1 | language: go
2 |
3 | go:
4 | - 1.6
5 |
6 | script:
7 | # build test for supported platforms
8 | - GOOS=linux go build
9 | - GOOS=darwin go build
10 | - GOOS=freebsd go build
11 | - GOOS=windows go build
12 | - GOARCH=386 go build
13 |
14 | # run tests on a standard platform
15 | - go test -v ./...
16 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/crypto/ssh/terminal/util_linux.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 | package terminal
6 |
7 | import "golang.org/x/sys/unix"
8 |
9 | const ioctlReadTermios = unix.TCGETS
10 | const ioctlWriteTermios = unix.TCSETS
11 |
--------------------------------------------------------------------------------
/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 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 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/windows/mksyscall.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 | package windows
6 |
7 | //go:generate go run $GOROOT/src/syscall/mksyscall_windows.go -output zsyscall_windows.go eventlog.go service.go syscall_windows.go security_windows.go
8 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/syscall_no_getwd.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 dragonfly freebsd netbsd openbsd
6 |
7 | package unix
8 |
9 | const ImplementsGetwd = false
10 |
11 | func Getwd() (string, error) { return "", ENOTSUP }
12 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/zsysnum_solaris_amd64.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 amd64,solaris
6 |
7 | package unix
8 |
9 | // TODO(aram): remove these before Go 1.3.
10 | const (
11 | SYS_EXECVE = 59
12 | SYS_FCNTL = 62
13 | )
14 |
--------------------------------------------------------------------------------
/vendor/github.com/koding/multiconfig/doc.go:
--------------------------------------------------------------------------------
1 | // Package multiconfig provides a way to load and read configurations from
2 | // multiple sources. You can read from TOML file, JSON file, YAML file, Environment
3 | // Variables and flags. You can set the order of reader with MultiLoader. Package
4 | // is extensible, you can add your custom Loader by implementing the Load interface.
5 | package multiconfig
6 |
--------------------------------------------------------------------------------
/vendor/github.com/labstack/echo/Makefile:
--------------------------------------------------------------------------------
1 | dependency:
2 | go get -u github.com/golang/dep/cmd/dep
3 | dep ensure -update
4 |
5 | test:
6 | echo "" > coverage.txt
7 | for d in $(shell go list ./... | grep -v vendor); do \
8 | go test -race -coverprofile=profile.out -covermode=atomic $$d || exit 1; \
9 | [ -f profile.out ] && cat profile.out >> coverage.txt && rm profile.out; \
10 | done
11 |
--------------------------------------------------------------------------------
/vendor/github.com/fatih/structs/.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 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/env_unset.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 go1.4
6 |
7 | package unix
8 |
9 | import "syscall"
10 |
11 | func Unsetenv(key string) error {
12 | // This was added in Go 1.4.
13 | return syscall.Unsetenv(key)
14 | }
15 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/crypto/sha3/keccakf_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 amd64,!appengine,!gccgo
6 |
7 | package sha3
8 |
9 | // This function is implemented in keccakf_amd64.s.
10 |
11 | //go:noescape
12 |
13 | func keccakF1600(a *[25]uint64)
14 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/plan9/env_unset.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 go1.4
6 |
7 | package plan9
8 |
9 | import "syscall"
10 |
11 | func Unsetenv(key string) error {
12 | // This was added in Go 1.4.
13 | return syscall.Unsetenv(key)
14 | }
15 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/windows/registry/export_test.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 windows
6 |
7 | package registry
8 |
9 | func (k Key) SetValue(name string, valtype uint32, data []byte) error {
10 | return k.setValue(name, valtype, data)
11 | }
12 |
--------------------------------------------------------------------------------
/vendor/github.com/BurntSushi/toml/Makefile:
--------------------------------------------------------------------------------
1 | install:
2 | go install ./...
3 |
4 | test: install
5 | go test -v
6 | toml-test toml-test-decoder
7 | toml-test -encoder toml-test-encoder
8 |
9 | fmt:
10 | gofmt -w *.go */*.go
11 | colcheck *.go */*.go
12 |
13 | tags:
14 | find ./ -name '*.go' -print0 | xargs -0 gotags > TAGS
15 |
16 | push:
17 | git push origin master
18 | git push github master
19 |
20 |
--------------------------------------------------------------------------------
/vendor/github.com/go-sql-driver/mysql/.github/PULL_REQUEST_TEMPLATE.md:
--------------------------------------------------------------------------------
1 | ### Description
2 | Please explain the changes you made here.
3 |
4 | ### Checklist
5 | - [ ] Code compiles correctly
6 | - [ ] Created tests which fail without the change (if possible)
7 | - [ ] All tests passing
8 | - [ ] Extended the README / documentation, if necessary
9 | - [ ] Added myself / the copyright holder to the AUTHORS file
10 |
--------------------------------------------------------------------------------
/vendor/github.com/mattn/go-isatty/isatty_others_test.go:
--------------------------------------------------------------------------------
1 | // +build !windows
2 |
3 | package isatty
4 |
5 | import (
6 | "os"
7 | "testing"
8 | )
9 |
10 | func TestTerminal(t *testing.T) {
11 | // test for non-panic
12 | IsTerminal(os.Stdout.Fd())
13 | }
14 |
15 | func TestCygwinPipeName(t *testing.T) {
16 | if IsCygwinTerminal(os.Stdout.Fd()) {
17 | t.Fatal("should be false always")
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/crypto/curve25519/const_amd64.h:
--------------------------------------------------------------------------------
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 | // This code was translated into a form compatible with 6a from the public
6 | // domain sources in SUPERCOP: https://bench.cr.yp.to/supercop.html
7 |
8 | #define REDMASK51 0x0007FFFFFFFFFFFF
9 |
--------------------------------------------------------------------------------
/vendor/github.com/mattn/go-colorable/_example/escape-seq/main.go:
--------------------------------------------------------------------------------
1 | package main
2 |
3 | import (
4 | "bufio"
5 | "fmt"
6 |
7 | "github.com/mattn/go-colorable"
8 | )
9 |
10 | func main() {
11 | stdOut := bufio.NewWriter(colorable.NewColorableStdout())
12 |
13 | fmt.Fprint(stdOut, "\x1B[3GMove to 3rd Column\n")
14 | fmt.Fprint(stdOut, "\x1B[1;2HMove to 2nd Column on 1st Line\n")
15 | stdOut.Flush()
16 | }
17 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/crypto/blake2b/blake2b_ref.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 appengine gccgo
6 |
7 | package blake2b
8 |
9 | func hashBlocks(h *[8]uint64, c *[2]uint64, flag uint64, blocks []byte) {
10 | hashBlocksGeneric(h, c, flag, blocks)
11 | }
12 |
--------------------------------------------------------------------------------
/vendor/github.com/Sirupsen/logrus/.travis.yml:
--------------------------------------------------------------------------------
1 | language: go
2 | go:
3 | - 1.6.x
4 | - 1.7.x
5 | - 1.8.x
6 | - tip
7 | env:
8 | - GOMAXPROCS=4 GORACE=halt_on_error=1
9 | install:
10 | - go get github.com/stretchr/testify/assert
11 | - go get gopkg.in/gemnasium/logrus-airbrake-hook.v2
12 | - go get golang.org/x/sys/unix
13 | - go get golang.org/x/sys/windows
14 | script:
15 | - go test -race -v ./...
16 |
--------------------------------------------------------------------------------
/vendor/github.com/koding/multiconfig/.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 |
25 | *~
26 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/crypto/.gitattributes:
--------------------------------------------------------------------------------
1 | # Treat all files in this repo as binary, with no git magic updating
2 | # line endings. Windows users contributing to Go will need to use a
3 | # modern version of git and editors capable of LF line endings.
4 | #
5 | # We'll prevent accidental CRLF line endings from entering the repo
6 | # via the git-review gofmt checks.
7 | #
8 | # See golang.org/issue/9281
9 |
10 | * -text
11 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/.gitattributes:
--------------------------------------------------------------------------------
1 | # Treat all files in this repo as binary, with no git magic updating
2 | # line endings. Windows users contributing to Go will need to use a
3 | # modern version of git and editors capable of LF line endings.
4 | #
5 | # We'll prevent accidental CRLF line endings from entering the repo
6 | # via the git-review gofmt checks.
7 | #
8 | # See golang.org/issue/9281
9 |
10 | * -text
11 |
--------------------------------------------------------------------------------
/vendor/github.com/Sirupsen/logrus/terminal_linux.go:
--------------------------------------------------------------------------------
1 | // Based on ssh/terminal:
2 | // Copyright 2013 The Go Authors. All rights reserved.
3 | // Use of this source code is governed by a BSD-style
4 | // license that can be found in the LICENSE file.
5 |
6 | // +build !appengine
7 |
8 | package logrus
9 |
10 | import "golang.org/x/sys/unix"
11 |
12 | const ioctlReadTermios = unix.TCGETS
13 |
14 | type Termios unix.Termios
15 |
--------------------------------------------------------------------------------
/vendor/github.com/koding/multiconfig/testdata/config.toml:
--------------------------------------------------------------------------------
1 | Name = "koding"
2 | Enabled = true
3 | Users = ["ankara", "istanbul"]
4 | Interval = 10000000000
5 | ID = 1234567890
6 | Labels = [123,456]
7 |
8 | [Postgres]
9 | Enabled = true
10 | Port = 5432
11 | Hosts = ["192.168.2.1", "192.168.2.2", "192.168.2.3"]
12 | AvailabilityRatio = 8.23
13 |
--------------------------------------------------------------------------------
/vendor/github.com/mattn/go-isatty/example_test.go:
--------------------------------------------------------------------------------
1 | package isatty_test
2 |
3 | import (
4 | "fmt"
5 | "os"
6 |
7 | "github.com/mattn/go-isatty"
8 | )
9 |
10 | func Example() {
11 | if isatty.IsTerminal(os.Stdout.Fd()) {
12 | fmt.Println("Is Terminal")
13 | } else if isatty.IsCygwinTerminal(os.Stdout.Fd()) {
14 | fmt.Println("Is Cygwin/MSYS2 Terminal")
15 | } else {
16 | fmt.Println("Is Not Terminal")
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/windows/env_unset.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 windows
6 | // +build go1.4
7 |
8 | package windows
9 |
10 | import "syscall"
11 |
12 | func Unsetenv(key string) error {
13 | // This was added in Go 1.4.
14 | return syscall.Unsetenv(key)
15 | }
16 |
--------------------------------------------------------------------------------
/vendor/github.com/labstack/echo/middleware/middleware.go:
--------------------------------------------------------------------------------
1 | package middleware
2 |
3 | import "github.com/labstack/echo"
4 |
5 | type (
6 | // Skipper defines a function to skip middleware. Returning true skips processing
7 | // the middleware.
8 | Skipper func(c echo.Context) bool
9 | )
10 |
11 | // DefaultSkipper returns false which processes the middleware.
12 | func DefaultSkipper(echo.Context) bool {
13 | return false
14 | }
15 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/crypto/ssh/terminal/util_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 darwin dragonfly freebsd netbsd openbsd
6 |
7 | package terminal
8 |
9 | import "golang.org/x/sys/unix"
10 |
11 | const ioctlReadTermios = unix.TIOCGETA
12 | const ioctlWriteTermios = unix.TIOCSETA
13 |
--------------------------------------------------------------------------------
/vendor/github.com/jinzhu/gorm/model.go:
--------------------------------------------------------------------------------
1 | package gorm
2 |
3 | import "time"
4 |
5 | // Model base model definition, including fields `ID`, `CreatedAt`, `UpdatedAt`, `DeletedAt`, which could be embedded in your models
6 | // type User struct {
7 | // gorm.Model
8 | // }
9 | type Model struct {
10 | ID uint `gorm:"primary_key"`
11 | CreatedAt time.Time
12 | UpdatedAt time.Time
13 | DeletedAt *time.Time `sql:"index"`
14 | }
15 |
--------------------------------------------------------------------------------
/vendor/github.com/mattn/go-colorable/_example/logrus/main.go:
--------------------------------------------------------------------------------
1 | package main
2 |
3 | import (
4 | "github.com/mattn/go-colorable"
5 | "github.com/sirupsen/logrus"
6 | )
7 |
8 | func main() {
9 | logrus.SetFormatter(&logrus.TextFormatter{ForceColors: true})
10 | logrus.SetOutput(colorable.NewColorableStdout())
11 |
12 | logrus.Info("succeeded")
13 | logrus.Warn("not correct")
14 | logrus.Error("something error")
15 | logrus.Fatal("panic")
16 | }
17 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/crypto/ssh/testdata/doc.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 | // This package contains test data shared between the various subpackages of
6 | // the golang.org/x/crypto/ssh package. Under no circumstance should
7 | // this data be used for production code.
8 | package testdata // import "golang.org/x/crypto/ssh/testdata"
9 |
--------------------------------------------------------------------------------
/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 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 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/windows/asm_windows_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 | //
6 | // System calls for 386, Windows are implemented in runtime/syscall_windows.goc
7 | //
8 |
9 | TEXT ·getprocaddress(SB), 7, $0-8
10 | JMP syscall·getprocaddress(SB)
11 |
12 | TEXT ·loadlibrary(SB), 7, $0-4
13 | JMP syscall·loadlibrary(SB)
14 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/windows/asm_windows_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 | //
6 | // System calls for amd64, Windows are implemented in runtime/syscall_windows.goc
7 | //
8 |
9 | TEXT ·getprocaddress(SB), 7, $0-32
10 | JMP syscall·getprocaddress(SB)
11 |
12 | TEXT ·loadlibrary(SB), 7, $0-8
13 | JMP syscall·loadlibrary(SB)
14 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/flock_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/golang.org/x/crypto/blake2s/register.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 go1.9
6 |
7 | package blake2s
8 |
9 | import (
10 | "crypto"
11 | "hash"
12 | )
13 |
14 | func init() {
15 | newHash256 := func() hash.Hash {
16 | h, _ := New256(nil)
17 | return h
18 | }
19 |
20 | crypto.RegisterHash(crypto.BLAKE2s_256, newHash256)
21 | }
22 |
--------------------------------------------------------------------------------
/vendor/github.com/koding/multiconfig/testdata/config.yaml:
--------------------------------------------------------------------------------
1 | # server configure
2 |
3 | name: koding
4 |
5 | enabled: true
6 |
7 | users:
8 | - ankara
9 | - istanbul
10 |
11 | interval: 10000000000
12 |
13 | id: 1234567890
14 |
15 | labels:
16 | - 123
17 | - 456
18 |
19 | # postgres configure
20 | postgres:
21 | enabled: true
22 | port: 5432
23 | hosts:
24 | - 192.168.2.1
25 | - 192.168.2.2
26 | - 192.168.2.3
27 | availabilityratio: 8.23
28 |
29 |
--------------------------------------------------------------------------------
/vendor/github.com/koding/multiconfig/testdata/config.json:
--------------------------------------------------------------------------------
1 | {
2 | "Name": "koding",
3 | "Enabled": true,
4 | "Interval": 10000000000,
5 | "ID": 1234567890,
6 | "Labels": [
7 | 123,
8 | 456
9 | ],
10 | "Users": [
11 | "ankara",
12 | "istanbul"
13 | ],
14 | "Postgres": {
15 | "Enabled": true,
16 | "Port": 5432,
17 | "Hosts": [
18 | "192.168.2.1",
19 | "192.168.2.2",
20 | "192.168.2.3"
21 | ],
22 | "AvailabilityRatio": 8.23
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/crypto/sha3/xor.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 !amd64,!386,!ppc64le appengine
6 |
7 | package sha3
8 |
9 | var (
10 | xorIn = xorInGeneric
11 | copyOut = copyOutGeneric
12 | xorInUnaligned = xorInGeneric
13 | copyOutUnaligned = copyOutGeneric
14 | )
15 |
16 | const xorImplementationUnaligned = "generic"
17 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/plan9/pwd_go15_plan9.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 go1.5
6 |
7 | package plan9
8 |
9 | import "syscall"
10 |
11 | func fixwd() {
12 | syscall.Fixwd()
13 | }
14 |
15 | func Getwd() (wd string, err error) {
16 | return syscall.Getwd()
17 | }
18 |
19 | func Chdir(path string) error {
20 | return syscall.Chdir(path)
21 | }
22 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/crypto/blake2s/blake2s_ref.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,!386 gccgo appengine
6 |
7 | package blake2s
8 |
9 | var (
10 | useSSE4 = false
11 | useSSSE3 = false
12 | useSSE2 = false
13 | )
14 |
15 | func hashBlocks(h *[8]uint32, c *[2]uint32, flag uint32, blocks []byte) {
16 | hashBlocksGeneric(h, c, flag, blocks)
17 | }
18 |
--------------------------------------------------------------------------------
/vendor/github.com/jinzhu/gorm/interface.go:
--------------------------------------------------------------------------------
1 | package gorm
2 |
3 | import "database/sql"
4 |
5 | type sqlCommon interface {
6 | Exec(query string, args ...interface{}) (sql.Result, error)
7 | Prepare(query string) (*sql.Stmt, error)
8 | Query(query string, args ...interface{}) (*sql.Rows, error)
9 | QueryRow(query string, args ...interface{}) *sql.Row
10 | }
11 |
12 | type sqlDb interface {
13 | Begin() (*sql.Tx, error)
14 | }
15 |
16 | type sqlTx interface {
17 | Commit() error
18 | Rollback() error
19 | }
20 |
--------------------------------------------------------------------------------
/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/valyala/fasttemplate/unsafe.go:
--------------------------------------------------------------------------------
1 | // +build !appengine
2 |
3 | package fasttemplate
4 |
5 | import (
6 | "reflect"
7 | "unsafe"
8 | )
9 |
10 | func unsafeBytes2String(b []byte) string {
11 | return *(*string)(unsafe.Pointer(&b))
12 | }
13 |
14 | func unsafeString2Bytes(s string) []byte {
15 | sh := (*reflect.StringHeader)(unsafe.Pointer(&s))
16 | bh := reflect.SliceHeader{
17 | Data: sh.Data,
18 | Len: sh.Len,
19 | Cap: sh.Len,
20 | }
21 | return *(*[]byte)(unsafe.Pointer(&bh))
22 | }
23 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/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_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/golang.org/x/crypto/sha3/register.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 go1.4
6 |
7 | package sha3
8 |
9 | import (
10 | "crypto"
11 | )
12 |
13 | func init() {
14 | crypto.RegisterHash(crypto.SHA3_224, New224)
15 | crypto.RegisterHash(crypto.SHA3_256, New256)
16 | crypto.RegisterHash(crypto.SHA3_384, New384)
17 | crypto.RegisterHash(crypto.SHA3_512, New512)
18 | }
19 |
--------------------------------------------------------------------------------
/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/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/gopkg.in/mgo.v2/bson/specdata/update.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -e
4 |
5 | if [ ! -d specifications ]; then
6 | git clone -b bson git@github.com:jyemin/specifications
7 | fi
8 |
9 | TESTFILE="../specdata_test.go"
10 |
11 | cat < $TESTFILE
12 | package bson_test
13 |
14 | var specTests = []string{
15 | END
16 |
17 | for file in specifications/source/bson/tests/*.yml; do
18 | (
19 | echo '`'
20 | cat $file
21 | echo -n '`,'
22 | ) >> $TESTFILE
23 | done
24 |
25 | echo '}' >> $TESTFILE
26 |
27 | gofmt -w $TESTFILE
28 |
--------------------------------------------------------------------------------
/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/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/golang.org/x/crypto/md4/example_test.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 | package md4_test
6 |
7 | import (
8 | "fmt"
9 | "io"
10 |
11 | "golang.org/x/crypto/md4"
12 | )
13 |
14 | func ExampleNew() {
15 | h := md4.New()
16 | data := "These pretzels are making me thirsty."
17 | io.WriteString(h, data)
18 | fmt.Printf("%x", h.Sum(nil))
19 | // Output: 48c4e365090b30a32f084c4888deceaa
20 | }
21 |
--------------------------------------------------------------------------------
/vendor/github.com/valyala/bytebufferpool/bytebuffer_example_test.go:
--------------------------------------------------------------------------------
1 | package bytebufferpool_test
2 |
3 | import (
4 | "fmt"
5 |
6 | "github.com/valyala/bytebufferpool"
7 | )
8 |
9 | func ExampleByteBuffer() {
10 | bb := bytebufferpool.Get()
11 |
12 | bb.WriteString("first line\n")
13 | bb.Write([]byte("second line\n"))
14 | bb.B = append(bb.B, "third line\n"...)
15 |
16 | fmt.Printf("bytebuffer contents=%q", bb.B)
17 |
18 | // It is safe to release byte buffer now, since it is
19 | // no longer used.
20 | bytebufferpool.Put(bb)
21 | }
22 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/plan9/pwd_plan9.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 !go1.5
6 |
7 | package plan9
8 |
9 | func fixwd() {
10 | }
11 |
12 | func Getwd() (wd string, err error) {
13 | fd, err := open(".", O_RDONLY)
14 | if err != nil {
15 | return "", err
16 | }
17 | defer Close(fd)
18 | return Fd2path(fd)
19 | }
20 |
21 | func Chdir(path string) error {
22 | return chdir(path)
23 | }
24 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/vendor/github.com/labstack/gommon/bytes/README.md:
--------------------------------------------------------------------------------
1 | # Bytes
2 |
3 | - Format bytes integer to human readable bytes string.
4 | - Parse human readable bytes string to bytes integer.
5 |
6 | ## Installation
7 |
8 | ```go
9 | go get github.com/labstack/gommon/bytes
10 | ```
11 |
12 | ## [Usage](https://github.com/labstack/gommon/blob/master/bytes/bytes_test.go)
13 |
14 | ### Format
15 |
16 | ```go
17 | println(bytes.Format(13231323))
18 | ```
19 |
20 | `12.62MB`
21 |
22 | ### Parse
23 |
24 | ```go
25 | b, _ = Parse("2M")
26 | println(b)
27 | ```
28 |
29 | `2097152`
30 |
--------------------------------------------------------------------------------
/vendor/github.com/BurntSushi/toml/COPYING:
--------------------------------------------------------------------------------
1 | DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
2 | Version 2, December 2004
3 |
4 | Copyright (C) 2004 Sam Hocevar
5 |
6 | Everyone is permitted to copy and distribute verbatim or modified
7 | copies of this license document, and changing it is allowed as long
8 | as the name is changed.
9 |
10 | DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
11 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
12 |
13 | 0. You just DO WHAT THE FUCK YOU WANT TO.
14 |
15 |
--------------------------------------------------------------------------------
/vendor/github.com/BurntSushi/toml/cmd/tomlv/COPYING:
--------------------------------------------------------------------------------
1 | DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
2 | Version 2, December 2004
3 |
4 | Copyright (C) 2004 Sam Hocevar
5 |
6 | Everyone is permitted to copy and distribute verbatim or modified
7 | copies of this license document, and changing it is allowed as long
8 | as the name is changed.
9 |
10 | DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
11 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
12 |
13 | 0. You just DO WHAT THE FUCK YOU WANT TO.
14 |
15 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/plan9/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 plan9,!race
6 |
7 | package plan9
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/BurntSushi/toml/cmd/toml-test-decoder/COPYING:
--------------------------------------------------------------------------------
1 | DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
2 | Version 2, December 2004
3 |
4 | Copyright (C) 2004 Sam Hocevar
5 |
6 | Everyone is permitted to copy and distribute verbatim or modified
7 | copies of this license document, and changing it is allowed as long
8 | as the name is changed.
9 |
10 | DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
11 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
12 |
13 | 0. You just DO WHAT THE FUCK YOU WANT TO.
14 |
15 |
--------------------------------------------------------------------------------
/vendor/github.com/BurntSushi/toml/cmd/toml-test-encoder/COPYING:
--------------------------------------------------------------------------------
1 | DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
2 | Version 2, December 2004
3 |
4 | Copyright (C) 2004 Sam Hocevar
5 |
6 | Everyone is permitted to copy and distribute verbatim or modified
7 | copies of this license document, and changing it is allowed as long
8 | as the name is changed.
9 |
10 | DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
11 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
12 |
13 | 0. You just DO WHAT THE FUCK YOU WANT TO.
14 |
15 |
--------------------------------------------------------------------------------
/vendor/github.com/go-sql-driver/mysql/.github/ISSUE_TEMPLATE.md:
--------------------------------------------------------------------------------
1 | ### Issue description
2 | Tell us what should happen and what happens instead
3 |
4 | ### Example code
5 | ```go
6 | If possible, please enter some example code here to reproduce the issue.
7 | ```
8 |
9 | ### Error log
10 | ```
11 | If you have an error log, please paste it here.
12 | ```
13 |
14 | ### Configuration
15 | *Driver version (or git SHA):*
16 |
17 | *Go version:* run `go version` in your console
18 |
19 | *Server version:* E.g. MySQL 5.6, MariaDB 10.0.20
20 |
21 | *Server OS:* E.g. Debian 8.1 (Jessie), Windows 10
22 |
--------------------------------------------------------------------------------
/vendor/github.com/go-sql-driver/mysql/appengine.go:
--------------------------------------------------------------------------------
1 | // Go MySQL Driver - A MySQL-Driver for Go's database/sql package
2 | //
3 | // Copyright 2013 The Go-MySQL-Driver Authors. All rights reserved.
4 | //
5 | // This Source Code Form is subject to the terms of the Mozilla Public
6 | // License, v. 2.0. If a copy of the MPL was not distributed with this file,
7 | // You can obtain one at http://mozilla.org/MPL/2.0/.
8 |
9 | // +build appengine
10 |
11 | package mysql
12 |
13 | import (
14 | "appengine/cloudsql"
15 | )
16 |
17 | func init() {
18 | RegisterDial("cloudsql", cloudsql.Dial)
19 | }
20 |
--------------------------------------------------------------------------------
/vendor/github.com/labstack/echo/echo_go1.8_test.go:
--------------------------------------------------------------------------------
1 | // +build go1.8
2 |
3 | package echo
4 |
5 | import (
6 | "testing"
7 | "time"
8 |
9 | "github.com/stretchr/testify/assert"
10 | )
11 |
12 | func TestEchoClose(t *testing.T) {
13 | e := New()
14 | errCh := make(chan error)
15 |
16 | go func() {
17 | errCh <- e.Start(":0")
18 | }()
19 |
20 | time.Sleep(200 * time.Millisecond)
21 |
22 | if err := e.Close(); err != nil {
23 | t.Fatal(err)
24 | }
25 |
26 | assert.NoError(t, e.Close())
27 |
28 | err := <-errCh
29 | assert.Equal(t, err.Error(), "http: Server closed")
30 | }
31 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/windows/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 windows,!race
6 |
7 | package windows
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/koding/multiconfig/tag_test.go:
--------------------------------------------------------------------------------
1 | package multiconfig
2 |
3 | import "testing"
4 |
5 | func TestDefaultValues(t *testing.T) {
6 | m := &TagLoader{}
7 | s := new(Server)
8 | if err := m.Load(s); err != nil {
9 | t.Error(err)
10 | }
11 |
12 | if s.Port != getDefaultServer().Port {
13 | t.Errorf("Port value is wrong: %d, want: %d", s.Port, getDefaultServer().Port)
14 | }
15 |
16 | if s.Postgres.DBName != getDefaultServer().Postgres.DBName {
17 | t.Errorf("Postgres DBName value is wrong: %s, want: %s", s.Postgres.DBName, getDefaultServer().Postgres.DBName)
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/vendor/github.com/labstack/echo/response_test.go:
--------------------------------------------------------------------------------
1 | package echo
2 |
3 | import (
4 | "net/http/httptest"
5 | "testing"
6 |
7 | "github.com/stretchr/testify/assert"
8 | )
9 |
10 | func TestResponse(t *testing.T) {
11 | e := New()
12 | req := httptest.NewRequest(GET, "/", nil)
13 | rec := httptest.NewRecorder()
14 | c := e.NewContext(req, rec)
15 | res := &Response{echo: e, Writer: rec}
16 |
17 | // Before
18 | res.Before(func() {
19 | c.Response().Header().Set(HeaderServer, "echo")
20 | })
21 | res.Write([]byte("test"))
22 | assert.Equal(t, "echo", rec.Header().Get(HeaderServer))
23 | }
24 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/plan9/mksysnum_plan9.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # Copyright 2009 The Go Authors. All rights reserved.
3 | # Use of this source code is governed by a BSD-style
4 | # license that can be found in the LICENSE file.
5 |
6 | COMMAND="mksysnum_plan9.sh $@"
7 |
8 | cat <= 10 {
16 | buf[i] = byte(val%10 + '0')
17 | i--
18 | val /= 10
19 | }
20 | buf[i] = byte(val + '0')
21 | return string(buf[i:])
22 | }
23 |
--------------------------------------------------------------------------------
/vendor/github.com/BurntSushi/toml/encoding_types_1.1.go:
--------------------------------------------------------------------------------
1 | // +build !go1.2
2 |
3 | package toml
4 |
5 | // These interfaces were introduced in Go 1.2, so we add them manually when
6 | // compiling for Go 1.1.
7 |
8 | // TextMarshaler is a synonym for encoding.TextMarshaler. It is defined here
9 | // so that Go 1.1 can be supported.
10 | type TextMarshaler interface {
11 | MarshalText() (text []byte, err error)
12 | }
13 |
14 | // TextUnmarshaler is a synonym for encoding.TextUnmarshaler. It is defined
15 | // here so that Go 1.1 can be supported.
16 | type TextUnmarshaler interface {
17 | UnmarshalText(text []byte) error
18 | }
19 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/windows/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 windows
6 |
7 | package windows
8 |
9 | func itoa(val int) string { // do it here rather than with fmt to avoid dependency
10 | if val < 0 {
11 | return "-" + itoa(-val)
12 | }
13 | var buf [32]byte // big enough for int64
14 | i := len(buf) - 1
15 | for val >= 10 {
16 | buf[i] = byte(val%10 + '0')
17 | i--
18 | val /= 10
19 | }
20 | buf[i] = byte(val + '0')
21 | return string(buf[i:])
22 | }
23 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/windows/env_windows.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 | // Windows environment variables.
6 |
7 | package windows
8 |
9 | import "syscall"
10 |
11 | func Getenv(key string) (value string, found bool) {
12 | return syscall.Getenv(key)
13 | }
14 |
15 | func Setenv(key, value string) error {
16 | return syscall.Setenv(key, value)
17 | }
18 |
19 | func Clearenv() {
20 | syscall.Clearenv()
21 | }
22 |
23 | func Environ() []string {
24 | return syscall.Environ()
25 | }
26 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/windows/svc/go12.c:
--------------------------------------------------------------------------------
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 windows
6 | // +build !go1.3
7 |
8 | // copied from pkg/runtime
9 | typedef unsigned int uint32;
10 | typedef unsigned long long int uint64;
11 | #ifdef _64BIT
12 | typedef uint64 uintptr;
13 | #else
14 | typedef uint32 uintptr;
15 | #endif
16 |
17 | // from sys_386.s or sys_amd64.s
18 | void ·servicemain(void);
19 |
20 | void
21 | ·getServiceMain(uintptr *r)
22 | {
23 | *r = (uintptr)·servicemain;
24 | }
25 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/plan9/env_plan9.go:
--------------------------------------------------------------------------------
1 | // Copyright 2011 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 | // Plan 9 environment variables.
6 |
7 | package plan9
8 |
9 | import (
10 | "syscall"
11 | )
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 |
--------------------------------------------------------------------------------
/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 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/BurntSushi/toml/encoding_types.go:
--------------------------------------------------------------------------------
1 | // +build go1.2
2 |
3 | package toml
4 |
5 | // In order to support Go 1.1, we define our own TextMarshaler and
6 | // TextUnmarshaler types. For Go 1.2+, we just alias them with the
7 | // standard library interfaces.
8 |
9 | import (
10 | "encoding"
11 | )
12 |
13 | // TextMarshaler is a synonym for encoding.TextMarshaler. It is defined here
14 | // so that Go 1.1 can be supported.
15 | type TextMarshaler encoding.TextMarshaler
16 |
17 | // TextUnmarshaler is a synonym for encoding.TextUnmarshaler. It is defined
18 | // here so that Go 1.1 can be supported.
19 | type TextUnmarshaler encoding.TextUnmarshaler
20 |
--------------------------------------------------------------------------------
/vendor/github.com/labstack/echo/echo_go1.8.go:
--------------------------------------------------------------------------------
1 | // +build go1.8
2 |
3 | package echo
4 |
5 | import (
6 | stdContext "context"
7 | )
8 |
9 | // Close immediately stops the server.
10 | // It internally calls `http.Server#Close()`.
11 | func (e *Echo) Close() error {
12 | if err := e.TLSServer.Close(); err != nil {
13 | return err
14 | }
15 | return e.Server.Close()
16 | }
17 |
18 | // Shutdown stops server the gracefully.
19 | // It internally calls `http.Server#Shutdown()`.
20 | func (e *Echo) Shutdown(ctx stdContext.Context) error {
21 | if err := e.TLSServer.Shutdown(ctx); err != nil {
22 | return err
23 | }
24 | return e.Server.Shutdown(ctx)
25 | }
26 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/crypto/chacha20poly1305/chacha20poly1305_noasm.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 !go1.7 gccgo appengine
6 |
7 | package chacha20poly1305
8 |
9 | func (c *chacha20poly1305) seal(dst, nonce, plaintext, additionalData []byte) []byte {
10 | return c.sealGeneric(dst, nonce, plaintext, additionalData)
11 | }
12 |
13 | func (c *chacha20poly1305) open(dst, nonce, ciphertext, additionalData []byte) ([]byte, error) {
14 | return c.openGeneric(dst, nonce, ciphertext, additionalData)
15 | }
16 |
--------------------------------------------------------------------------------
/vendor/github.com/BurntSushi/toml/cmd/tomlv/README.md:
--------------------------------------------------------------------------------
1 | # TOML Validator
2 |
3 | If Go is installed, it's simple to try it out:
4 |
5 | ```bash
6 | go get github.com/BurntSushi/toml/cmd/tomlv
7 | tomlv some-toml-file.toml
8 | ```
9 |
10 | You can see the types of every key in a TOML file with:
11 |
12 | ```bash
13 | tomlv -types some-toml-file.toml
14 | ```
15 |
16 | At the moment, only one error message is reported at a time. Error messages
17 | include line numbers. No output means that the files given are valid TOML, or
18 | there is a bug in `tomlv`.
19 |
20 | Compatible with TOML version
21 | [v0.4.0](https://github.com/toml-lang/toml/blob/master/versions/en/toml-v0.4.0.md)
22 |
--------------------------------------------------------------------------------
/vendor/github.com/labstack/gommon/.travis.yml:
--------------------------------------------------------------------------------
1 | language: go
2 | go:
3 | - 1.7.x
4 | - 1.8.x
5 | - tip
6 | before_install:
7 | - go get github.com/modocache/gover
8 | - go get github.com/mattn/goveralls
9 | - go get golang.org/x/tools/cmd/cover
10 | script:
11 | - go test -race ./...
12 | - go test -coverprofile=color.coverprofile ./color
13 | - go test -coverprofile=bytes.coverprofile ./bytes
14 | - go test -coverprofile=log.coverprofile ./log
15 | - go test -coverprofile=random.coverprofile ./random
16 | - gover
17 | - goveralls -coverprofile=gover.coverprofile -service=travis-ci
18 | matrix:
19 | allow_failures:
20 | - go: tip
21 |
--------------------------------------------------------------------------------
/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 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 |
--------------------------------------------------------------------------------
/vendor/github.com/Sirupsen/logrus/hooks/syslog/syslog_test.go:
--------------------------------------------------------------------------------
1 | package syslog
2 |
3 | import (
4 | "log/syslog"
5 | "testing"
6 |
7 | "github.com/sirupsen/logrus"
8 | )
9 |
10 | func TestLocalhostAddAndPrint(t *testing.T) {
11 | log := logrus.New()
12 | hook, err := NewSyslogHook("udp", "localhost:514", syslog.LOG_INFO, "")
13 |
14 | if err != nil {
15 | t.Errorf("Unable to connect to local syslog.")
16 | }
17 |
18 | log.Hooks.Add(hook)
19 |
20 | for _, level := range hook.Levels() {
21 | if len(log.Hooks[level]) != 1 {
22 | t.Errorf("SyslogHook was not added. The length of log.Hooks[%v]: %v", level, len(log.Hooks[level]))
23 | }
24 | }
25 |
26 | log.Info("Congratulations!")
27 | }
28 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/vendor/github.com/labstack/gommon/README.md:
--------------------------------------------------------------------------------
1 | # Gommon [](http://godoc.org/github.com/labstack/gommon) [](https://travis-ci.org/labstack/gommon) [](https://coveralls.io/r/labstack/gommon)
2 |
3 | Common packages for Go
4 | - [Bytes](https://github.com/labstack/gommon/tree/master/bytes) - Format/parse bytes.
5 | - [Color](https://github.com/labstack/gommon/tree/master/color) - Style terminal text.
6 | - [Log](https://github.com/labstack/gommon/tree/master/log) - Simple logging.
7 |
--------------------------------------------------------------------------------
/vendor/github.com/valyala/bytebufferpool/bytebuffer_timing_test.go:
--------------------------------------------------------------------------------
1 | package bytebufferpool
2 |
3 | import (
4 | "bytes"
5 | "testing"
6 | )
7 |
8 | func BenchmarkByteBufferWrite(b *testing.B) {
9 | s := []byte("foobarbaz")
10 | b.RunParallel(func(pb *testing.PB) {
11 | var buf ByteBuffer
12 | for pb.Next() {
13 | for i := 0; i < 100; i++ {
14 | buf.Write(s)
15 | }
16 | buf.Reset()
17 | }
18 | })
19 | }
20 |
21 | func BenchmarkBytesBufferWrite(b *testing.B) {
22 | s := []byte("foobarbaz")
23 | b.RunParallel(func(pb *testing.PB) {
24 | var buf bytes.Buffer
25 | for pb.Next() {
26 | for i := 0; i < 100; i++ {
27 | buf.Write(s)
28 | }
29 | buf.Reset()
30 | }
31 | })
32 | }
33 |
--------------------------------------------------------------------------------
/vendor/github.com/labstack/echo/middleware/recover_test.go:
--------------------------------------------------------------------------------
1 | package middleware
2 |
3 | import (
4 | "bytes"
5 | "net/http"
6 | "net/http/httptest"
7 | "testing"
8 |
9 | "github.com/labstack/echo"
10 | "github.com/stretchr/testify/assert"
11 | )
12 |
13 | func TestRecover(t *testing.T) {
14 | e := echo.New()
15 | buf := new(bytes.Buffer)
16 | e.Logger.SetOutput(buf)
17 | req := httptest.NewRequest(echo.GET, "/", nil)
18 | rec := httptest.NewRecorder()
19 | c := e.NewContext(req, rec)
20 | h := Recover()(echo.HandlerFunc(func(c echo.Context) error {
21 | panic("test")
22 | }))
23 | h(c)
24 | assert.Equal(t, http.StatusInternalServerError, rec.Code)
25 | assert.Contains(t, buf.String(), "PANIC RECOVER")
26 | }
27 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/crypto/blake2b/blake2b_amd64.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 !go1.7,amd64,!gccgo,!appengine
6 |
7 | package blake2b
8 |
9 | func init() {
10 | useSSE4 = supportsSSE4()
11 | }
12 |
13 | //go:noescape
14 | func supportsSSE4() bool
15 |
16 | //go:noescape
17 | func hashBlocksSSE4(h *[8]uint64, c *[2]uint64, flag uint64, blocks []byte)
18 |
19 | func hashBlocks(h *[8]uint64, c *[2]uint64, flag uint64, blocks []byte) {
20 | if useSSE4 {
21 | hashBlocksSSE4(h, c, flag, blocks)
22 | } else {
23 | hashBlocksGeneric(h, c, flag, blocks)
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/README.md:
--------------------------------------------------------------------------------
1 | # sys
2 |
3 | This repository holds supplemental Go packages for low-level interactions with
4 | the operating system.
5 |
6 | ## Download/Install
7 |
8 | The easiest way to install is to run `go get -u golang.org/x/sys`. You can
9 | also manually git clone the repository to `$GOPATH/src/golang.org/x/sys`.
10 |
11 | ## Report Issues / Send Patches
12 |
13 | This repository uses Gerrit for code changes. To learn how to submit changes to
14 | this repository, see https://golang.org/doc/contribute.html.
15 |
16 | The main issue tracker for the sys repository is located at
17 | https://github.com/golang/go/issues. Prefix your issue with "x/sys:" in the
18 | subject line, so it is easy to find.
19 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/asm_linux_arm64.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 linux
6 | // +build arm64
7 | // +build !gccgo
8 |
9 | #include "textflag.h"
10 |
11 | // Just jump to package syscall's implementation for all these functions.
12 | // The runtime may know about them.
13 |
14 | TEXT ·Syscall(SB),NOSPLIT,$0-56
15 | B syscall·Syscall(SB)
16 |
17 | TEXT ·Syscall6(SB),NOSPLIT,$0-80
18 | B syscall·Syscall6(SB)
19 |
20 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56
21 | B syscall·RawSyscall(SB)
22 |
23 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80
24 | B syscall·RawSyscall6(SB)
25 |
--------------------------------------------------------------------------------
/vendor/github.com/Sirupsen/logrus/doc.go:
--------------------------------------------------------------------------------
1 | /*
2 | Package logrus is a structured logger for Go, completely API compatible with the standard library logger.
3 |
4 |
5 | The simplest way to use Logrus is simply the package-level exported logger:
6 |
7 | package main
8 |
9 | import (
10 | log "github.com/sirupsen/logrus"
11 | )
12 |
13 | func main() {
14 | log.WithFields(log.Fields{
15 | "animal": "walrus",
16 | "number": 1,
17 | "size": 10,
18 | }).Info("A walrus appears")
19 | }
20 |
21 | Output:
22 | time="2015-09-07T08:48:33Z" level=info msg="A walrus appears" animal=walrus number=1 size=10
23 |
24 | For a full guide visit https://github.com/sirupsen/logrus
25 | */
26 | package logrus
27 |
--------------------------------------------------------------------------------
/vendor/github.com/go-sql-driver/mysql/result.go:
--------------------------------------------------------------------------------
1 | // Go MySQL Driver - A MySQL-Driver for Go's database/sql package
2 | //
3 | // Copyright 2012 The Go-MySQL-Driver Authors. All rights reserved.
4 | //
5 | // This Source Code Form is subject to the terms of the Mozilla Public
6 | // License, v. 2.0. If a copy of the MPL was not distributed with this file,
7 | // You can obtain one at http://mozilla.org/MPL/2.0/.
8 |
9 | package mysql
10 |
11 | type mysqlResult struct {
12 | affectedRows int64
13 | insertId int64
14 | }
15 |
16 | func (res *mysqlResult) LastInsertId() (int64, error) {
17 | return res.insertId, nil
18 | }
19 |
20 | func (res *mysqlResult) RowsAffected() (int64, error) {
21 | return res.affectedRows, nil
22 | }
23 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/crypto/pkcs12/internal/rc2/bench_test.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 rc2
6 |
7 | import (
8 | "testing"
9 | )
10 |
11 | func BenchmarkEncrypt(b *testing.B) {
12 | r, _ := New([]byte{0, 0, 0, 0, 0, 0, 0, 0}, 64)
13 | b.ResetTimer()
14 | var src [8]byte
15 | for i := 0; i < b.N; i++ {
16 | r.Encrypt(src[:], src[:])
17 | }
18 | }
19 |
20 | func BenchmarkDecrypt(b *testing.B) {
21 | r, _ := New([]byte{0, 0, 0, 0, 0, 0, 0, 0}, 64)
22 | b.ResetTimer()
23 | var src [8]byte
24 | for i := 0; i < b.N; i++ {
25 | r.Decrypt(src[:], src[:])
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/internal/json/tags_test.go:
--------------------------------------------------------------------------------
1 | // Copyright 2011 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 json
6 |
7 | import (
8 | "testing"
9 | )
10 |
11 | func TestTagParsing(t *testing.T) {
12 | name, opts := parseTag("field,foobar,foo")
13 | if name != "field" {
14 | t.Fatalf("name = %q, want field", name)
15 | }
16 | for _, tt := range []struct {
17 | opt string
18 | want bool
19 | }{
20 | {"foobar", true},
21 | {"foo", true},
22 | {"bar", false},
23 | } {
24 | if opts.Contains(tt.opt) != tt.want {
25 | t.Errorf("Contains(%q) = %v", tt.opt, !tt.want)
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/plan9/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 plan9,race
6 |
7 | package plan9
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/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 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 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/windows/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 windows,race
6 |
7 | package windows
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/labstack/echo/.github/ISSUE_TEMPLATE.md:
--------------------------------------------------------------------------------
1 | /\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\
2 | \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/
3 |
4 | Please use forum https://forum.labstack.com to ask questions!
5 |
6 | /\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\
7 | \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/
8 |
9 | ### Issue Description
10 |
11 | ### Checklist
12 |
13 | - [ ] Dependencies installed
14 | - [ ] No typos
15 | - [ ] Searched existing issues and docs
16 |
17 | ### Expected behaviour
18 |
19 | ### Actual behaviour
20 |
21 | ### Steps to reproduce
22 |
23 | ### Working code to debug
24 |
25 | ```go
26 | package main
27 |
28 | func main() {
29 | }
30 | ```
31 |
32 | ### Version/commit
33 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/crypto/curve25519/const_amd64.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 | // This code was translated into a form compatible with 6a from the public
6 | // domain sources in SUPERCOP: https://bench.cr.yp.to/supercop.html
7 |
8 | // +build amd64,!gccgo,!appengine
9 |
10 | // These constants cannot be encoded in non-MOVQ immediates.
11 | // We access them directly from memory instead.
12 |
13 | DATA ·_121666_213(SB)/8, $996687872
14 | GLOBL ·_121666_213(SB), 8, $8
15 |
16 | DATA ·_2P0(SB)/8, $0xFFFFFFFFFFFDA
17 | GLOBL ·_2P0(SB), 8, $8
18 |
19 | DATA ·_2P1234(SB)/8, $0xFFFFFFFFFFFFE
20 | GLOBL ·_2P1234(SB), 8, $8
21 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/file_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 | package unix
6 |
7 | import (
8 | "os"
9 | "syscall"
10 | )
11 |
12 | // FIXME: unexported function from os
13 | // syscallMode returns the syscall-specific mode bits from Go's portable mode bits.
14 | func syscallMode(i os.FileMode) (o uint32) {
15 | o |= uint32(i.Perm())
16 | if i&os.ModeSetuid != 0 {
17 | o |= syscall.S_ISUID
18 | }
19 | if i&os.ModeSetgid != 0 {
20 | o |= syscall.S_ISGID
21 | }
22 | if i&os.ModeSticky != 0 {
23 | o |= syscall.S_ISVTX
24 | }
25 | // No mapping for Go's ModeTemporary (plan9 only).
26 | return
27 | }
28 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/export_test.go:
--------------------------------------------------------------------------------
1 | package mgo
2 |
3 | import (
4 | "time"
5 | )
6 |
7 | func HackPingDelay(newDelay time.Duration) (restore func()) {
8 | globalMutex.Lock()
9 | defer globalMutex.Unlock()
10 |
11 | oldDelay := pingDelay
12 | restore = func() {
13 | globalMutex.Lock()
14 | pingDelay = oldDelay
15 | globalMutex.Unlock()
16 | }
17 | pingDelay = newDelay
18 | return
19 | }
20 |
21 | func HackSyncSocketTimeout(newTimeout time.Duration) (restore func()) {
22 | globalMutex.Lock()
23 | defer globalMutex.Unlock()
24 |
25 | oldTimeout := syncSocketTimeout
26 | restore = func() {
27 | globalMutex.Lock()
28 | syncSocketTimeout = oldTimeout
29 | globalMutex.Unlock()
30 | }
31 | syncSocketTimeout = newTimeout
32 | return
33 | }
34 |
--------------------------------------------------------------------------------
/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/koding/multiconfig/multiloader.go:
--------------------------------------------------------------------------------
1 | package multiconfig
2 |
3 | type multiLoader []Loader
4 |
5 | // MultiLoader creates a loader that executes the loaders one by one in order
6 | // and returns on the first error.
7 | func MultiLoader(loader ...Loader) Loader {
8 | return multiLoader(loader)
9 | }
10 |
11 | // Load loads the source into the config defined by struct s
12 | func (m multiLoader) Load(s interface{}) error {
13 | for _, loader := range m {
14 | if err := loader.Load(s); err != nil {
15 | return err
16 | }
17 | }
18 |
19 | return nil
20 | }
21 |
22 | // MustLoad loads the source into the struct, it panics if gets any error
23 | func (m multiLoader) MustLoad(s interface{}) {
24 | if err := m.Load(s); err != nil {
25 | panic(err)
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/crypto/blake2b/register.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 go1.9
6 |
7 | package blake2b
8 |
9 | import (
10 | "crypto"
11 | "hash"
12 | )
13 |
14 | func init() {
15 | newHash256 := func() hash.Hash {
16 | h, _ := New256(nil)
17 | return h
18 | }
19 | newHash384 := func() hash.Hash {
20 | h, _ := New384(nil)
21 | return h
22 | }
23 |
24 | newHash512 := func() hash.Hash {
25 | h, _ := New512(nil)
26 | return h
27 | }
28 |
29 | crypto.RegisterHash(crypto.BLAKE2b_256, newHash256)
30 | crypto.RegisterHash(crypto.BLAKE2b_384, newHash384)
31 | crypto.RegisterHash(crypto.BLAKE2b_512, newHash512)
32 | }
33 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/asm_linux_s390x.s:
--------------------------------------------------------------------------------
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 s390x
6 | // +build linux
7 | // +build !gccgo
8 |
9 | #include "textflag.h"
10 |
11 | //
12 | // System calls for s390x, Linux
13 | //
14 |
15 | // Just jump to package syscall's implementation for all these functions.
16 | // The runtime may know about them.
17 |
18 | TEXT ·Syscall(SB),NOSPLIT,$0-56
19 | BR syscall·Syscall(SB)
20 |
21 | TEXT ·Syscall6(SB),NOSPLIT,$0-80
22 | BR syscall·Syscall6(SB)
23 |
24 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56
25 | BR syscall·RawSyscall(SB)
26 |
27 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80
28 | BR syscall·RawSyscall6(SB)
29 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/asm_linux_ppc64x.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 linux
6 | // +build ppc64 ppc64le
7 | // +build !gccgo
8 |
9 | #include "textflag.h"
10 |
11 | //
12 | // System calls for ppc64, Linux
13 | //
14 |
15 | // Just jump to package syscall's implementation for all these functions.
16 | // The runtime may know about them.
17 |
18 | TEXT ·Syscall(SB),NOSPLIT,$0-56
19 | BR syscall·Syscall(SB)
20 |
21 | TEXT ·Syscall6(SB),NOSPLIT,$0-80
22 | BR syscall·Syscall6(SB)
23 |
24 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56
25 | BR syscall·RawSyscall(SB)
26 |
27 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80
28 | BR syscall·RawSyscall6(SB)
29 |
--------------------------------------------------------------------------------
/vendor/github.com/mattn/go-colorable/colorable_appengine.go:
--------------------------------------------------------------------------------
1 | // +build appengine
2 |
3 | package colorable
4 |
5 | import (
6 | "io"
7 | "os"
8 |
9 | _ "github.com/mattn/go-isatty"
10 | )
11 |
12 | // NewColorable return new instance of Writer which handle escape sequence.
13 | func NewColorable(file *os.File) io.Writer {
14 | if file == nil {
15 | panic("nil passed instead of *os.File to NewColorable()")
16 | }
17 |
18 | return file
19 | }
20 |
21 | // NewColorableStdout return new instance of Writer which handle escape sequence for stdout.
22 | func NewColorableStdout() io.Writer {
23 | return os.Stdout
24 | }
25 |
26 | // NewColorableStderr return new instance of Writer which handle escape sequence for stderr.
27 | func NewColorableStderr() io.Writer {
28 | return os.Stderr
29 | }
30 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/crypto/scrypt/example_test.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 | package scrypt_test
6 |
7 | import (
8 | "encoding/base64"
9 | "fmt"
10 | "log"
11 |
12 | "golang.org/x/crypto/scrypt"
13 | )
14 |
15 | func Example() {
16 | // DO NOT use this salt value; generate your own random salt. 8 bytes is
17 | // a good length.
18 | salt := []byte{0xc8, 0x28, 0xf2, 0x58, 0xa7, 0x6a, 0xad, 0x7b}
19 |
20 | dk, err := scrypt.Key([]byte("some password"), salt, 1<<15, 8, 1, 32)
21 | if err != nil {
22 | log.Fatal(err)
23 | }
24 | fmt.Println(base64.StdEncoding.EncodeToString(dk))
25 | // Output: lGnMz8io0AUkfzn6Pls1qX20Vs7PGN6sbYQ2TQgY12M=
26 | }
27 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/asm_linux_arm.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 calls for arm, Linux
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 ·RawSyscall(SB),NOSPLIT,$0-28
23 | B syscall·RawSyscall(SB)
24 |
25 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40
26 | B syscall·RawSyscall6(SB)
27 |
28 | TEXT ·seek(SB),NOSPLIT,$0-32
29 | B syscall·seek(SB)
30 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/asm_linux_mips64x.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 linux
6 | // +build mips64 mips64le
7 | // +build !gccgo
8 |
9 | #include "textflag.h"
10 |
11 | //
12 | // System calls for mips64, Linux
13 | //
14 |
15 | // Just jump to package syscall's implementation for all these functions.
16 | // The runtime may know about them.
17 |
18 | TEXT ·Syscall(SB),NOSPLIT,$0-56
19 | JMP syscall·Syscall(SB)
20 |
21 | TEXT ·Syscall6(SB),NOSPLIT,$0-80
22 | JMP syscall·Syscall6(SB)
23 |
24 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56
25 | JMP syscall·RawSyscall(SB)
26 |
27 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80
28 | JMP syscall·RawSyscall6(SB)
29 |
--------------------------------------------------------------------------------
/vendor/github.com/labstack/echo/.gitattributes:
--------------------------------------------------------------------------------
1 | # Automatically normalize line endings for all text-based files
2 | # http://git-scm.com/docs/gitattributes#_end_of_line_conversion
3 | * text=auto
4 |
5 | # For the following file types, normalize line endings to LF on checking and
6 | # prevent conversion to CRLF when they are checked out (this is required in
7 | # order to prevent newline related issues)
8 | .* text eol=lf
9 | *.go text eol=lf
10 | *.yml text eol=lf
11 | *.html text eol=lf
12 | *.css text eol=lf
13 | *.js text eol=lf
14 | *.json text eol=lf
15 | LICENSE text eol=lf
16 |
17 | # Exclude `website` and `cookbook` from GitHub's language statistics
18 | # https://github.com/github/linguist#using-gitattributes
19 | cookbook/* linguist-documentation
20 | website/* linguist-documentation
21 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/flock.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 darwin dragonfly freebsd linux netbsd openbsd
6 |
7 | package unix
8 |
9 | import "unsafe"
10 |
11 | // fcntl64Syscall is usually SYS_FCNTL, but is overridden on 32-bit Linux
12 | // systems by flock_linux_32bit.go to be SYS_FCNTL64.
13 | var fcntl64Syscall uintptr = SYS_FCNTL
14 |
15 | // FcntlFlock performs a fcntl syscall for the F_GETLK, F_SETLK or F_SETLKW command.
16 | func FcntlFlock(fd uintptr, cmd int, lk *Flock_t) error {
17 | _, _, errno := Syscall(fcntl64Syscall, fd, uintptr(cmd), uintptr(unsafe.Pointer(lk)))
18 | if errno == 0 {
19 | return nil
20 | }
21 | return errno
22 | }
23 |
--------------------------------------------------------------------------------
/vendor/github.com/mattn/go-colorable/colorable_others.go:
--------------------------------------------------------------------------------
1 | // +build !windows
2 | // +build !appengine
3 |
4 | package colorable
5 |
6 | import (
7 | "io"
8 | "os"
9 |
10 | _ "github.com/mattn/go-isatty"
11 | )
12 |
13 | // NewColorable return new instance of Writer which handle escape sequence.
14 | func NewColorable(file *os.File) io.Writer {
15 | if file == nil {
16 | panic("nil passed instead of *os.File to NewColorable()")
17 | }
18 |
19 | return file
20 | }
21 |
22 | // NewColorableStdout return new instance of Writer which handle escape sequence for stdout.
23 | func NewColorableStdout() io.Writer {
24 | return os.Stdout
25 | }
26 |
27 | // NewColorableStderr return new instance of Writer which handle escape sequence for stderr.
28 | func NewColorableStderr() io.Writer {
29 | return os.Stderr
30 | }
31 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/crypto/poly1305/sum_amd64.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 amd64,!gccgo,!appengine
6 |
7 | package poly1305
8 |
9 | // This function is implemented in sum_amd64.s
10 | //go:noescape
11 | func poly1305(out *[16]byte, m *byte, mlen uint64, key *[32]byte)
12 |
13 | // Sum generates an authenticator for m using a one-time key and puts the
14 | // 16-byte result into out. Authenticating two different messages with the same
15 | // key allows an attacker to forge messages at will.
16 | func Sum(out *[16]byte, m []byte, key *[32]byte) {
17 | var mPtr *byte
18 | if len(m) > 0 {
19 | mPtr = &m[0]
20 | }
21 | poly1305(out, mPtr, uint64(len(m)), key)
22 | }
23 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/vendor/github.com/jinzhu/gorm/search_test.go:
--------------------------------------------------------------------------------
1 | package gorm
2 |
3 | import (
4 | "reflect"
5 | "testing"
6 | )
7 |
8 | func TestCloneSearch(t *testing.T) {
9 | s := new(search)
10 | s.Where("name = ?", "jinzhu").Order("name").Attrs("name", "jinzhu").Select("name, age")
11 |
12 | s1 := s.clone()
13 | s1.Where("age = ?", 20).Order("age").Attrs("email", "a@e.org").Select("email")
14 |
15 | if reflect.DeepEqual(s.whereConditions, s1.whereConditions) {
16 | t.Errorf("Where should be copied")
17 | }
18 |
19 | if reflect.DeepEqual(s.orders, s1.orders) {
20 | t.Errorf("Order should be copied")
21 | }
22 |
23 | if reflect.DeepEqual(s.initAttrs, s1.initAttrs) {
24 | t.Errorf("InitAttrs should be copied")
25 | }
26 |
27 | if reflect.DeepEqual(s.Select, s1.Select) {
28 | t.Errorf("selectStr should be copied")
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/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_linux_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 calls for AMD64, Linux
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 ·RawSyscall(SB),NOSPLIT,$0-56
23 | JMP syscall·RawSyscall(SB)
24 |
25 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80
26 | JMP syscall·RawSyscall6(SB)
27 |
28 | TEXT ·gettimeofday(SB),NOSPLIT,$0-16
29 | JMP syscall·gettimeofday(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 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/crypto/sha3/xor_generic.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 sha3
6 |
7 | import "encoding/binary"
8 |
9 | // xorInGeneric xors the bytes in buf into the state; it
10 | // makes no non-portable assumptions about memory layout
11 | // or alignment.
12 | func xorInGeneric(d *state, buf []byte) {
13 | n := len(buf) / 8
14 |
15 | for i := 0; i < n; i++ {
16 | a := binary.LittleEndian.Uint64(buf)
17 | d.a[i] ^= a
18 | buf = buf[8:]
19 | }
20 | }
21 |
22 | // copyOutGeneric copies ulint64s to a byte buffer.
23 | func copyOutGeneric(d *state, b []byte) {
24 | for i := 0; len(b) >= 8; i++ {
25 | binary.LittleEndian.PutUint64(b, d.a[i])
26 | b = b[8:]
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/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-64
17 | JMP syscall·Syscall(SB)
18 |
19 | TEXT ·Syscall6(SB),NOSPLIT,$0-88
20 | JMP syscall·Syscall6(SB)
21 |
22 | TEXT ·Syscall9(SB),NOSPLIT,$0-112
23 | JMP syscall·Syscall9(SB)
24 |
25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-64
26 | JMP syscall·RawSyscall(SB)
27 |
28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-88
29 | JMP syscall·RawSyscall6(SB)
30 |
--------------------------------------------------------------------------------
/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 |
25 | func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
26 | // TODO(aram): implement this, see issue 5847.
27 | panic("unimplemented")
28 | }
29 |
--------------------------------------------------------------------------------
/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/golang.org/x/crypto/poly1305/sum_arm.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 arm,!gccgo,!appengine,!nacl
6 |
7 | package poly1305
8 |
9 | // This function is implemented in sum_arm.s
10 | //go:noescape
11 | func poly1305_auth_armv6(out *[16]byte, m *byte, mlen uint32, key *[32]byte)
12 |
13 | // Sum generates an authenticator for m using a one-time key and puts the
14 | // 16-byte result into out. Authenticating two different messages with the same
15 | // key allows an attacker to forge messages at will.
16 | func Sum(out *[16]byte, m []byte, key *[32]byte) {
17 | var mPtr *byte
18 | if len(m) > 0 {
19 | mPtr = &m[0]
20 | }
21 | poly1305_auth_armv6(out, mPtr, uint32(len(m)), key)
22 | }
23 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/asm_darwin_arm64.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 arm64,darwin
7 |
8 | #include "textflag.h"
9 |
10 | //
11 | // System call support for AMD64, 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-56
18 | B syscall·Syscall(SB)
19 |
20 | TEXT ·Syscall6(SB),NOSPLIT,$0-80
21 | B syscall·Syscall6(SB)
22 |
23 | TEXT ·Syscall9(SB),NOSPLIT,$0-104
24 | B syscall·Syscall9(SB)
25 |
26 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56
27 | B syscall·RawSyscall(SB)
28 |
29 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80
30 | B syscall·RawSyscall6(SB)
31 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/plan9/asm_plan9_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 | #include "textflag.h"
6 |
7 | //
8 | // System call support for 386, Plan 9
9 | //
10 |
11 | // Just jump to package syscall's implementation for all these functions.
12 | // The runtime may know about them.
13 |
14 | TEXT ·Syscall(SB),NOSPLIT,$0-32
15 | JMP syscall·Syscall(SB)
16 |
17 | TEXT ·Syscall6(SB),NOSPLIT,$0-44
18 | JMP syscall·Syscall6(SB)
19 |
20 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28
21 | JMP syscall·RawSyscall(SB)
22 |
23 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40
24 | JMP syscall·RawSyscall6(SB)
25 |
26 | TEXT ·seek(SB),NOSPLIT,$0-36
27 | JMP syscall·seek(SB)
28 |
29 | TEXT ·exit(SB),NOSPLIT,$4-4
30 | JMP syscall·exit(SB)
31 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/windows/memory_windows.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 | package windows
6 |
7 | const (
8 | MEM_COMMIT = 0x00001000
9 | MEM_RESERVE = 0x00002000
10 | MEM_DECOMMIT = 0x00004000
11 | MEM_RELEASE = 0x00008000
12 | MEM_RESET = 0x00080000
13 | MEM_TOP_DOWN = 0x00100000
14 | MEM_WRITE_WATCH = 0x00200000
15 | MEM_PHYSICAL = 0x00400000
16 | MEM_RESET_UNDO = 0x01000000
17 | MEM_LARGE_PAGES = 0x20000000
18 |
19 | PAGE_NOACCESS = 0x01
20 | PAGE_READONLY = 0x02
21 | PAGE_READWRITE = 0x04
22 | PAGE_WRITECOPY = 0x08
23 | PAGE_EXECUTE_READ = 0x20
24 | PAGE_EXECUTE_READWRITE = 0x40
25 | PAGE_EXECUTE_WRITECOPY = 0x80
26 | )
27 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/plan9/asm_plan9_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 | #include "textflag.h"
6 |
7 | //
8 | // System call support for amd64, Plan 9
9 | //
10 |
11 | // Just jump to package syscall's implementation for all these functions.
12 | // The runtime may know about them.
13 |
14 | TEXT ·Syscall(SB),NOSPLIT,$0-64
15 | JMP syscall·Syscall(SB)
16 |
17 | TEXT ·Syscall6(SB),NOSPLIT,$0-88
18 | JMP syscall·Syscall6(SB)
19 |
20 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56
21 | JMP syscall·RawSyscall(SB)
22 |
23 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80
24 | JMP syscall·RawSyscall6(SB)
25 |
26 | TEXT ·seek(SB),NOSPLIT,$0-56
27 | JMP syscall·seek(SB)
28 |
29 | TEXT ·exit(SB),NOSPLIT,$8-8
30 | JMP syscall·exit(SB)
31 |
--------------------------------------------------------------------------------
/vendor/github.com/fatih/structs/tags.go:
--------------------------------------------------------------------------------
1 | package structs
2 |
3 | import "strings"
4 |
5 | // tagOptions contains a slice of tag options
6 | type tagOptions []string
7 |
8 | // Has returns true if the given optiton is available in tagOptions
9 | func (t tagOptions) Has(opt string) bool {
10 | for _, tagOpt := range t {
11 | if tagOpt == opt {
12 | return true
13 | }
14 | }
15 |
16 | return false
17 | }
18 |
19 | // parseTag splits a struct field's tag into its name and a list of options
20 | // which comes after a name. A tag is in the form of: "name,option1,option2".
21 | // The name can be neglectected.
22 | func parseTag(tag string) (string, tagOptions) {
23 | // tag is one of followings:
24 | // ""
25 | // "name"
26 | // "name,opt"
27 | // "name,opt,opt2"
28 | // ",opt"
29 |
30 | res := strings.Split(tag, ",")
31 | return res[0], res[1:]
32 | }
33 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/asm_linux_mipsx.s:
--------------------------------------------------------------------------------
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 linux
6 | // +build mips mipsle
7 | // +build !gccgo
8 |
9 | #include "textflag.h"
10 |
11 | //
12 | // System calls for mips, Linux
13 | //
14 |
15 | // Just jump to package syscall's implementation for all these functions.
16 | // The runtime may know about them.
17 |
18 | TEXT ·Syscall(SB),NOSPLIT,$0-28
19 | JMP syscall·Syscall(SB)
20 |
21 | TEXT ·Syscall6(SB),NOSPLIT,$0-40
22 | JMP syscall·Syscall6(SB)
23 |
24 | TEXT ·Syscall9(SB),NOSPLIT,$0-52
25 | JMP syscall·Syscall9(SB)
26 |
27 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28
28 | JMP syscall·RawSyscall(SB)
29 |
30 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40
31 | JMP syscall·RawSyscall6(SB)
32 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/crypto/pkcs12/errors.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 pkcs12
6 |
7 | import "errors"
8 |
9 | var (
10 | // ErrDecryption represents a failure to decrypt the input.
11 | ErrDecryption = errors.New("pkcs12: decryption error, incorrect padding")
12 |
13 | // ErrIncorrectPassword is returned when an incorrect password is detected.
14 | // Usually, P12/PFX data is signed to be able to verify the password.
15 | ErrIncorrectPassword = errors.New("pkcs12: decryption password incorrect")
16 | )
17 |
18 | // NotImplementedError indicates that the input is not currently supported.
19 | type NotImplementedError string
20 |
21 | func (e NotImplementedError) Error() string {
22 | return "pkcs12: " + string(e)
23 | }
24 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/dev_darwin.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 | // Functions to access/create device major and minor numbers matching the
6 | // encoding used in Darwin's sys/types.h header.
7 |
8 | package unix
9 |
10 | // Major returns the major component of a Darwin device number.
11 | func Major(dev uint64) uint32 {
12 | return uint32((dev >> 24) & 0xff)
13 | }
14 |
15 | // Minor returns the minor component of a Darwin device number.
16 | func Minor(dev uint64) uint32 {
17 | return uint32(dev & 0xffffff)
18 | }
19 |
20 | // Mkdev returns a Darwin device number generated from the given major and minor
21 | // components.
22 | func Mkdev(major, minor uint32) uint64 {
23 | return (uint64(major) << 24) | uint64(minor)
24 | }
25 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/syscall_solaris_test.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 solaris
6 |
7 | package unix_test
8 |
9 | import (
10 | "os/exec"
11 | "testing"
12 |
13 | "golang.org/x/sys/unix"
14 | )
15 |
16 | func TestStatvfs(t *testing.T) {
17 | if err := unix.Statvfs("", nil); err == nil {
18 | t.Fatal(`Statvfs("") expected failure`)
19 | }
20 |
21 | statvfs := unix.Statvfs_t{}
22 | if err := unix.Statvfs("/", &statvfs); err != nil {
23 | t.Errorf(`Statvfs("/") failed: %v`, err)
24 | }
25 |
26 | if t.Failed() {
27 | mount, err := exec.Command("mount").CombinedOutput()
28 | if err != nil {
29 | t.Logf("mount: %v\n%s", err, mount)
30 | } else {
31 | t.Logf("mount: %s", mount)
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/vendor/github.com/BurntSushi/toml/_examples/example.toml:
--------------------------------------------------------------------------------
1 | # This is a TOML document. Boom.
2 |
3 | title = "TOML Example"
4 |
5 | [owner]
6 | name = "Tom Preston-Werner"
7 | organization = "GitHub"
8 | bio = "GitHub Cofounder & CEO\nLikes tater tots and beer."
9 | dob = 1979-05-27T07:32:00Z # First class dates? Why not?
10 |
11 | [database]
12 | server = "192.168.1.1"
13 | ports = [ 8001, 8001, 8002 ]
14 | connection_max = 5000
15 | enabled = true
16 |
17 | [servers]
18 |
19 | # You can indent as you please. Tabs or spaces. TOML don't care.
20 | [servers.alpha]
21 | ip = "10.0.0.1"
22 | dc = "eqdc10"
23 |
24 | [servers.beta]
25 | ip = "10.0.0.2"
26 | dc = "eqdc10"
27 |
28 | [clients]
29 | data = [ ["gamma", "delta"], [1, 2] ] # just an update to make sure parsers support it
30 |
31 | # Line breaks are OK when inside arrays
32 | hosts = [
33 | "alpha",
34 | "omega"
35 | ]
36 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/crypto/README.md:
--------------------------------------------------------------------------------
1 | # Go Cryptography
2 |
3 | This repository holds supplementary Go cryptography libraries.
4 |
5 | ## Download/Install
6 |
7 | The easiest way to install is to run `go get -u golang.org/x/crypto/...`. You
8 | can also manually git clone the repository to `$GOPATH/src/golang.org/x/crypto`.
9 |
10 | ## Report Issues / Send Patches
11 |
12 | This repository uses Gerrit for code changes. To learn how to submit changes to
13 | this repository, see https://golang.org/doc/contribute.html.
14 |
15 | The main issue tracker for the crypto repository is located at
16 | https://github.com/golang/go/issues. Prefix your issue with "x/crypto:" in the
17 | subject line, so it is easy to find.
18 |
19 | Note that contributions to the cryptography package receive additional scrutiny
20 | due to their sensitive nature. Patches may take longer than normal to receive
21 | feedback.
22 |
--------------------------------------------------------------------------------
/db.go:
--------------------------------------------------------------------------------
1 | package main
2 |
3 | import (
4 | "time"
5 |
6 | "github.com/Sirupsen/logrus"
7 | "github.com/jinzhu/gorm"
8 | "gopkg.in/mgo.v2"
9 | _"github.com/go-sql-driver/mysql"
10 | )
11 |
12 | var session *mgo.Session
13 | var db *gorm.DB
14 |
15 | func initDB() {
16 | switch config.DB {
17 | case "mongodb":
18 | session, err := mgo.Dial(config.DBURL)
19 | if err != nil {
20 | panic(err)
21 | }
22 | session.SetMode(mgo.Monotonic, true)
23 | case "mysql":
24 | var err error
25 | path := config.DBURL //从env获取数据库连接地址
26 | logrus.Info("path:", string(path)) //打印数据库连接地址
27 | for {
28 | db, err = gorm.Open("mysql", string(path)) //使用gorm连接数据库
29 | if err != nil {
30 | logrus.Error(err, "Retry in 2 seconds!")
31 | time.Sleep(time.Second * 2)
32 | continue
33 | }
34 | logrus.Info("DB connect successful!")
35 | break
36 | }
37 | }
38 | }
39 |
40 |
--------------------------------------------------------------------------------
/vendor/github.com/go-sql-driver/mysql/transaction.go:
--------------------------------------------------------------------------------
1 | // Go MySQL Driver - A MySQL-Driver for Go's database/sql package
2 | //
3 | // Copyright 2012 The Go-MySQL-Driver Authors. All rights reserved.
4 | //
5 | // This Source Code Form is subject to the terms of the Mozilla Public
6 | // License, v. 2.0. If a copy of the MPL was not distributed with this file,
7 | // You can obtain one at http://mozilla.org/MPL/2.0/.
8 |
9 | package mysql
10 |
11 | type mysqlTx struct {
12 | mc *mysqlConn
13 | }
14 |
15 | func (tx *mysqlTx) Commit() (err error) {
16 | if tx.mc == nil || tx.mc.netConn == nil {
17 | return ErrInvalidConn
18 | }
19 | err = tx.mc.exec("COMMIT")
20 | tx.mc = nil
21 | return
22 | }
23 |
24 | func (tx *mysqlTx) Rollback() (err error) {
25 | if tx.mc == nil || tx.mc.netConn == nil {
26 | return ErrInvalidConn
27 | }
28 | err = tx.mc.exec("ROLLBACK")
29 | tx.mc = nil
30 | return
31 | }
32 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/crypto/salsa20/salsa/salsa20_amd64.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 amd64,!appengine,!gccgo
6 |
7 | package salsa
8 |
9 | // This function is implemented in salsa2020_amd64.s.
10 |
11 | //go:noescape
12 |
13 | func salsa2020XORKeyStream(out, in *byte, n uint64, nonce, key *byte)
14 |
15 | // XORKeyStream crypts bytes from in to out using the given key and counters.
16 | // In and out must overlap entirely or not at all. Counter
17 | // contains the raw salsa20 counter bytes (both nonce and block counter).
18 | func XORKeyStream(out, in []byte, counter *[16]byte, key *[32]byte) {
19 | if len(in) == 0 {
20 | return
21 | }
22 | _ = out[len(in)-1]
23 | salsa2020XORKeyStream(&out[0], &in[0], uint64(len(in)), &counter[0], &key[0])
24 | }
25 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/syscall_openbsd_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,openbsd
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 SetKevent(k *Kevent_t, fd, mode, flags int) {
18 | k.Ident = uint64(fd)
19 | k.Filter = int16(mode)
20 | k.Flags = uint16(flags)
21 | }
22 |
23 | func (iov *Iovec) SetLen(length int) {
24 | iov.Len = uint64(length)
25 | }
26 |
27 | func (msghdr *Msghdr) SetControllen(length int) {
28 | msghdr.Controllen = uint32(length)
29 | }
30 |
31 | func (cmsg *Cmsghdr) SetLen(length int) {
32 | cmsg.Len = uint32(length)
33 | }
34 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/syscall_netbsd_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,netbsd
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: int32(usec)}
15 | }
16 |
17 | func SetKevent(k *Kevent_t, fd, mode, flags int) {
18 | k.Ident = uint64(fd)
19 | k.Filter = uint32(mode)
20 | k.Flags = uint32(flags)
21 | }
22 |
23 | func (iov *Iovec) SetLen(length int) {
24 | iov.Len = uint64(length)
25 | }
26 |
27 | func (msghdr *Msghdr) SetControllen(length int) {
28 | msghdr.Controllen = uint32(length)
29 | }
30 |
31 | func (cmsg *Cmsghdr) SetLen(length int) {
32 | cmsg.Len = uint32(length)
33 | }
34 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/syscall_netbsd_386.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 386,netbsd
6 |
7 | package unix
8 |
9 | func setTimespec(sec, nsec int64) Timespec {
10 | return Timespec{Sec: sec, Nsec: int32(nsec)}
11 | }
12 |
13 | func setTimeval(sec, usec int64) Timeval {
14 | return Timeval{Sec: sec, Usec: int32(usec)}
15 | }
16 |
17 | func SetKevent(k *Kevent_t, fd, mode, flags int) {
18 | k.Ident = uint32(fd)
19 | k.Filter = uint32(mode)
20 | k.Flags = uint32(flags)
21 | }
22 |
23 | func (iov *Iovec) SetLen(length int) {
24 | iov.Len = uint32(length)
25 | }
26 |
27 | func (msghdr *Msghdr) SetControllen(length int) {
28 | msghdr.Controllen = uint32(length)
29 | }
30 |
31 | func (cmsg *Cmsghdr) SetLen(length int) {
32 | cmsg.Len = uint32(length)
33 | }
34 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/syscall_netbsd_arm.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 arm,netbsd
6 |
7 | package unix
8 |
9 | func setTimespec(sec, nsec int64) Timespec {
10 | return Timespec{Sec: sec, Nsec: int32(nsec)}
11 | }
12 |
13 | func setTimeval(sec, usec int64) Timeval {
14 | return Timeval{Sec: sec, Usec: int32(usec)}
15 | }
16 |
17 | func SetKevent(k *Kevent_t, fd, mode, flags int) {
18 | k.Ident = uint32(fd)
19 | k.Filter = uint32(mode)
20 | k.Flags = uint32(flags)
21 | }
22 |
23 | func (iov *Iovec) SetLen(length int) {
24 | iov.Len = uint32(length)
25 | }
26 |
27 | func (msghdr *Msghdr) SetControllen(length int) {
28 | msghdr.Controllen = uint32(length)
29 | }
30 |
31 | func (cmsg *Cmsghdr) SetLen(length int) {
32 | cmsg.Len = uint32(length)
33 | }
34 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/syscall_openbsd_386.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 386,openbsd
6 |
7 | package unix
8 |
9 | func setTimespec(sec, nsec int64) Timespec {
10 | return Timespec{Sec: sec, Nsec: int32(nsec)}
11 | }
12 |
13 | func setTimeval(sec, usec int64) Timeval {
14 | return Timeval{Sec: sec, Usec: int32(usec)}
15 | }
16 |
17 | func SetKevent(k *Kevent_t, fd, mode, flags int) {
18 | k.Ident = uint32(fd)
19 | k.Filter = int16(mode)
20 | k.Flags = uint16(flags)
21 | }
22 |
23 | func (iov *Iovec) SetLen(length int) {
24 | iov.Len = uint32(length)
25 | }
26 |
27 | func (msghdr *Msghdr) SetControllen(length int) {
28 | msghdr.Controllen = uint32(length)
29 | }
30 |
31 | func (cmsg *Cmsghdr) SetLen(length int) {
32 | cmsg.Len = uint32(length)
33 | }
34 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/syscall_openbsd_arm.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 arm,openbsd
6 |
7 | package unix
8 |
9 | func setTimespec(sec, nsec int64) Timespec {
10 | return Timespec{Sec: sec, Nsec: int32(nsec)}
11 | }
12 |
13 | func setTimeval(sec, usec int64) Timeval {
14 | return Timeval{Sec: sec, Usec: int32(usec)}
15 | }
16 |
17 | func SetKevent(k *Kevent_t, fd, mode, flags int) {
18 | k.Ident = uint32(fd)
19 | k.Filter = int16(mode)
20 | k.Flags = uint16(flags)
21 | }
22 |
23 | func (iov *Iovec) SetLen(length int) {
24 | iov.Len = uint32(length)
25 | }
26 |
27 | func (msghdr *Msghdr) SetControllen(length int) {
28 | msghdr.Controllen = uint32(length)
29 | }
30 |
31 | func (cmsg *Cmsghdr) SetLen(length int) {
32 | cmsg.Len = uint32(length)
33 | }
34 |
--------------------------------------------------------------------------------
/vendor/github.com/BurntSushi/toml/_examples/invalid.toml:
--------------------------------------------------------------------------------
1 | # This is an INVALID TOML document. Boom.
2 | # Can you spot the error without help?
3 |
4 | title = "TOML Example"
5 |
6 | [owner]
7 | name = "Tom Preston-Werner"
8 | organization = "GitHub"
9 | bio = "GitHub Cofounder & CEO\nLikes tater tots and beer."
10 | dob = 1979-05-27T7:32:00Z # First class dates? Why not?
11 |
12 | [database]
13 | server = "192.168.1.1"
14 | ports = [ 8001, 8001, 8002 ]
15 | connection_max = 5000
16 | enabled = true
17 |
18 | [servers]
19 | # You can indent as you please. Tabs or spaces. TOML don't care.
20 | [servers.alpha]
21 | ip = "10.0.0.1"
22 | dc = "eqdc10"
23 |
24 | [servers.beta]
25 | ip = "10.0.0.2"
26 | dc = "eqdc10"
27 |
28 | [clients]
29 | data = [ ["gamma", "delta"], [1, 2] ] # just an update to make sure parsers support it
30 |
31 | # Line breaks are OK when inside arrays
32 | hosts = [
33 | "alpha",
34 | "omega"
35 | ]
36 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/windows/eventlog.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 windows
6 |
7 | package windows
8 |
9 | const (
10 | EVENTLOG_SUCCESS = 0
11 | EVENTLOG_ERROR_TYPE = 1
12 | EVENTLOG_WARNING_TYPE = 2
13 | EVENTLOG_INFORMATION_TYPE = 4
14 | EVENTLOG_AUDIT_SUCCESS = 8
15 | EVENTLOG_AUDIT_FAILURE = 16
16 | )
17 |
18 | //sys RegisterEventSource(uncServerName *uint16, sourceName *uint16) (handle Handle, err error) [failretval==0] = advapi32.RegisterEventSourceW
19 | //sys DeregisterEventSource(handle Handle) (err error) = advapi32.DeregisterEventSource
20 | //sys ReportEvent(log Handle, etype uint16, category uint16, eventId uint32, usrSId uintptr, numStrings uint16, dataSize uint32, strings **uint16, rawData *byte) (err error) = advapi32.ReportEventW
21 |
--------------------------------------------------------------------------------
/vendor/github.com/labstack/echo/middleware/request_id_test.go:
--------------------------------------------------------------------------------
1 | package middleware
2 |
3 | import (
4 | "net/http"
5 | "net/http/httptest"
6 | "testing"
7 |
8 | "github.com/labstack/echo"
9 | "github.com/stretchr/testify/assert"
10 | )
11 |
12 | func TestRequestID(t *testing.T) {
13 | e := echo.New()
14 | req := httptest.NewRequest(echo.GET, "/", nil)
15 | rec := httptest.NewRecorder()
16 | c := e.NewContext(req, rec)
17 | handler := func(c echo.Context) error {
18 | return c.String(http.StatusOK, "test")
19 | }
20 |
21 | rid := RequestIDWithConfig(RequestIDConfig{})
22 | h := rid(handler)
23 | h(c)
24 | assert.Len(t, rec.Header().Get(echo.HeaderXRequestID), 32)
25 |
26 | // Custom generator
27 | rid = RequestIDWithConfig(RequestIDConfig{
28 | Generator: func() string { return "customGenerator" },
29 | })
30 | h = rid(handler)
31 | h(c)
32 | assert.Equal(t, rec.Header().Get(echo.HeaderXRequestID), "customGenerator")
33 | }
34 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/plan9/syscall_test.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 plan9
6 |
7 | package plan9_test
8 |
9 | import (
10 | "testing"
11 |
12 | "golang.org/x/sys/plan9"
13 | )
14 |
15 | func testSetGetenv(t *testing.T, key, value string) {
16 | err := plan9.Setenv(key, value)
17 | if err != nil {
18 | t.Fatalf("Setenv failed to set %q: %v", value, err)
19 | }
20 | newvalue, found := plan9.Getenv(key)
21 | if !found {
22 | t.Fatalf("Getenv failed to find %v variable (want value %q)", key, value)
23 | }
24 | if newvalue != value {
25 | t.Fatalf("Getenv(%v) = %q; want %q", key, newvalue, value)
26 | }
27 | }
28 |
29 | func TestEnv(t *testing.T) {
30 | testSetGetenv(t, "TESTENV", "AVALUE")
31 | // make sure TESTENV gets set to "", not deleted
32 | testSetGetenv(t, "TESTENV", "")
33 | }
34 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/mksysnum_darwin.pl:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env perl
2 | # Copyright 2009 The Go Authors. All rights reserved.
3 | # Use of this source code is governed by a BSD-style
4 | # license that can be found in the LICENSE file.
5 | #
6 | # Generate system call table for Darwin from sys/syscall.h
7 |
8 | use strict;
9 |
10 | if($ENV{'GOARCH'} eq "" || $ENV{'GOOS'} eq "") {
11 | print STDERR "GOARCH or GOOS not defined in environment\n";
12 | exit 1;
13 | }
14 |
15 | my $command = "mksysnum_darwin.pl " . join(' ', @ARGV);
16 |
17 | print <){
29 | if(/^#define\s+SYS_(\w+)\s+([0-9]+)/){
30 | my $name = $1;
31 | my $num = $2;
32 | $name =~ y/a-z/A-Z/;
33 | print " SYS_$name = $num;"
34 | }
35 | }
36 |
37 | print <> 63) // unsafe.Sizeof(uintptr(0)) but an ideal const
13 |
14 | // Should be a built-in for unsafe.Pointer?
15 | func add(p unsafe.Pointer, x uintptr) unsafe.Pointer {
16 | return unsafe.Pointer(uintptr(p) + x)
17 | }
18 |
19 | // funcPC returns the entry PC of the function f.
20 | // It assumes that f is a func value. Otherwise the behavior is undefined.
21 | func funcPC(f interface{}) uintptr {
22 | return **(**uintptr)(add(unsafe.Pointer(&f), ptrSize))
23 | }
24 |
25 | // from sys_386.s and sys_amd64.s
26 | func servicectlhandler(ctl uint32) uintptr
27 | func servicemain(argc uint32, argv **uint16)
28 |
29 | func getServiceMain(r *uintptr) {
30 | *r = funcPC(servicemain)
31 | }
32 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/mmap_unix_test.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 darwin dragonfly freebsd linux netbsd openbsd solaris
6 |
7 | package unix_test
8 |
9 | import (
10 | "testing"
11 |
12 | "golang.org/x/sys/unix"
13 | )
14 |
15 | func TestMmap(t *testing.T) {
16 | b, err := unix.Mmap(-1, 0, unix.Getpagesize(), unix.PROT_NONE, unix.MAP_ANON|unix.MAP_PRIVATE)
17 | if err != nil {
18 | t.Fatalf("Mmap: %v", err)
19 | }
20 | if err := unix.Mprotect(b, unix.PROT_READ|unix.PROT_WRITE); err != nil {
21 | t.Fatalf("Mprotect: %v", err)
22 | }
23 |
24 | b[0] = 42
25 |
26 | if err := unix.Msync(b, unix.MS_SYNC); err != nil {
27 | t.Fatalf("Msync: %v", err)
28 | }
29 | if err := unix.Madvise(b, unix.MADV_DONTNEED); err != nil {
30 | t.Fatalf("Madvise: %v", err)
31 | }
32 | if err := unix.Munmap(b); err != nil {
33 | t.Fatalf("Munmap: %v", err)
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/crypto/acme/autocert/example_test.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 | package autocert_test
6 |
7 | import (
8 | "crypto/tls"
9 | "fmt"
10 | "log"
11 | "net/http"
12 |
13 | "golang.org/x/crypto/acme/autocert"
14 | )
15 |
16 | func ExampleNewListener() {
17 | mux := http.NewServeMux()
18 | mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
19 | fmt.Fprintf(w, "Hello, TLS user! Your config: %+v", r.TLS)
20 | })
21 | log.Fatal(http.Serve(autocert.NewListener("example.com"), mux))
22 | }
23 |
24 | func ExampleManager() {
25 | m := autocert.Manager{
26 | Cache: autocert.DirCache("secret-dir"),
27 | Prompt: autocert.AcceptTOS,
28 | HostPolicy: autocert.HostWhitelist("example.org"),
29 | }
30 | s := &http.Server{
31 | Addr: ":https",
32 | TLSConfig: &tls.Config{GetCertificate: m.GetCertificate},
33 | }
34 | s.ListenAndServeTLS("", "")
35 | }
36 |
--------------------------------------------------------------------------------
/vendor/github.com/valyala/bytebufferpool/README.md:
--------------------------------------------------------------------------------
1 | [](https://travis-ci.org/valyala/bytebufferpool)
2 | [](http://godoc.org/github.com/valyala/bytebufferpool)
3 | [](http://goreportcard.com/report/valyala/bytebufferpool)
4 |
5 | # bytebufferpool
6 |
7 | An implementation of a pool of byte buffers with anti-memory-waste protection.
8 |
9 | The pool may waste limited amount of memory due to fragmentation.
10 | This amount equals to the maximum total size of the byte buffers
11 | in concurrent use.
12 |
13 | # Benchmark results
14 | Currently bytebufferpool is fastest and most effective buffer pool written in Go.
15 |
16 | You can find results [here](https://omgnull.github.io/go-benchmark/buffer/).
17 |
18 | # bytebufferpool users
19 |
20 | * [fasthttp](https://github.com/valyala/fasthttp)
21 | * [quicktemplate](https://github.com/valyala/quicktemplate)
22 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/dev_netbsd.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 | // Functions to access/create device major and minor numbers matching the
6 | // encoding used in NetBSD's sys/types.h header.
7 |
8 | package unix
9 |
10 | // Major returns the major component of a NetBSD device number.
11 | func Major(dev uint64) uint32 {
12 | return uint32((dev & 0x000fff00) >> 8)
13 | }
14 |
15 | // Minor returns the minor component of a NetBSD device number.
16 | func Minor(dev uint64) uint32 {
17 | minor := uint32((dev & 0x000000ff) >> 0)
18 | minor |= uint32((dev & 0xfff00000) >> 12)
19 | return minor
20 | }
21 |
22 | // Mkdev returns a NetBSD device number generated from the given major and minor
23 | // components.
24 | func Mkdev(major, minor uint32) uint64 {
25 | dev := (uint64(major) << 8) & 0x000fff00
26 | dev |= (uint64(minor) << 12) & 0xfff00000
27 | dev |= (uint64(minor) << 0) & 0x000000ff
28 | return dev
29 | }
30 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/dev_openbsd.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 | // Functions to access/create device major and minor numbers matching the
6 | // encoding used in OpenBSD's sys/types.h header.
7 |
8 | package unix
9 |
10 | // Major returns the major component of an OpenBSD device number.
11 | func Major(dev uint64) uint32 {
12 | return uint32((dev & 0x0000ff00) >> 8)
13 | }
14 |
15 | // Minor returns the minor component of an OpenBSD device number.
16 | func Minor(dev uint64) uint32 {
17 | minor := uint32((dev & 0x000000ff) >> 0)
18 | minor |= uint32((dev & 0xffff0000) >> 8)
19 | return minor
20 | }
21 |
22 | // Mkdev returns an OpenBSD device number generated from the given major and minor
23 | // components.
24 | func Mkdev(major, minor uint32) uint64 {
25 | dev := (uint64(major) << 8) & 0x0000ff00
26 | dev |= (uint64(minor) << 8) & 0xffff0000
27 | dev |= (uint64(minor) << 0) & 0x000000ff
28 | return dev
29 | }
30 |
--------------------------------------------------------------------------------
/vendor/github.com/fatih/structs/tags_test.go:
--------------------------------------------------------------------------------
1 | package structs
2 |
3 | import "testing"
4 |
5 | func TestParseTag_Name(t *testing.T) {
6 | tags := []struct {
7 | tag string
8 | has bool
9 | }{
10 | {"", false},
11 | {"name", true},
12 | {"name,opt", true},
13 | {"name , opt, opt2", false}, // has a single whitespace
14 | {", opt, opt2", false},
15 | }
16 |
17 | for _, tag := range tags {
18 | name, _ := parseTag(tag.tag)
19 |
20 | if (name != "name") && tag.has {
21 | t.Errorf("Parse tag should return name: %#v", tag)
22 | }
23 | }
24 | }
25 |
26 | func TestParseTag_Opts(t *testing.T) {
27 | tags := []struct {
28 | opts string
29 | has bool
30 | }{
31 | {"name", false},
32 | {"name,opt", true},
33 | {"name , opt, opt2", false}, // has a single whitespace
34 | {",opt, opt2", true},
35 | {", opt3, opt4", false},
36 | }
37 |
38 | // search for "opt"
39 | for _, tag := range tags {
40 | _, opts := parseTag(tag.opts)
41 |
42 | if opts.Has("opt") != tag.has {
43 | t.Errorf("Tag opts should have opt: %#v", tag)
44 | }
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/mgo.v2/harness/certs/client.req:
--------------------------------------------------------------------------------
1 | -----BEGIN CERTIFICATE REQUEST-----
2 | MIICoTCCAYkCAQAwXDELMAkGA1UEBhMCR08xDDAKBgNVBAgMA01HTzEMMAoGA1UE
3 | BwwDTUdPMQwwCgYDVQQKDANNR08xDzANBgNVBAsMBkNsaWVudDESMBAGA1UEAwwJ
4 | bG9jYWxob3N0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtFIkIZk/
5 | h+CCKq5/EjBEg873Jd68CJsFKESB5Zl5KLwiGQm7wQidZwLul+cyDfPRDzzo3za4
6 | GetesD4FVf2BEF6fg+/o0wLBObPCXqUVxXXnEXrJr4f/tItg0riOEBbLslQDzNTt
7 | CAEORCoK9MHmWZrF+pYTw+LmHoVeA8QxNIv/GkwJQ6DYEQgCa2BTIWq0Uw3WO20M
8 | 3e2WGm/6Sv9w0pjisZfwBSfBJ5nI/cNW7L8tH4AIKBhAZwa7vND0RaRYqpO9kyZF
9 | zh8e83GBaXoLSj2wK3kwjKHWgp4z//37JAqeFya5Hx+ftNTXnl/69TnxG44BP8M8
10 | 8ZfDWlpzwpsTXwIDAQABoAAwDQYJKoZIhvcNAQELBQADggEBAKbOFblIscxlXalV
11 | sEGNm2oz380RN2QoLhN6nKtAiv0jWm6iKhdAhOIQIeaRPhUP3cyi8bcBvLdMeQ3d
12 | ZYIByB55/R0VSP1vs4qkXJCQegHcpMpyuIzsMV8p3Q4lxzGKyKtPA6Bb5c49p8Sk
13 | ncD+LL4ymrMEia4cBPsHL9hhFOm4gqDacbU8+ETLTpuoSvUZiw7OwngqhE2r+kMv
14 | KDweq5TOPeb+ftKzQKrrfB+XVdBoTKYw6CwARpogbc0/7mvottVcJ/0yAgC1fBbM
15 | vupkohkXwKfjxKl6nKNL3R2GkzHQOh91hglAx5zyybKQn2YMM328Vk4X6csBg+pg
16 | tb1s0MA=
17 | -----END CERTIFICATE REQUEST-----
18 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/openbsd_pledge.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 openbsd
6 | // +build 386 amd64 arm
7 |
8 | package unix
9 |
10 | import (
11 | "syscall"
12 | "unsafe"
13 | )
14 |
15 | const (
16 | SYS_PLEDGE = 108
17 | )
18 |
19 | // Pledge implements the pledge syscall. For more information see pledge(2).
20 | func Pledge(promises string, paths []string) error {
21 | promisesPtr, err := syscall.BytePtrFromString(promises)
22 | if err != nil {
23 | return err
24 | }
25 | promisesUnsafe, pathsUnsafe := unsafe.Pointer(promisesPtr), unsafe.Pointer(nil)
26 | if paths != nil {
27 | var pathsPtr []*byte
28 | if pathsPtr, err = syscall.SlicePtrFromStrings(paths); err != nil {
29 | return err
30 | }
31 | pathsUnsafe = unsafe.Pointer(&pathsPtr[0])
32 | }
33 | _, _, e := syscall.Syscall(SYS_PLEDGE, uintptr(promisesUnsafe), uintptr(pathsUnsafe), 0)
34 | if e != 0 {
35 | return e
36 | }
37 | return nil
38 | }
39 |
--------------------------------------------------------------------------------
/vendor/github.com/labstack/echo/log.go:
--------------------------------------------------------------------------------
1 | package echo
2 |
3 | import (
4 | "io"
5 |
6 | "github.com/labstack/gommon/log"
7 | )
8 |
9 | type (
10 | // Logger defines the logging interface.
11 | Logger interface {
12 | Output() io.Writer
13 | SetOutput(w io.Writer)
14 | Prefix() string
15 | SetPrefix(p string)
16 | Level() log.Lvl
17 | SetLevel(v log.Lvl)
18 | Print(i ...interface{})
19 | Printf(format string, args ...interface{})
20 | Printj(j log.JSON)
21 | Debug(i ...interface{})
22 | Debugf(format string, args ...interface{})
23 | Debugj(j log.JSON)
24 | Info(i ...interface{})
25 | Infof(format string, args ...interface{})
26 | Infoj(j log.JSON)
27 | Warn(i ...interface{})
28 | Warnf(format string, args ...interface{})
29 | Warnj(j log.JSON)
30 | Error(i ...interface{})
31 | Errorf(format string, args ...interface{})
32 | Errorj(j log.JSON)
33 | Fatal(i ...interface{})
34 | Fatalj(j log.JSON)
35 | Fatalf(format string, args ...interface{})
36 | Panic(i ...interface{})
37 | Panicj(j log.JSON)
38 | Panicf(format string, args ...interface{})
39 | }
40 | )
41 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/crypto/chacha20poly1305/internal/chacha20/chacha_test.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 | package chacha20
6 |
7 | import (
8 | "encoding/hex"
9 | "testing"
10 | )
11 |
12 | func TestCore(t *testing.T) {
13 | // This is just a smoke test that checks the example from
14 | // https://tools.ietf.org/html/rfc7539#section-2.3.2. The
15 | // chacha20poly1305 package contains much more extensive tests of this
16 | // code.
17 | var key [32]byte
18 | for i := range key {
19 | key[i] = byte(i)
20 | }
21 |
22 | var input [16]byte
23 | input[0] = 1
24 | input[7] = 9
25 | input[11] = 0x4a
26 |
27 | var out [64]byte
28 | XORKeyStream(out[:], out[:], &input, &key)
29 | const expected = "10f1e7e4d13b5915500fdd1fa32071c4c7d1f4c733c068030422aa9ac3d46c4ed2826446079faa0914c2d705d98b02a2b5129cd1de164eb9cbd083e8a2503c4e"
30 | if result := hex.EncodeToString(out[:]); result != expected {
31 | t.Errorf("wanted %x but got %x", expected, result)
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/vendor/github.com/Sirupsen/logrus/hooks/test/test_test.go:
--------------------------------------------------------------------------------
1 | package test
2 |
3 | import (
4 | "testing"
5 |
6 | "github.com/sirupsen/logrus"
7 | "github.com/stretchr/testify/assert"
8 | )
9 |
10 | func TestAllHooks(t *testing.T) {
11 |
12 | assert := assert.New(t)
13 |
14 | logger, hook := NewNullLogger()
15 | assert.Nil(hook.LastEntry())
16 | assert.Equal(0, len(hook.Entries))
17 |
18 | logger.Error("Hello error")
19 | assert.Equal(logrus.ErrorLevel, hook.LastEntry().Level)
20 | assert.Equal("Hello error", hook.LastEntry().Message)
21 | assert.Equal(1, len(hook.Entries))
22 |
23 | logger.Warn("Hello warning")
24 | assert.Equal(logrus.WarnLevel, hook.LastEntry().Level)
25 | assert.Equal("Hello warning", hook.LastEntry().Message)
26 | assert.Equal(2, len(hook.Entries))
27 |
28 | hook.Reset()
29 | assert.Nil(hook.LastEntry())
30 | assert.Equal(0, len(hook.Entries))
31 |
32 | hook = NewGlobal()
33 |
34 | logrus.Error("Hello error")
35 | assert.Equal(logrus.ErrorLevel, hook.LastEntry().Level)
36 | assert.Equal("Hello error", hook.LastEntry().Message)
37 | assert.Equal(1, len(hook.Entries))
38 |
39 | }
40 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/crypto/openpgp/packet/compressed_test.go:
--------------------------------------------------------------------------------
1 | // Copyright 2011 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 packet
6 |
7 | import (
8 | "bytes"
9 | "encoding/hex"
10 | "io"
11 | "io/ioutil"
12 | "testing"
13 | )
14 |
15 | func TestCompressed(t *testing.T) {
16 | packet, err := Read(readerFromHex(compressedHex))
17 | if err != nil {
18 | t.Errorf("failed to read Compressed: %s", err)
19 | return
20 | }
21 |
22 | c, ok := packet.(*Compressed)
23 | if !ok {
24 | t.Error("didn't find Compressed packet")
25 | return
26 | }
27 |
28 | contents, err := ioutil.ReadAll(c.Body)
29 | if err != nil && err != io.EOF {
30 | t.Error(err)
31 | return
32 | }
33 |
34 | expected, _ := hex.DecodeString(compressedExpectedHex)
35 | if !bytes.Equal(expected, contents) {
36 | t.Errorf("got:%x want:%x", contents, expected)
37 | }
38 | }
39 |
40 | const compressedHex = "a3013b2d90c4e02b72e25f727e5e496a5e49b11e1700"
41 | const compressedExpectedHex = "cb1062004d14c8fe636f6e74656e74732e0a"
42 |
--------------------------------------------------------------------------------
/vendor/github.com/labstack/echo/middleware/body_dump_test.go:
--------------------------------------------------------------------------------
1 | package middleware
2 |
3 | import (
4 | "io/ioutil"
5 | "net/http"
6 | "net/http/httptest"
7 | "strings"
8 | "testing"
9 |
10 | "github.com/labstack/echo"
11 | "github.com/stretchr/testify/assert"
12 | )
13 |
14 | func TestBodyDump(t *testing.T) {
15 | e := echo.New()
16 | hw := "Hello, World!"
17 | req := httptest.NewRequest(echo.POST, "/", strings.NewReader(hw))
18 | rec := httptest.NewRecorder()
19 | c := e.NewContext(req, rec)
20 | h := func(c echo.Context) error {
21 | body, err := ioutil.ReadAll(c.Request().Body)
22 | if err != nil {
23 | return err
24 | }
25 | return c.String(http.StatusOK, string(body))
26 | }
27 |
28 | requestBody := ""
29 | responseBody := ""
30 | mw := BodyDump(func(c echo.Context, reqBody, resBody []byte) {
31 | requestBody = string(reqBody)
32 | responseBody = string(resBody)
33 | })
34 | if assert.NoError(t, mw(h)(c)) {
35 | assert.Equal(t, requestBody, hw)
36 | assert.Equal(t, responseBody, hw)
37 | assert.Equal(t, http.StatusOK, rec.Code)
38 | assert.Equal(t, hw, rec.Body.String())
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/vendor/github.com/jinzhu/gorm/utils_test.go:
--------------------------------------------------------------------------------
1 | package gorm_test
2 |
3 | import (
4 | "testing"
5 |
6 | "github.com/jinzhu/gorm"
7 | )
8 |
9 | func TestToDBNameGenerateFriendlyName(t *testing.T) {
10 | var maps = map[string]string{
11 | "": "",
12 | "ThisIsATest": "this_is_a_test",
13 | "PFAndESI": "pf_and_esi",
14 | "AbcAndJkl": "abc_and_jkl",
15 | "EmployeeID": "employee_id",
16 | "SKU_ID": "sku_id",
17 | "HTTPAndSMTP": "http_and_smtp",
18 | "HTTPServerHandlerForURLID": "http_server_handler_for_url_id",
19 | "UUID": "uuid",
20 | "HTTPURL": "http_url",
21 | "HTTP_URL": "http_url",
22 | "ThisIsActuallyATestSoWeMayBeAbleToUseThisCodeInGormPackageAlsoIdCanBeUsedAtTheEndAsID": "this_is_actually_a_test_so_we_may_be_able_to_use_this_code_in_gorm_package_also_id_can_be_used_at_the_end_as_id",
23 | }
24 |
25 | for key, value := range maps {
26 | if gorm.ToDBName(key) != value {
27 | t.Errorf("%v ToDBName should equal %v, but got %v", key, value, gorm.ToDBName(key))
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2017 gocw
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/vendor/github.com/Sirupsen/logrus/hooks/syslog/README.md:
--------------------------------------------------------------------------------
1 | # Syslog Hooks for Logrus
2 |
3 | ## Usage
4 |
5 | ```go
6 | import (
7 | "log/syslog"
8 | "github.com/sirupsen/logrus"
9 | lSyslog "github.com/sirupsen/logrus/hooks/syslog"
10 | )
11 |
12 | func main() {
13 | log := logrus.New()
14 | hook, err := lSyslog.NewSyslogHook("udp", "localhost:514", syslog.LOG_INFO, "")
15 |
16 | if err == nil {
17 | log.Hooks.Add(hook)
18 | }
19 | }
20 | ```
21 |
22 | If you want to connect to local syslog (Ex. "/dev/log" or "/var/run/syslog" or "/var/run/log"). Just assign empty string to the first two parameters of `NewSyslogHook`. It should look like the following.
23 |
24 | ```go
25 | import (
26 | "log/syslog"
27 | "github.com/sirupsen/logrus"
28 | lSyslog "github.com/sirupsen/logrus/hooks/syslog"
29 | )
30 |
31 | func main() {
32 | log := logrus.New()
33 | hook, err := lSyslog.NewSyslogHook("", "", syslog.LOG_INFO, "")
34 |
35 | if err == nil {
36 | log.Hooks.Add(hook)
37 | }
38 | }
39 | ```
40 |
--------------------------------------------------------------------------------
/vendor/github.com/mattn/go-isatty/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) Yasuhiro MATSUMOTO
2 |
3 | MIT License (Expat)
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6 |
7 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8 |
9 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
10 |
--------------------------------------------------------------------------------
/config.go:
--------------------------------------------------------------------------------
1 | package main
2 |
3 | import (
4 | "github.com/Sirupsen/logrus"
5 | "github.com/koding/multiconfig"
6 | "github.com/joho/godotenv"
7 | )
8 |
9 | // Config 配置结构体
10 | type Config struct {
11 | DB string `default:"mysql"`
12 | DBURL string `default:"localhost"`
13 | Debug bool `default:"true"`
14 | }
15 |
16 | var config Config
17 |
18 | // initConfig 初始化config
19 | func initConfig() {
20 | //获取.env文件
21 | err := godotenv.Overload()
22 | if err != nil {
23 | logrus.Infof("Error loading .env file: %+v", err)
24 | }
25 | //读取config default值
26 | m := multiconfig.MultiLoader(
27 | &multiconfig.TagLoader{},
28 | &multiconfig.EnvironmentLoader{
29 | CamelCase: true,
30 | },
31 | )
32 | //载入全局变量config
33 | m.Load(&config)
34 | logrus.Info(config)
35 | //设置日志等级
36 | if config.Debug {
37 | logrus.SetFormatter(&logrus.TextFormatter{
38 | FullTimestamp: true,
39 | TimestampFormat: "06-01-02 15:04:05.00",
40 | })
41 | logrus.SetLevel(logrus.DebugLevel)
42 | } else {
43 | logrus.SetFormatter(&logrus.JSONFormatter{
44 | TimestampFormat: "06-01-02 15:04:05.00",
45 | })
46 | logrus.SetLevel(logrus.InfoLevel)
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/vendor/github.com/jinzhu/gorm/dialects/postgres/postgres.go:
--------------------------------------------------------------------------------
1 | package postgres
2 |
3 | import (
4 | "database/sql"
5 | "database/sql/driver"
6 |
7 | _ "github.com/lib/pq"
8 | "github.com/lib/pq/hstore"
9 | )
10 |
11 | type Hstore map[string]*string
12 |
13 | // Value get value of Hstore
14 | func (h Hstore) Value() (driver.Value, error) {
15 | hstore := hstore.Hstore{Map: map[string]sql.NullString{}}
16 | if len(h) == 0 {
17 | return nil, nil
18 | }
19 |
20 | for key, value := range h {
21 | var s sql.NullString
22 | if value != nil {
23 | s.String = *value
24 | s.Valid = true
25 | }
26 | hstore.Map[key] = s
27 | }
28 | return hstore.Value()
29 | }
30 |
31 | // Scan scan value into Hstore
32 | func (h *Hstore) Scan(value interface{}) error {
33 | hstore := hstore.Hstore{}
34 |
35 | if err := hstore.Scan(value); err != nil {
36 | return err
37 | }
38 |
39 | if len(hstore.Map) == 0 {
40 | return nil
41 | }
42 |
43 | *h = Hstore{}
44 | for k := range hstore.Map {
45 | if hstore.Map[k].Valid {
46 | s := hstore.Map[k].String
47 | (*h)[k] = &s
48 | } else {
49 | (*h)[k] = nil
50 | }
51 | }
52 |
53 | return nil
54 | }
55 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/crypto/curve25519/doc.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 | // Package curve25519 provides an implementation of scalar multiplication on
6 | // the elliptic curve known as curve25519. See https://cr.yp.to/ecdh.html
7 | package curve25519 // import "golang.org/x/crypto/curve25519"
8 |
9 | // basePoint is the x coordinate of the generator of the curve.
10 | var basePoint = [32]byte{9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
11 |
12 | // ScalarMult sets dst to the product in*base where dst and base are the x
13 | // coordinates of group points and all values are in little-endian form.
14 | func ScalarMult(dst, in, base *[32]byte) {
15 | scalarMult(dst, in, base)
16 | }
17 |
18 | // ScalarBaseMult sets dst to the product in*base where dst and base are the x
19 | // coordinates of group points, base is the standard generator and all values
20 | // are in little-endian form.
21 | func ScalarBaseMult(dst, in *[32]byte) {
22 | ScalarMult(dst, in, &basePoint)
23 | }
24 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/dev_freebsd.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 | // Functions to access/create device major and minor numbers matching the
6 | // encoding used in FreeBSD's sys/types.h header.
7 | //
8 | // The information below is extracted and adapted from sys/types.h:
9 | //
10 | // Minor gives a cookie instead of an index since in order to avoid changing the
11 | // meanings of bits 0-15 or wasting time and space shifting bits 16-31 for
12 | // devices that don't use them.
13 |
14 | package unix
15 |
16 | // Major returns the major component of a FreeBSD device number.
17 | func Major(dev uint64) uint32 {
18 | return uint32((dev >> 8) & 0xff)
19 | }
20 |
21 | // Minor returns the minor component of a FreeBSD device number.
22 | func Minor(dev uint64) uint32 {
23 | return uint32(dev & 0xffff00ff)
24 | }
25 |
26 | // Mkdev returns a FreeBSD device number generated from the given major and
27 | // minor components.
28 | func Mkdev(major, minor uint32) uint64 {
29 | return (uint64(major) << 8) | uint64(minor)
30 | }
31 |
--------------------------------------------------------------------------------
/vendor/github.com/fatih/structs/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2014 Fatih Arslan
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
--------------------------------------------------------------------------------
/vendor/github.com/labstack/gommon/random/random.go:
--------------------------------------------------------------------------------
1 | package random
2 |
3 | import (
4 | "math/rand"
5 | "strings"
6 | "time"
7 | )
8 |
9 | type (
10 | Random struct {
11 | }
12 | )
13 |
14 | // Charsets
15 | const (
16 | Uppercase string = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
17 | Lowercase = "abcdefghijklmnopqrstuvwxyz"
18 | Alphabetic = Uppercase + Lowercase
19 | Numeric = "0123456789"
20 | Alphanumeric = Alphabetic + Numeric
21 | Symbols = "`" + `~!@#$%^&*()-_+={}[]|\;:"<>,./?`
22 | Hex = Numeric + "abcdef"
23 | )
24 |
25 | var (
26 | global = New()
27 | )
28 |
29 | func New() *Random {
30 | rand.Seed(time.Now().UnixNano())
31 | return new(Random)
32 | }
33 |
34 | func (r *Random) String(length uint8, charsets ...string) string {
35 | charset := strings.Join(charsets, "")
36 | if charset == "" {
37 | charset = Alphanumeric
38 | }
39 | b := make([]byte, length)
40 | for i := range b {
41 | b[i] = charset[rand.Int63()%int64(len(charset))]
42 | }
43 | return string(b)
44 | }
45 |
46 | func String(length uint8, charsets ...string) string {
47 | return global.String(length, charsets...)
48 | }
49 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/crypto/ssh/agent/example_test.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 | package agent_test
6 |
7 | import (
8 | "log"
9 | "net"
10 | "os"
11 |
12 | "golang.org/x/crypto/ssh"
13 | "golang.org/x/crypto/ssh/agent"
14 | )
15 |
16 | func ExampleClientAgent() {
17 | // ssh-agent has a UNIX socket under $SSH_AUTH_SOCK
18 | socket := os.Getenv("SSH_AUTH_SOCK")
19 | conn, err := net.Dial("unix", socket)
20 | if err != nil {
21 | log.Fatalf("net.Dial: %v", err)
22 | }
23 | agentClient := agent.NewClient(conn)
24 | config := &ssh.ClientConfig{
25 | User: "username",
26 | Auth: []ssh.AuthMethod{
27 | // Use a callback rather than PublicKeys
28 | // so we only consult the agent once the remote server
29 | // wants it.
30 | ssh.PublicKeysCallback(agentClient.Signers),
31 | },
32 | HostKeyCallback: ssh.InsecureIgnoreHostKey(),
33 | }
34 |
35 | sshc, err := ssh.Dial("tcp", "localhost:22", config)
36 | if err != nil {
37 | log.Fatalf("Dial: %v", err)
38 | }
39 | // .. use sshc
40 | sshc.Close()
41 | }
42 |
--------------------------------------------------------------------------------
/vendor/github.com/labstack/echo/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2017 LabStack
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/crypto/blake2s/blake2s_amd64.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,!gccgo,!appengine
6 |
7 | package blake2s
8 |
9 | var (
10 | useSSE4 = supportSSE4()
11 | useSSSE3 = supportSSSE3()
12 | useSSE2 = true // Always available on amd64
13 | )
14 |
15 | //go:noescape
16 | func supportSSSE3() bool
17 |
18 | //go:noescape
19 | func supportSSE4() bool
20 |
21 | //go:noescape
22 | func hashBlocksSSE2(h *[8]uint32, c *[2]uint32, flag uint32, blocks []byte)
23 |
24 | //go:noescape
25 | func hashBlocksSSSE3(h *[8]uint32, c *[2]uint32, flag uint32, blocks []byte)
26 |
27 | //go:noescape
28 | func hashBlocksSSE4(h *[8]uint32, c *[2]uint32, flag uint32, blocks []byte)
29 |
30 | func hashBlocks(h *[8]uint32, c *[2]uint32, flag uint32, blocks []byte) {
31 | if useSSE4 {
32 | hashBlocksSSE4(h, c, flag, blocks)
33 | } else if useSSSE3 {
34 | hashBlocksSSSE3(h, c, flag, blocks)
35 | } else if useSSE2 {
36 | hashBlocksSSE2(h, c, flag, blocks)
37 | } else {
38 | hashBlocksGeneric(h, c, flag, blocks)
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/vendor/github.com/fatih/camelcase/LICENSE.md:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2015 Fatih Arslan
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy of
6 | this software and associated documentation files (the "Software"), to deal in
7 | the Software without restriction, including without limitation the rights to
8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9 | the Software, and to permit persons to whom the Software is furnished to do so,
10 | subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 |
--------------------------------------------------------------------------------
/vendor/github.com/jinzhu/inflection/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2015 - Jinzhu
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/vendor/github.com/joho/godotenv/LICENCE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2013 John Barton
2 |
3 | MIT License
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining
6 | a copy of this software and associated documentation files (the
7 | "Software"), to deal in the Software without restriction, including
8 | without limitation the rights to use, copy, modify, merge, publish,
9 | distribute, sublicense, and/or sell copies of the Software, and to
10 | permit persons to whom the Software is furnished to do so, subject to
11 | the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be
14 | included in all copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 |
24 |
--------------------------------------------------------------------------------
/vendor/github.com/labstack/gommon/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2015 labstack
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
23 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | # Contributing to Go
2 |
3 | Go is an open source project.
4 |
5 | It is the work of hundreds of contributors. We appreciate your help!
6 |
7 |
8 | ## Filing issues
9 |
10 | When [filing an issue](https://golang.org/issue/new), make sure to answer these five questions:
11 |
12 | 1. What version of Go are you using (`go version`)?
13 | 2. What operating system and processor architecture are you using?
14 | 3. What did you do?
15 | 4. What did you expect to see?
16 | 5. What did you see instead?
17 |
18 | General questions should go to the [golang-nuts mailing list](https://groups.google.com/group/golang-nuts) instead of the issue tracker.
19 | The gophers there will answer or ask you to file an issue if you've tripped over a bug.
20 |
21 | ## Contributing code
22 |
23 | Please read the [Contribution Guidelines](https://golang.org/doc/contribute.html)
24 | before sending patches.
25 |
26 | **We do not accept GitHub pull requests**
27 | (we use [Gerrit](https://code.google.com/p/gerrit/) instead for code review).
28 |
29 | Unless otherwise noted, the Go source files are distributed under
30 | the BSD-style license found in the LICENSE file.
31 |
32 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/dev_dragonfly.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 | // Functions to access/create device major and minor numbers matching the
6 | // encoding used in Dragonfly's sys/types.h header.
7 | //
8 | // The information below is extracted and adapted from sys/types.h:
9 | //
10 | // Minor gives a cookie instead of an index since in order to avoid changing the
11 | // meanings of bits 0-15 or wasting time and space shifting bits 16-31 for
12 | // devices that don't use them.
13 |
14 | package unix
15 |
16 | // Major returns the major component of a DragonFlyBSD device number.
17 | func Major(dev uint64) uint32 {
18 | return uint32((dev >> 8) & 0xff)
19 | }
20 |
21 | // Minor returns the minor component of a DragonFlyBSD device number.
22 | func Minor(dev uint64) uint32 {
23 | return uint32(dev & 0xffff00ff)
24 | }
25 |
26 | // Mkdev returns a DragonFlyBSD device number generated from the given major and
27 | // minor components.
28 | func Mkdev(major, minor uint32) uint64 {
29 | return (uint64(major) << 8) | uint64(minor)
30 | }
31 |
--------------------------------------------------------------------------------