From dbeba1e5c5c0bc534a515eb298ee4f1d49df4d20 Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Fri, 5 Oct 2018 10:06:54 -0700 Subject: update vendor --- go.mod | 11 + go.sum | 22 + vendor/github.com/aclements/go-moremath/LICENSE | 27 + .../github.com/aclements/go-moremath/mathx/beta.go | 93 ++ .../aclements/go-moremath/mathx/choose.go | 62 ++ .../aclements/go-moremath/mathx/gamma.go | 96 ++ .../aclements/go-moremath/mathx/package.go | 11 + .../github.com/aclements/go-moremath/mathx/sign.go | 18 + vendor/github.com/dgryski/go-failure/README | 5 + vendor/github.com/dgryski/go-failure/failure.go | 73 ++ vendor/github.com/dgryski/go-onlinestats/LICENSE | 21 + vendor/github.com/dgryski/go-onlinestats/basics.go | 54 + vendor/github.com/dgryski/go-onlinestats/dea.go | 54 + .../github.com/dgryski/go-onlinestats/expweight.go | 48 + vendor/github.com/dgryski/go-onlinestats/kstest.go | 95 ++ .../github.com/dgryski/go-onlinestats/pearson.go | 35 + .../github.com/dgryski/go-onlinestats/reservoir.go | 76 ++ .../github.com/dgryski/go-onlinestats/spearman.go | 84 ++ vendor/github.com/dgryski/go-onlinestats/stats.go | 137 +++ vendor/github.com/dgryski/go-onlinestats/swilk.go | 424 ++++++++ vendor/github.com/dgryski/go-onlinestats/ttest.go | 85 ++ vendor/github.com/dgryski/go-onlinestats/tukey.go | 27 + vendor/github.com/dgryski/go-onlinestats/utest.go | 71 ++ .../github.com/dgryski/go-onlinestats/windexp.go | 72 ++ vendor/github.com/dgryski/go-onlinestats/window.go | 86 ++ vendor/github.com/google/uuid/.travis.yml | 9 + vendor/github.com/google/uuid/CONTRIBUTING.md | 10 + vendor/github.com/google/uuid/CONTRIBUTORS | 9 + vendor/github.com/google/uuid/LICENSE | 27 + vendor/github.com/google/uuid/README.md | 19 + vendor/github.com/google/uuid/dce.go | 80 ++ vendor/github.com/google/uuid/doc.go | 12 + vendor/github.com/google/uuid/hash.go | 53 + vendor/github.com/google/uuid/marshal.go | 37 + vendor/github.com/google/uuid/node.go | 89 ++ vendor/github.com/google/uuid/node_js.go | 12 + vendor/github.com/google/uuid/node_net.go | 33 + vendor/github.com/google/uuid/sql.go | 59 ++ vendor/github.com/google/uuid/time.go | 123 +++ vendor/github.com/google/uuid/util.go | 43 + vendor/github.com/google/uuid/uuid.go | 198 ++++ vendor/github.com/google/uuid/version1.go | 44 + vendor/github.com/google/uuid/version4.go | 38 + vendor/github.com/klauspost/cpuid/.gitignore | 24 + vendor/github.com/klauspost/cpuid/.travis.yml | 23 + vendor/github.com/klauspost/cpuid/CONTRIBUTING.txt | 35 + vendor/github.com/klauspost/cpuid/LICENSE | 22 + vendor/github.com/klauspost/cpuid/README.md | 145 +++ vendor/github.com/klauspost/cpuid/cpuid.go | 1040 ++++++++++++++++++++ vendor/github.com/klauspost/cpuid/cpuid_386.s | 42 + vendor/github.com/klauspost/cpuid/cpuid_amd64.s | 42 + vendor/github.com/klauspost/cpuid/detect_intel.go | 17 + vendor/github.com/klauspost/cpuid/detect_ref.go | 23 + vendor/github.com/klauspost/cpuid/generate.go | 4 + vendor/github.com/klauspost/cpuid/private-gen.go | 476 +++++++++ vendor/github.com/klauspost/crc32/.gitignore | 24 + vendor/github.com/klauspost/crc32/.travis.yml | 13 + vendor/github.com/klauspost/crc32/LICENSE | 28 + vendor/github.com/klauspost/crc32/README.md | 92 ++ vendor/github.com/klauspost/crc32/crc32.go | 207 ++++ vendor/github.com/klauspost/crc32/crc32_amd64.go | 230 +++++ vendor/github.com/klauspost/crc32/crc32_amd64.s | 319 ++++++ .../github.com/klauspost/crc32/crc32_amd64p32.go | 43 + vendor/github.com/klauspost/crc32/crc32_amd64p32.s | 67 ++ vendor/github.com/klauspost/crc32/crc32_generic.go | 89 ++ .../github.com/klauspost/crc32/crc32_otherarch.go | 15 + vendor/github.com/klauspost/crc32/crc32_s390x.go | 91 ++ vendor/github.com/klauspost/crc32/crc32_s390x.s | 249 +++++ vendor/github.com/klauspost/reedsolomon/.gitignore | 26 + .../github.com/klauspost/reedsolomon/.travis.yml | 32 + vendor/github.com/klauspost/reedsolomon/LICENSE | 23 + vendor/github.com/klauspost/reedsolomon/README.md | 279 ++++++ .../github.com/klauspost/reedsolomon/appveyor.yml | 20 + vendor/github.com/klauspost/reedsolomon/galois.go | 902 +++++++++++++++++ .../klauspost/reedsolomon/galois_amd64.go | 91 ++ .../klauspost/reedsolomon/galois_amd64.s | 236 +++++ .../klauspost/reedsolomon/galois_arm64.go | 48 + .../klauspost/reedsolomon/galois_arm64.s | 141 +++ .../klauspost/reedsolomon/galois_noasm.go | 27 + .../github.com/klauspost/reedsolomon/gentables.go | 132 +++ .../klauspost/reedsolomon/inversion_tree.go | 160 +++ vendor/github.com/klauspost/reedsolomon/matrix.go | 279 ++++++ vendor/github.com/klauspost/reedsolomon/options.go | 111 +++ .../klauspost/reedsolomon/reedsolomon.go | 884 +++++++++++++++++ .../github.com/klauspost/reedsolomon/streaming.go | 584 +++++++++++ vendor/github.com/pborman/uuid/.travis.yml | 10 + vendor/github.com/pborman/uuid/CONTRIBUTING.md | 10 + vendor/github.com/pborman/uuid/CONTRIBUTORS | 1 + vendor/github.com/pborman/uuid/LICENSE | 27 + vendor/github.com/pborman/uuid/README.md | 15 + vendor/github.com/pborman/uuid/dce.go | 84 ++ vendor/github.com/pborman/uuid/doc.go | 13 + vendor/github.com/pborman/uuid/go.mod | 3 + vendor/github.com/pborman/uuid/go.sum | 2 + vendor/github.com/pborman/uuid/hash.go | 53 + vendor/github.com/pborman/uuid/marshal.go | 85 ++ vendor/github.com/pborman/uuid/node.go | 50 + vendor/github.com/pborman/uuid/sql.go | 68 ++ vendor/github.com/pborman/uuid/time.go | 57 ++ vendor/github.com/pborman/uuid/util.go | 32 + vendor/github.com/pborman/uuid/uuid.go | 162 +++ vendor/github.com/pborman/uuid/version1.go | 23 + vendor/github.com/pborman/uuid/version4.go | 26 + .../github.com/streamrail/concurrent-map/LICENSE | 22 + .../github.com/streamrail/concurrent-map/README.md | 53 + .../streamrail/concurrent-map/concurrent_map.go | 301 ++++++ vendor/github.com/xtaci/kcp-go/.gitignore | 24 + vendor/github.com/xtaci/kcp-go/.travis.yml | 15 + vendor/github.com/xtaci/kcp-go/LICENSE | 22 + vendor/github.com/xtaci/kcp-go/README.md | 92 ++ vendor/github.com/xtaci/kcp-go/crypt.go | 263 +++++ vendor/github.com/xtaci/kcp-go/donate.png | Bin 0 -> 4420 bytes vendor/github.com/xtaci/kcp-go/fec.go | 236 +++++ vendor/github.com/xtaci/kcp-go/frame.png | Bin 0 -> 8179 bytes vendor/github.com/xtaci/kcp-go/kcp.go | 978 ++++++++++++++++++ vendor/github.com/xtaci/kcp-go/sess.go | 936 ++++++++++++++++++ vendor/github.com/xtaci/kcp-go/shannon.jpg | Bin 0 -> 52964 bytes vendor/github.com/xtaci/kcp-go/snmp.go | 63 ++ vendor/github.com/xtaci/kcp-go/xor.go | 111 +++ vendor/github.com/xtaci/smux/.gitignore | 24 + vendor/github.com/xtaci/smux/.travis.yml | 15 + vendor/github.com/xtaci/smux/LICENSE | 21 + vendor/github.com/xtaci/smux/README.md | 99 ++ vendor/github.com/xtaci/smux/curve.jpg | Bin 0 -> 106626 bytes vendor/github.com/xtaci/smux/frame.go | 60 ++ vendor/github.com/xtaci/smux/mux.go | 80 ++ vendor/github.com/xtaci/smux/mux.jpg | Bin 0 -> 6199 bytes vendor/github.com/xtaci/smux/session.go | 350 +++++++ vendor/github.com/xtaci/smux/smux.png | Bin 0 -> 9891 bytes vendor/github.com/xtaci/smux/stream.go | 262 +++++ vendor/golang.org/x/crypto/blowfish/block.go | 159 +++ vendor/golang.org/x/crypto/blowfish/cipher.go | 91 ++ vendor/golang.org/x/crypto/blowfish/const.go | 199 ++++ vendor/golang.org/x/crypto/cast5/cast5.go | 526 ++++++++++ vendor/golang.org/x/crypto/pbkdf2/pbkdf2.go | 77 ++ vendor/golang.org/x/crypto/salsa20/salsa20.go | 58 ++ vendor/golang.org/x/crypto/tea/cipher.go | 108 ++ vendor/golang.org/x/crypto/twofish/twofish.go | 342 +++++++ vendor/golang.org/x/crypto/xtea/block.go | 66 ++ vendor/golang.org/x/crypto/xtea/cipher.go | 82 ++ vendor/golang.org/x/net/bpf/asm.go | 41 + vendor/golang.org/x/net/bpf/constants.go | 218 ++++ vendor/golang.org/x/net/bpf/doc.go | 82 ++ vendor/golang.org/x/net/bpf/instructions.go | 704 +++++++++++++ vendor/golang.org/x/net/bpf/setter.go | 10 + vendor/golang.org/x/net/bpf/vm.go | 140 +++ vendor/golang.org/x/net/bpf/vm_instructions.go | 174 ++++ vendor/golang.org/x/net/internal/iana/const.go | 223 +++++ vendor/golang.org/x/net/internal/iana/gen.go | 383 +++++++ vendor/golang.org/x/net/internal/socket/cmsghdr.go | 11 + .../x/net/internal/socket/cmsghdr_bsd.go | 13 + .../x/net/internal/socket/cmsghdr_linux_32bit.go | 14 + .../x/net/internal/socket/cmsghdr_linux_64bit.go | 14 + .../x/net/internal/socket/cmsghdr_solaris_64bit.go | 14 + .../x/net/internal/socket/cmsghdr_stub.go | 17 + .../x/net/internal/socket/defs_darwin.go | 44 + .../x/net/internal/socket/defs_dragonfly.go | 44 + .../x/net/internal/socket/defs_freebsd.go | 44 + .../golang.org/x/net/internal/socket/defs_linux.go | 49 + .../x/net/internal/socket/defs_netbsd.go | 47 + .../x/net/internal/socket/defs_openbsd.go | 44 + .../x/net/internal/socket/defs_solaris.go | 44 + .../golang.org/x/net/internal/socket/error_unix.go | 31 + .../x/net/internal/socket/error_windows.go | 26 + .../x/net/internal/socket/iovec_32bit.go | 19 + .../x/net/internal/socket/iovec_64bit.go | 19 + .../x/net/internal/socket/iovec_solaris_64bit.go | 19 + .../golang.org/x/net/internal/socket/iovec_stub.go | 11 + .../x/net/internal/socket/mmsghdr_stub.go | 21 + .../x/net/internal/socket/mmsghdr_unix.go | 42 + .../golang.org/x/net/internal/socket/msghdr_bsd.go | 39 + .../x/net/internal/socket/msghdr_bsdvar.go | 16 + .../x/net/internal/socket/msghdr_linux.go | 36 + .../x/net/internal/socket/msghdr_linux_32bit.go | 24 + .../x/net/internal/socket/msghdr_linux_64bit.go | 24 + .../x/net/internal/socket/msghdr_openbsd.go | 14 + .../x/net/internal/socket/msghdr_solaris_64bit.go | 36 + .../x/net/internal/socket/msghdr_stub.go | 14 + vendor/golang.org/x/net/internal/socket/rawconn.go | 66 ++ .../x/net/internal/socket/rawconn_mmsg.go | 74 ++ .../x/net/internal/socket/rawconn_msg.go | 77 ++ .../x/net/internal/socket/rawconn_nommsg.go | 18 + .../x/net/internal/socket/rawconn_nomsg.go | 18 + .../x/net/internal/socket/rawconn_stub.go | 25 + vendor/golang.org/x/net/internal/socket/reflect.go | 62 ++ vendor/golang.org/x/net/internal/socket/socket.go | 285 ++++++ vendor/golang.org/x/net/internal/socket/sys.go | 33 + vendor/golang.org/x/net/internal/socket/sys_bsd.go | 17 + .../golang.org/x/net/internal/socket/sys_bsdvar.go | 14 + .../golang.org/x/net/internal/socket/sys_darwin.go | 7 + .../x/net/internal/socket/sys_dragonfly.go | 7 + .../golang.org/x/net/internal/socket/sys_linux.go | 27 + .../x/net/internal/socket/sys_linux_386.go | 55 ++ .../x/net/internal/socket/sys_linux_386.s | 11 + .../x/net/internal/socket/sys_linux_amd64.go | 10 + .../x/net/internal/socket/sys_linux_arm.go | 10 + .../x/net/internal/socket/sys_linux_arm64.go | 10 + .../x/net/internal/socket/sys_linux_mips.go | 10 + .../x/net/internal/socket/sys_linux_mips64.go | 10 + .../x/net/internal/socket/sys_linux_mips64le.go | 10 + .../x/net/internal/socket/sys_linux_mipsle.go | 10 + .../x/net/internal/socket/sys_linux_ppc64.go | 10 + .../x/net/internal/socket/sys_linux_ppc64le.go | 10 + .../x/net/internal/socket/sys_linux_s390x.go | 55 ++ .../x/net/internal/socket/sys_linux_s390x.s | 11 + .../golang.org/x/net/internal/socket/sys_netbsd.go | 25 + .../golang.org/x/net/internal/socket/sys_posix.go | 168 ++++ .../x/net/internal/socket/sys_solaris.go | 71 ++ .../x/net/internal/socket/sys_solaris_amd64.s | 11 + .../golang.org/x/net/internal/socket/sys_stub.go | 64 ++ .../golang.org/x/net/internal/socket/sys_unix.go | 33 + .../x/net/internal/socket/sys_windows.go | 70 ++ .../x/net/internal/socket/zsys_darwin_386.go | 59 ++ .../x/net/internal/socket/zsys_darwin_amd64.go | 61 ++ .../x/net/internal/socket/zsys_darwin_arm.go | 59 ++ .../x/net/internal/socket/zsys_darwin_arm64.go | 61 ++ .../x/net/internal/socket/zsys_dragonfly_amd64.go | 61 ++ .../x/net/internal/socket/zsys_freebsd_386.go | 59 ++ .../x/net/internal/socket/zsys_freebsd_amd64.go | 61 ++ .../x/net/internal/socket/zsys_freebsd_arm.go | 59 ++ .../x/net/internal/socket/zsys_linux_386.go | 63 ++ .../x/net/internal/socket/zsys_linux_amd64.go | 66 ++ .../x/net/internal/socket/zsys_linux_arm.go | 63 ++ .../x/net/internal/socket/zsys_linux_arm64.go | 66 ++ .../x/net/internal/socket/zsys_linux_mips.go | 63 ++ .../x/net/internal/socket/zsys_linux_mips64.go | 66 ++ .../x/net/internal/socket/zsys_linux_mips64le.go | 66 ++ .../x/net/internal/socket/zsys_linux_mipsle.go | 63 ++ .../x/net/internal/socket/zsys_linux_ppc64.go | 66 ++ .../x/net/internal/socket/zsys_linux_ppc64le.go | 66 ++ .../x/net/internal/socket/zsys_linux_s390x.go | 66 ++ .../x/net/internal/socket/zsys_netbsd_386.go | 65 ++ .../x/net/internal/socket/zsys_netbsd_amd64.go | 68 ++ .../x/net/internal/socket/zsys_netbsd_arm.go | 65 ++ .../x/net/internal/socket/zsys_openbsd_386.go | 59 ++ .../x/net/internal/socket/zsys_openbsd_amd64.go | 61 ++ .../x/net/internal/socket/zsys_openbsd_arm.go | 59 ++ .../x/net/internal/socket/zsys_solaris_amd64.go | 60 ++ vendor/golang.org/x/net/ipv4/batch.go | 190 ++++ vendor/golang.org/x/net/ipv4/control.go | 144 +++ vendor/golang.org/x/net/ipv4/control_bsd.go | 40 + vendor/golang.org/x/net/ipv4/control_pktinfo.go | 39 + vendor/golang.org/x/net/ipv4/control_stub.go | 13 + vendor/golang.org/x/net/ipv4/control_unix.go | 73 ++ vendor/golang.org/x/net/ipv4/control_windows.go | 16 + vendor/golang.org/x/net/ipv4/defs_darwin.go | 77 ++ vendor/golang.org/x/net/ipv4/defs_dragonfly.go | 38 + vendor/golang.org/x/net/ipv4/defs_freebsd.go | 75 ++ vendor/golang.org/x/net/ipv4/defs_linux.go | 122 +++ vendor/golang.org/x/net/ipv4/defs_netbsd.go | 37 + vendor/golang.org/x/net/ipv4/defs_openbsd.go | 37 + vendor/golang.org/x/net/ipv4/defs_solaris.go | 84 ++ vendor/golang.org/x/net/ipv4/dgramopt.go | 264 +++++ vendor/golang.org/x/net/ipv4/doc.go | 244 +++++ vendor/golang.org/x/net/ipv4/endpoint.go | 186 ++++ vendor/golang.org/x/net/ipv4/gen.go | 199 ++++ vendor/golang.org/x/net/ipv4/genericopt.go | 55 ++ vendor/golang.org/x/net/ipv4/header.go | 170 ++++ vendor/golang.org/x/net/ipv4/helper.go | 64 ++ vendor/golang.org/x/net/ipv4/iana.go | 38 + vendor/golang.org/x/net/ipv4/icmp.go | 57 ++ vendor/golang.org/x/net/ipv4/icmp_linux.go | 25 + vendor/golang.org/x/net/ipv4/icmp_stub.go | 25 + vendor/golang.org/x/net/ipv4/packet.go | 68 ++ vendor/golang.org/x/net/ipv4/packet_go1_8.go | 56 ++ vendor/golang.org/x/net/ipv4/packet_go1_9.go | 67 ++ vendor/golang.org/x/net/ipv4/payload.go | 23 + vendor/golang.org/x/net/ipv4/payload_cmsg.go | 33 + vendor/golang.org/x/net/ipv4/payload_cmsg_go1_8.go | 59 ++ vendor/golang.org/x/net/ipv4/payload_cmsg_go1_9.go | 67 ++ vendor/golang.org/x/net/ipv4/payload_nocmsg.go | 39 + vendor/golang.org/x/net/ipv4/sockopt.go | 44 + vendor/golang.org/x/net/ipv4/sockopt_posix.go | 71 ++ vendor/golang.org/x/net/ipv4/sockopt_stub.go | 42 + vendor/golang.org/x/net/ipv4/sys_asmreq.go | 119 +++ vendor/golang.org/x/net/ipv4/sys_asmreq_stub.go | 25 + vendor/golang.org/x/net/ipv4/sys_asmreqn.go | 42 + vendor/golang.org/x/net/ipv4/sys_asmreqn_stub.go | 21 + vendor/golang.org/x/net/ipv4/sys_bpf.go | 23 + vendor/golang.org/x/net/ipv4/sys_bpf_stub.go | 16 + vendor/golang.org/x/net/ipv4/sys_bsd.go | 37 + vendor/golang.org/x/net/ipv4/sys_darwin.go | 93 ++ vendor/golang.org/x/net/ipv4/sys_dragonfly.go | 35 + vendor/golang.org/x/net/ipv4/sys_freebsd.go | 76 ++ vendor/golang.org/x/net/ipv4/sys_linux.go | 59 ++ vendor/golang.org/x/net/ipv4/sys_solaris.go | 57 ++ vendor/golang.org/x/net/ipv4/sys_ssmreq.go | 54 + vendor/golang.org/x/net/ipv4/sys_ssmreq_stub.go | 21 + vendor/golang.org/x/net/ipv4/sys_stub.go | 13 + vendor/golang.org/x/net/ipv4/sys_windows.go | 67 ++ vendor/golang.org/x/net/ipv4/zsys_darwin.go | 99 ++ vendor/golang.org/x/net/ipv4/zsys_dragonfly.go | 31 + vendor/golang.org/x/net/ipv4/zsys_freebsd_386.go | 93 ++ vendor/golang.org/x/net/ipv4/zsys_freebsd_amd64.go | 95 ++ vendor/golang.org/x/net/ipv4/zsys_freebsd_arm.go | 95 ++ vendor/golang.org/x/net/ipv4/zsys_linux_386.go | 148 +++ vendor/golang.org/x/net/ipv4/zsys_linux_amd64.go | 150 +++ vendor/golang.org/x/net/ipv4/zsys_linux_arm.go | 148 +++ vendor/golang.org/x/net/ipv4/zsys_linux_arm64.go | 150 +++ vendor/golang.org/x/net/ipv4/zsys_linux_mips.go | 148 +++ vendor/golang.org/x/net/ipv4/zsys_linux_mips64.go | 150 +++ .../golang.org/x/net/ipv4/zsys_linux_mips64le.go | 150 +++ vendor/golang.org/x/net/ipv4/zsys_linux_mipsle.go | 148 +++ vendor/golang.org/x/net/ipv4/zsys_linux_ppc.go | 148 +++ vendor/golang.org/x/net/ipv4/zsys_linux_ppc64.go | 150 +++ vendor/golang.org/x/net/ipv4/zsys_linux_ppc64le.go | 150 +++ vendor/golang.org/x/net/ipv4/zsys_linux_s390x.go | 150 +++ vendor/golang.org/x/net/ipv4/zsys_netbsd.go | 30 + vendor/golang.org/x/net/ipv4/zsys_openbsd.go | 30 + vendor/golang.org/x/net/ipv4/zsys_solaris.go | 100 ++ vendor/modules.txt | 35 +- 311 files changed, 28299 insertions(+), 1 deletion(-) create mode 100644 vendor/github.com/aclements/go-moremath/LICENSE create mode 100644 vendor/github.com/aclements/go-moremath/mathx/beta.go create mode 100644 vendor/github.com/aclements/go-moremath/mathx/choose.go create mode 100644 vendor/github.com/aclements/go-moremath/mathx/gamma.go create mode 100644 vendor/github.com/aclements/go-moremath/mathx/package.go create mode 100644 vendor/github.com/aclements/go-moremath/mathx/sign.go create mode 100644 vendor/github.com/dgryski/go-failure/README create mode 100644 vendor/github.com/dgryski/go-failure/failure.go create mode 100644 vendor/github.com/dgryski/go-onlinestats/LICENSE create mode 100644 vendor/github.com/dgryski/go-onlinestats/basics.go create mode 100644 vendor/github.com/dgryski/go-onlinestats/dea.go create mode 100644 vendor/github.com/dgryski/go-onlinestats/expweight.go create mode 100644 vendor/github.com/dgryski/go-onlinestats/kstest.go create mode 100644 vendor/github.com/dgryski/go-onlinestats/pearson.go create mode 100644 vendor/github.com/dgryski/go-onlinestats/reservoir.go create mode 100644 vendor/github.com/dgryski/go-onlinestats/spearman.go create mode 100644 vendor/github.com/dgryski/go-onlinestats/stats.go create mode 100644 vendor/github.com/dgryski/go-onlinestats/swilk.go create mode 100644 vendor/github.com/dgryski/go-onlinestats/ttest.go create mode 100644 vendor/github.com/dgryski/go-onlinestats/tukey.go create mode 100644 vendor/github.com/dgryski/go-onlinestats/utest.go create mode 100644 vendor/github.com/dgryski/go-onlinestats/windexp.go create mode 100644 vendor/github.com/dgryski/go-onlinestats/window.go create mode 100644 vendor/github.com/google/uuid/.travis.yml create mode 100644 vendor/github.com/google/uuid/CONTRIBUTING.md create mode 100644 vendor/github.com/google/uuid/CONTRIBUTORS create mode 100644 vendor/github.com/google/uuid/LICENSE create mode 100644 vendor/github.com/google/uuid/README.md create mode 100644 vendor/github.com/google/uuid/dce.go create mode 100644 vendor/github.com/google/uuid/doc.go create mode 100644 vendor/github.com/google/uuid/hash.go create mode 100644 vendor/github.com/google/uuid/marshal.go create mode 100644 vendor/github.com/google/uuid/node.go create mode 100644 vendor/github.com/google/uuid/node_js.go create mode 100644 vendor/github.com/google/uuid/node_net.go create mode 100644 vendor/github.com/google/uuid/sql.go create mode 100644 vendor/github.com/google/uuid/time.go create mode 100644 vendor/github.com/google/uuid/util.go create mode 100644 vendor/github.com/google/uuid/uuid.go create mode 100644 vendor/github.com/google/uuid/version1.go create mode 100644 vendor/github.com/google/uuid/version4.go create mode 100644 vendor/github.com/klauspost/cpuid/.gitignore create mode 100644 vendor/github.com/klauspost/cpuid/.travis.yml create mode 100644 vendor/github.com/klauspost/cpuid/CONTRIBUTING.txt create mode 100644 vendor/github.com/klauspost/cpuid/LICENSE create mode 100644 vendor/github.com/klauspost/cpuid/README.md create mode 100644 vendor/github.com/klauspost/cpuid/cpuid.go create mode 100644 vendor/github.com/klauspost/cpuid/cpuid_386.s create mode 100644 vendor/github.com/klauspost/cpuid/cpuid_amd64.s create mode 100644 vendor/github.com/klauspost/cpuid/detect_intel.go create mode 100644 vendor/github.com/klauspost/cpuid/detect_ref.go create mode 100644 vendor/github.com/klauspost/cpuid/generate.go create mode 100644 vendor/github.com/klauspost/cpuid/private-gen.go create mode 100644 vendor/github.com/klauspost/crc32/.gitignore create mode 100644 vendor/github.com/klauspost/crc32/.travis.yml create mode 100644 vendor/github.com/klauspost/crc32/LICENSE create mode 100644 vendor/github.com/klauspost/crc32/README.md create mode 100644 vendor/github.com/klauspost/crc32/crc32.go create mode 100644 vendor/github.com/klauspost/crc32/crc32_amd64.go create mode 100644 vendor/github.com/klauspost/crc32/crc32_amd64.s create mode 100644 vendor/github.com/klauspost/crc32/crc32_amd64p32.go create mode 100644 vendor/github.com/klauspost/crc32/crc32_amd64p32.s create mode 100644 vendor/github.com/klauspost/crc32/crc32_generic.go create mode 100644 vendor/github.com/klauspost/crc32/crc32_otherarch.go create mode 100644 vendor/github.com/klauspost/crc32/crc32_s390x.go create mode 100644 vendor/github.com/klauspost/crc32/crc32_s390x.s create mode 100644 vendor/github.com/klauspost/reedsolomon/.gitignore create mode 100644 vendor/github.com/klauspost/reedsolomon/.travis.yml create mode 100644 vendor/github.com/klauspost/reedsolomon/LICENSE create mode 100644 vendor/github.com/klauspost/reedsolomon/README.md create mode 100644 vendor/github.com/klauspost/reedsolomon/appveyor.yml create mode 100644 vendor/github.com/klauspost/reedsolomon/galois.go create mode 100644 vendor/github.com/klauspost/reedsolomon/galois_amd64.go create mode 100644 vendor/github.com/klauspost/reedsolomon/galois_amd64.s create mode 100644 vendor/github.com/klauspost/reedsolomon/galois_arm64.go create mode 100644 vendor/github.com/klauspost/reedsolomon/galois_arm64.s create mode 100644 vendor/github.com/klauspost/reedsolomon/galois_noasm.go create mode 100644 vendor/github.com/klauspost/reedsolomon/gentables.go create mode 100644 vendor/github.com/klauspost/reedsolomon/inversion_tree.go create mode 100644 vendor/github.com/klauspost/reedsolomon/matrix.go create mode 100644 vendor/github.com/klauspost/reedsolomon/options.go create mode 100644 vendor/github.com/klauspost/reedsolomon/reedsolomon.go create mode 100644 vendor/github.com/klauspost/reedsolomon/streaming.go create mode 100644 vendor/github.com/pborman/uuid/.travis.yml create mode 100644 vendor/github.com/pborman/uuid/CONTRIBUTING.md create mode 100644 vendor/github.com/pborman/uuid/CONTRIBUTORS create mode 100644 vendor/github.com/pborman/uuid/LICENSE create mode 100644 vendor/github.com/pborman/uuid/README.md create mode 100644 vendor/github.com/pborman/uuid/dce.go create mode 100644 vendor/github.com/pborman/uuid/doc.go create mode 100644 vendor/github.com/pborman/uuid/go.mod create mode 100644 vendor/github.com/pborman/uuid/go.sum create mode 100644 vendor/github.com/pborman/uuid/hash.go create mode 100644 vendor/github.com/pborman/uuid/marshal.go create mode 100644 vendor/github.com/pborman/uuid/node.go create mode 100644 vendor/github.com/pborman/uuid/sql.go create mode 100644 vendor/github.com/pborman/uuid/time.go create mode 100644 vendor/github.com/pborman/uuid/util.go create mode 100644 vendor/github.com/pborman/uuid/uuid.go create mode 100644 vendor/github.com/pborman/uuid/version1.go create mode 100644 vendor/github.com/pborman/uuid/version4.go create mode 100644 vendor/github.com/streamrail/concurrent-map/LICENSE create mode 100644 vendor/github.com/streamrail/concurrent-map/README.md create mode 100644 vendor/github.com/streamrail/concurrent-map/concurrent_map.go create mode 100644 vendor/github.com/xtaci/kcp-go/.gitignore create mode 100644 vendor/github.com/xtaci/kcp-go/.travis.yml create mode 100644 vendor/github.com/xtaci/kcp-go/LICENSE create mode 100644 vendor/github.com/xtaci/kcp-go/README.md create mode 100644 vendor/github.com/xtaci/kcp-go/crypt.go create mode 100644 vendor/github.com/xtaci/kcp-go/donate.png create mode 100644 vendor/github.com/xtaci/kcp-go/fec.go create mode 100644 vendor/github.com/xtaci/kcp-go/frame.png create mode 100644 vendor/github.com/xtaci/kcp-go/kcp.go create mode 100644 vendor/github.com/xtaci/kcp-go/sess.go create mode 100644 vendor/github.com/xtaci/kcp-go/shannon.jpg create mode 100644 vendor/github.com/xtaci/kcp-go/snmp.go create mode 100644 vendor/github.com/xtaci/kcp-go/xor.go create mode 100644 vendor/github.com/xtaci/smux/.gitignore create mode 100644 vendor/github.com/xtaci/smux/.travis.yml create mode 100644 vendor/github.com/xtaci/smux/LICENSE create mode 100644 vendor/github.com/xtaci/smux/README.md create mode 100644 vendor/github.com/xtaci/smux/curve.jpg create mode 100644 vendor/github.com/xtaci/smux/frame.go create mode 100644 vendor/github.com/xtaci/smux/mux.go create mode 100644 vendor/github.com/xtaci/smux/mux.jpg create mode 100644 vendor/github.com/xtaci/smux/session.go create mode 100644 vendor/github.com/xtaci/smux/smux.png create mode 100644 vendor/github.com/xtaci/smux/stream.go create mode 100644 vendor/golang.org/x/crypto/blowfish/block.go create mode 100644 vendor/golang.org/x/crypto/blowfish/cipher.go create mode 100644 vendor/golang.org/x/crypto/blowfish/const.go create mode 100644 vendor/golang.org/x/crypto/cast5/cast5.go create mode 100644 vendor/golang.org/x/crypto/pbkdf2/pbkdf2.go create mode 100644 vendor/golang.org/x/crypto/salsa20/salsa20.go create mode 100644 vendor/golang.org/x/crypto/tea/cipher.go create mode 100644 vendor/golang.org/x/crypto/twofish/twofish.go create mode 100644 vendor/golang.org/x/crypto/xtea/block.go create mode 100644 vendor/golang.org/x/crypto/xtea/cipher.go create mode 100644 vendor/golang.org/x/net/bpf/asm.go create mode 100644 vendor/golang.org/x/net/bpf/constants.go create mode 100644 vendor/golang.org/x/net/bpf/doc.go create mode 100644 vendor/golang.org/x/net/bpf/instructions.go create mode 100644 vendor/golang.org/x/net/bpf/setter.go create mode 100644 vendor/golang.org/x/net/bpf/vm.go create mode 100644 vendor/golang.org/x/net/bpf/vm_instructions.go create mode 100644 vendor/golang.org/x/net/internal/iana/const.go create mode 100644 vendor/golang.org/x/net/internal/iana/gen.go create mode 100644 vendor/golang.org/x/net/internal/socket/cmsghdr.go create mode 100644 vendor/golang.org/x/net/internal/socket/cmsghdr_bsd.go create mode 100644 vendor/golang.org/x/net/internal/socket/cmsghdr_linux_32bit.go create mode 100644 vendor/golang.org/x/net/internal/socket/cmsghdr_linux_64bit.go create mode 100644 vendor/golang.org/x/net/internal/socket/cmsghdr_solaris_64bit.go create mode 100644 vendor/golang.org/x/net/internal/socket/cmsghdr_stub.go create mode 100644 vendor/golang.org/x/net/internal/socket/defs_darwin.go create mode 100644 vendor/golang.org/x/net/internal/socket/defs_dragonfly.go create mode 100644 vendor/golang.org/x/net/internal/socket/defs_freebsd.go create mode 100644 vendor/golang.org/x/net/internal/socket/defs_linux.go create mode 100644 vendor/golang.org/x/net/internal/socket/defs_netbsd.go create mode 100644 vendor/golang.org/x/net/internal/socket/defs_openbsd.go create mode 100644 vendor/golang.org/x/net/internal/socket/defs_solaris.go create mode 100644 vendor/golang.org/x/net/internal/socket/error_unix.go create mode 100644 vendor/golang.org/x/net/internal/socket/error_windows.go create mode 100644 vendor/golang.org/x/net/internal/socket/iovec_32bit.go create mode 100644 vendor/golang.org/x/net/internal/socket/iovec_64bit.go create mode 100644 vendor/golang.org/x/net/internal/socket/iovec_solaris_64bit.go create mode 100644 vendor/golang.org/x/net/internal/socket/iovec_stub.go create mode 100644 vendor/golang.org/x/net/internal/socket/mmsghdr_stub.go create mode 100644 vendor/golang.org/x/net/internal/socket/mmsghdr_unix.go create mode 100644 vendor/golang.org/x/net/internal/socket/msghdr_bsd.go create mode 100644 vendor/golang.org/x/net/internal/socket/msghdr_bsdvar.go create mode 100644 vendor/golang.org/x/net/internal/socket/msghdr_linux.go create mode 100644 vendor/golang.org/x/net/internal/socket/msghdr_linux_32bit.go create mode 100644 vendor/golang.org/x/net/internal/socket/msghdr_linux_64bit.go create mode 100644 vendor/golang.org/x/net/internal/socket/msghdr_openbsd.go create mode 100644 vendor/golang.org/x/net/internal/socket/msghdr_solaris_64bit.go create mode 100644 vendor/golang.org/x/net/internal/socket/msghdr_stub.go create mode 100644 vendor/golang.org/x/net/internal/socket/rawconn.go create mode 100644 vendor/golang.org/x/net/internal/socket/rawconn_mmsg.go create mode 100644 vendor/golang.org/x/net/internal/socket/rawconn_msg.go create mode 100644 vendor/golang.org/x/net/internal/socket/rawconn_nommsg.go create mode 100644 vendor/golang.org/x/net/internal/socket/rawconn_nomsg.go create mode 100644 vendor/golang.org/x/net/internal/socket/rawconn_stub.go create mode 100644 vendor/golang.org/x/net/internal/socket/reflect.go create mode 100644 vendor/golang.org/x/net/internal/socket/socket.go create mode 100644 vendor/golang.org/x/net/internal/socket/sys.go create mode 100644 vendor/golang.org/x/net/internal/socket/sys_bsd.go create mode 100644 vendor/golang.org/x/net/internal/socket/sys_bsdvar.go create mode 100644 vendor/golang.org/x/net/internal/socket/sys_darwin.go create mode 100644 vendor/golang.org/x/net/internal/socket/sys_dragonfly.go create mode 100644 vendor/golang.org/x/net/internal/socket/sys_linux.go create mode 100644 vendor/golang.org/x/net/internal/socket/sys_linux_386.go create mode 100644 vendor/golang.org/x/net/internal/socket/sys_linux_386.s create mode 100644 vendor/golang.org/x/net/internal/socket/sys_linux_amd64.go create mode 100644 vendor/golang.org/x/net/internal/socket/sys_linux_arm.go create mode 100644 vendor/golang.org/x/net/internal/socket/sys_linux_arm64.go create mode 100644 vendor/golang.org/x/net/internal/socket/sys_linux_mips.go create mode 100644 vendor/golang.org/x/net/internal/socket/sys_linux_mips64.go create mode 100644 vendor/golang.org/x/net/internal/socket/sys_linux_mips64le.go create mode 100644 vendor/golang.org/x/net/internal/socket/sys_linux_mipsle.go create mode 100644 vendor/golang.org/x/net/internal/socket/sys_linux_ppc64.go create mode 100644 vendor/golang.org/x/net/internal/socket/sys_linux_ppc64le.go create mode 100644 vendor/golang.org/x/net/internal/socket/sys_linux_s390x.go create mode 100644 vendor/golang.org/x/net/internal/socket/sys_linux_s390x.s create mode 100644 vendor/golang.org/x/net/internal/socket/sys_netbsd.go create mode 100644 vendor/golang.org/x/net/internal/socket/sys_posix.go create mode 100644 vendor/golang.org/x/net/internal/socket/sys_solaris.go create mode 100644 vendor/golang.org/x/net/internal/socket/sys_solaris_amd64.s create mode 100644 vendor/golang.org/x/net/internal/socket/sys_stub.go create mode 100644 vendor/golang.org/x/net/internal/socket/sys_unix.go create mode 100644 vendor/golang.org/x/net/internal/socket/sys_windows.go create mode 100644 vendor/golang.org/x/net/internal/socket/zsys_darwin_386.go create mode 100644 vendor/golang.org/x/net/internal/socket/zsys_darwin_amd64.go create mode 100644 vendor/golang.org/x/net/internal/socket/zsys_darwin_arm.go create mode 100644 vendor/golang.org/x/net/internal/socket/zsys_darwin_arm64.go create mode 100644 vendor/golang.org/x/net/internal/socket/zsys_dragonfly_amd64.go create mode 100644 vendor/golang.org/x/net/internal/socket/zsys_freebsd_386.go create mode 100644 vendor/golang.org/x/net/internal/socket/zsys_freebsd_amd64.go create mode 100644 vendor/golang.org/x/net/internal/socket/zsys_freebsd_arm.go create mode 100644 vendor/golang.org/x/net/internal/socket/zsys_linux_386.go create mode 100644 vendor/golang.org/x/net/internal/socket/zsys_linux_amd64.go create mode 100644 vendor/golang.org/x/net/internal/socket/zsys_linux_arm.go create mode 100644 vendor/golang.org/x/net/internal/socket/zsys_linux_arm64.go create mode 100644 vendor/golang.org/x/net/internal/socket/zsys_linux_mips.go create mode 100644 vendor/golang.org/x/net/internal/socket/zsys_linux_mips64.go create mode 100644 vendor/golang.org/x/net/internal/socket/zsys_linux_mips64le.go create mode 100644 vendor/golang.org/x/net/internal/socket/zsys_linux_mipsle.go create mode 100644 vendor/golang.org/x/net/internal/socket/zsys_linux_ppc64.go create mode 100644 vendor/golang.org/x/net/internal/socket/zsys_linux_ppc64le.go create mode 100644 vendor/golang.org/x/net/internal/socket/zsys_linux_s390x.go create mode 100644 vendor/golang.org/x/net/internal/socket/zsys_netbsd_386.go create mode 100644 vendor/golang.org/x/net/internal/socket/zsys_netbsd_amd64.go create mode 100644 vendor/golang.org/x/net/internal/socket/zsys_netbsd_arm.go create mode 100644 vendor/golang.org/x/net/internal/socket/zsys_openbsd_386.go create mode 100644 vendor/golang.org/x/net/internal/socket/zsys_openbsd_amd64.go create mode 100644 vendor/golang.org/x/net/internal/socket/zsys_openbsd_arm.go create mode 100644 vendor/golang.org/x/net/internal/socket/zsys_solaris_amd64.go create mode 100644 vendor/golang.org/x/net/ipv4/batch.go create mode 100644 vendor/golang.org/x/net/ipv4/control.go create mode 100644 vendor/golang.org/x/net/ipv4/control_bsd.go create mode 100644 vendor/golang.org/x/net/ipv4/control_pktinfo.go create mode 100644 vendor/golang.org/x/net/ipv4/control_stub.go create mode 100644 vendor/golang.org/x/net/ipv4/control_unix.go create mode 100644 vendor/golang.org/x/net/ipv4/control_windows.go create mode 100644 vendor/golang.org/x/net/ipv4/defs_darwin.go create mode 100644 vendor/golang.org/x/net/ipv4/defs_dragonfly.go create mode 100644 vendor/golang.org/x/net/ipv4/defs_freebsd.go create mode 100644 vendor/golang.org/x/net/ipv4/defs_linux.go create mode 100644 vendor/golang.org/x/net/ipv4/defs_netbsd.go create mode 100644 vendor/golang.org/x/net/ipv4/defs_openbsd.go create mode 100644 vendor/golang.org/x/net/ipv4/defs_solaris.go create mode 100644 vendor/golang.org/x/net/ipv4/dgramopt.go create mode 100644 vendor/golang.org/x/net/ipv4/doc.go create mode 100644 vendor/golang.org/x/net/ipv4/endpoint.go create mode 100644 vendor/golang.org/x/net/ipv4/gen.go create mode 100644 vendor/golang.org/x/net/ipv4/genericopt.go create mode 100644 vendor/golang.org/x/net/ipv4/header.go create mode 100644 vendor/golang.org/x/net/ipv4/helper.go create mode 100644 vendor/golang.org/x/net/ipv4/iana.go create mode 100644 vendor/golang.org/x/net/ipv4/icmp.go create mode 100644 vendor/golang.org/x/net/ipv4/icmp_linux.go create mode 100644 vendor/golang.org/x/net/ipv4/icmp_stub.go create mode 100644 vendor/golang.org/x/net/ipv4/packet.go create mode 100644 vendor/golang.org/x/net/ipv4/packet_go1_8.go create mode 100644 vendor/golang.org/x/net/ipv4/packet_go1_9.go create mode 100644 vendor/golang.org/x/net/ipv4/payload.go create mode 100644 vendor/golang.org/x/net/ipv4/payload_cmsg.go create mode 100644 vendor/golang.org/x/net/ipv4/payload_cmsg_go1_8.go create mode 100644 vendor/golang.org/x/net/ipv4/payload_cmsg_go1_9.go create mode 100644 vendor/golang.org/x/net/ipv4/payload_nocmsg.go create mode 100644 vendor/golang.org/x/net/ipv4/sockopt.go create mode 100644 vendor/golang.org/x/net/ipv4/sockopt_posix.go create mode 100644 vendor/golang.org/x/net/ipv4/sockopt_stub.go create mode 100644 vendor/golang.org/x/net/ipv4/sys_asmreq.go create mode 100644 vendor/golang.org/x/net/ipv4/sys_asmreq_stub.go create mode 100644 vendor/golang.org/x/net/ipv4/sys_asmreqn.go create mode 100644 vendor/golang.org/x/net/ipv4/sys_asmreqn_stub.go create mode 100644 vendor/golang.org/x/net/ipv4/sys_bpf.go create mode 100644 vendor/golang.org/x/net/ipv4/sys_bpf_stub.go create mode 100644 vendor/golang.org/x/net/ipv4/sys_bsd.go create mode 100644 vendor/golang.org/x/net/ipv4/sys_darwin.go create mode 100644 vendor/golang.org/x/net/ipv4/sys_dragonfly.go create mode 100644 vendor/golang.org/x/net/ipv4/sys_freebsd.go create mode 100644 vendor/golang.org/x/net/ipv4/sys_linux.go create mode 100644 vendor/golang.org/x/net/ipv4/sys_solaris.go create mode 100644 vendor/golang.org/x/net/ipv4/sys_ssmreq.go create mode 100644 vendor/golang.org/x/net/ipv4/sys_ssmreq_stub.go create mode 100644 vendor/golang.org/x/net/ipv4/sys_stub.go create mode 100644 vendor/golang.org/x/net/ipv4/sys_windows.go create mode 100644 vendor/golang.org/x/net/ipv4/zsys_darwin.go create mode 100644 vendor/golang.org/x/net/ipv4/zsys_dragonfly.go create mode 100644 vendor/golang.org/x/net/ipv4/zsys_freebsd_386.go create mode 100644 vendor/golang.org/x/net/ipv4/zsys_freebsd_amd64.go create mode 100644 vendor/golang.org/x/net/ipv4/zsys_freebsd_arm.go create mode 100644 vendor/golang.org/x/net/ipv4/zsys_linux_386.go create mode 100644 vendor/golang.org/x/net/ipv4/zsys_linux_amd64.go create mode 100644 vendor/golang.org/x/net/ipv4/zsys_linux_arm.go create mode 100644 vendor/golang.org/x/net/ipv4/zsys_linux_arm64.go create mode 100644 vendor/golang.org/x/net/ipv4/zsys_linux_mips.go create mode 100644 vendor/golang.org/x/net/ipv4/zsys_linux_mips64.go create mode 100644 vendor/golang.org/x/net/ipv4/zsys_linux_mips64le.go create mode 100644 vendor/golang.org/x/net/ipv4/zsys_linux_mipsle.go create mode 100644 vendor/golang.org/x/net/ipv4/zsys_linux_ppc.go create mode 100644 vendor/golang.org/x/net/ipv4/zsys_linux_ppc64.go create mode 100644 vendor/golang.org/x/net/ipv4/zsys_linux_ppc64le.go create mode 100644 vendor/golang.org/x/net/ipv4/zsys_linux_s390x.go create mode 100644 vendor/golang.org/x/net/ipv4/zsys_netbsd.go create mode 100644 vendor/golang.org/x/net/ipv4/zsys_openbsd.go create mode 100644 vendor/golang.org/x/net/ipv4/zsys_solaris.go diff --git a/go.mod b/go.mod index 5b28abe..9a21999 100644 --- a/go.mod +++ b/go.mod @@ -4,11 +4,14 @@ require ( github.com/GeertJohan/yubigo v0.0.0-20140521141543-b1764f04aa9b github.com/McKael/madon v2.3.0+incompatible github.com/Xe/ln v0.1.2 + github.com/aclements/go-moremath v0.0.0-20180329182055-b1aff36309c7 // indirect github.com/bearbin/mcgorcon v0.0.0-20141104170123-f611ad04551a github.com/belak/irc v2.1.0+incompatible github.com/bwmarrin/discordgo v0.18.0 github.com/caarlos0/env v3.4.0+incompatible github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd + github.com/dgryski/go-failure v0.0.0-20151001134759-4963dbd58fd0 + github.com/dgryski/go-onlinestats v0.0.0-20170612111826-1c7d19468768 // indirect github.com/disintegration/imaging v1.5.0 github.com/facebookgo/ensure v0.0.0-20160127193407-b4ab57deab51 // indirect github.com/facebookgo/flagenv v0.0.0-20160425205200-fcd59fca7456 @@ -28,13 +31,21 @@ require ( github.com/joeshaw/envdecode v0.0.0-20180312135643-c9e015854467 github.com/joho/godotenv v1.3.0 github.com/kardianos/osext v0.0.0-20170510131534-ae77be60afb1 // indirect + github.com/klauspost/cpuid v0.0.0-20180405133222-e7e905edc00e // indirect + github.com/klauspost/crc32 v0.0.0-20170628072449-bab58d77464a // indirect + github.com/klauspost/reedsolomon v0.0.0-20180704173009-925cb01d6510 // indirect github.com/kr/pretty v0.1.0 github.com/mzohreva/GoGraphviz v0.0.0-20180226085351-533f4a37d9c6 github.com/olekukonko/tablewriter v0.0.0-20180912035003-be2c049b30cc // indirect + github.com/pborman/uuid v1.2.0 github.com/peterh/liner v1.1.0 + github.com/pkg/errors v0.8.0 github.com/sendgrid/rest v2.4.1+incompatible // indirect github.com/ssor/bom v0.0.0-20170718123548-6386211fdfcf // indirect + github.com/streamrail/concurrent-map v0.0.0-20160823150647-8bf1e9bacbf6 github.com/technoweenie/multipartstreamer v1.0.1 // indirect + github.com/xtaci/kcp-go v2.0.3+incompatible + github.com/xtaci/smux v1.0.7 go4.org v0.0.0-20180809161055-417644f6feb5 golang.org/x/build v0.0.0-20181004175654-90ec83e7f349 golang.org/x/crypto v0.0.0-20181001203147-e3636079e1a4 diff --git a/go.sum b/go.sum index 0f98ac3..3ec05ac 100644 --- a/go.sum +++ b/go.sum @@ -8,6 +8,8 @@ github.com/McKael/madon v2.3.0+incompatible h1:xMUA+Fy4saDV+8tN3MMnwJUoYWC//5Fy8 github.com/McKael/madon v2.3.0+incompatible/go.mod h1:+issnvJjN1rpjAHZwXRB/x30uHh/NoQR7QaojJK/lSI= github.com/Xe/ln v0.1.2 h1:VTF6Z95Kdd6S1RSjpnn0DFJV5Do9cfmHTHsE9OGI1dw= github.com/Xe/ln v0.1.2/go.mod h1:GWZDvjL0ZC/9SSjY8DJ2IOrID6Lejs7D8pgQyjqMYSk= +github.com/aclements/go-moremath v0.0.0-20180329182055-b1aff36309c7 h1:/NWziSfuX4cu00adiPldD8sdCpKxu6BZtLoALSyElZQ= +github.com/aclements/go-moremath v0.0.0-20180329182055-b1aff36309c7/go.mod h1:idZL3yvz4kzx1dsBOAC+oYv6L92P1oFEhUXUB1A/lwQ= github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239/go.mod h1:2FmKhYUyUczH0OGQWaF5ceTx0UBShxjsH6f8oGKYe2c= github.com/bearbin/mcgorcon v0.0.0-20141104170123-f611ad04551a h1:WS0mhgU8W7T5gN1WNrBXqJUAeQ9eyWOpZx1cSyJw/Ew= github.com/bearbin/mcgorcon v0.0.0-20141104170123-f611ad04551a/go.mod h1:Gt6oUa/biURD8wKBXC9vIlV/VQQSNHhSVRvUMHxPPzM= @@ -23,6 +25,10 @@ github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE github.com/coreos/go-systemd v0.0.0-20180705093442-88bfeed483d3/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/dgryski/go-failure v0.0.0-20151001134759-4963dbd58fd0 h1:SJzP6kZNFsdxFN4fRtVXu2yrf8QrKnofjQouzaCn36w= +github.com/dgryski/go-failure v0.0.0-20151001134759-4963dbd58fd0/go.mod h1:vVcpVd0tzL5XdRrkHax1asNJsHVpgA0cd9fHPHU5a/w= +github.com/dgryski/go-onlinestats v0.0.0-20170612111826-1c7d19468768 h1:Xzl7CSuSnGsyU+9xmSU2h8w3d7Tnis66xeoNN207tLo= +github.com/dgryski/go-onlinestats v0.0.0-20170612111826-1c7d19468768/go.mod h1:alfmlCqcg4uw9jaoIU1nOp9RFdJLMuu8P07BCEgpgoo= github.com/disintegration/imaging v1.5.0 h1:uYqUhwNmLU4K1FN44vhqS4TZJRAA4RhBINgbQlKyGi0= github.com/disintegration/imaging v1.5.0/go.mod h1:9B/deIUIrliYkyMTuXJd6OUFLcrZ2tf+3Qlwnaf/CjU= github.com/dustin/go-humanize v0.0.0-20180713052910-9f541cc9db5d/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= @@ -58,6 +64,8 @@ github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO github.com/google/gops v0.3.5 h1:SIWvPLiYvy5vMwjxB3rVFTE4QBhUFj2KKWr3Xm7CKhw= github.com/google/gops v0.3.5/go.mod h1:pMQgrscwEK/aUSW1IFSaBPbJX82FPHWaSoJw1axQfD0= github.com/google/martian v2.0.0-beta.2.0.20180813215018-c223d6f7955e+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= +github.com/google/uuid v1.0.0 h1:b4Gk+7WdP/d3HZH8EJsZpvV7EtDOgaZLtnaNGIu1adA= +github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/googleapis/gax-go v2.0.0+incompatible/go.mod h1:SFVmujtThgffbyetf+mdk2eWhX2bMyUtNHzFKcPA9HY= github.com/gopherjs/gopherjs v0.0.0-20180628210949-0892b62f0d9f/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= github.com/gorilla/websocket v1.4.0 h1:WDFjx/TMzVgy9VdMMQi2K2Emtwi2QcUQsztZ/zLaH/Q= @@ -77,6 +85,12 @@ github.com/joho/godotenv v1.3.0/go.mod h1:7hK45KPybAkOC6peb+G5yklZfMxEjkZhHbwpqx github.com/kardianos/osext v0.0.0-20170510131534-ae77be60afb1 h1:PJPDf8OUfOK1bb/NeTKd4f1QXZItOX389VN3B6qC8ro= github.com/kardianos/osext v0.0.0-20170510131534-ae77be60afb1/go.mod h1:1NbS8ALrpOvjt0rHPNLyCIeMtbizbir8U//inJ+zuB8= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= +github.com/klauspost/cpuid v0.0.0-20180405133222-e7e905edc00e h1:+lIPJOWl+jSiJOc70QXJ07+2eg2Jy2EC7Mi11BWujeM= +github.com/klauspost/cpuid v0.0.0-20180405133222-e7e905edc00e/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek= +github.com/klauspost/crc32 v0.0.0-20170628072449-bab58d77464a h1:NLr4Iy1X81t+cfi3RXELAOZhlkduugBKsO2RwWHRm8M= +github.com/klauspost/crc32 v0.0.0-20170628072449-bab58d77464a/go.mod h1:+ZoRqAPRLkC4NPOvfYeR5KNOrY6TD+/sAC3HXPZgDYg= +github.com/klauspost/reedsolomon v0.0.0-20180704173009-925cb01d6510 h1:9eOgsI7EIGhJWPMBvSY+x0SEpeGGWUSijOrwK0XhpIk= +github.com/klauspost/reedsolomon v0.0.0-20180704173009-925cb01d6510/go.mod h1:CwCi+NUr9pqSVktrkN+Ondf06rkhYZ/pcNv7fu+8Un4= github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= @@ -92,6 +106,8 @@ github.com/neelance/astrewrite v0.0.0-20160511093645-99348263ae86/go.mod h1:kHJE github.com/neelance/sourcemap v0.0.0-20151028013722-8c68805598ab/go.mod h1:Qr6/a/Q4r9LP1IltGz7tA7iOK1WonHEYhu1HRBA7ZiM= github.com/olekukonko/tablewriter v0.0.0-20180912035003-be2c049b30cc h1:rQ1O4ZLYR2xXHXgBCCfIIGnuZ0lidMQw2S5n1oOv+Wg= github.com/olekukonko/tablewriter v0.0.0-20180912035003-be2c049b30cc/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= +github.com/pborman/uuid v1.2.0 h1:J7Q5mO4ysT1dv8hyrUGHb9+ooztCXu1D8MY8DZYsu3g= +github.com/pborman/uuid v1.2.0/go.mod h1:X/NO0urCmaxf9VXbdlT7C2Yzkj2IKimNn4k+gtPdI/k= github.com/peterh/liner v1.1.0 h1:f+aAedNJA6uk7+6rXsYBnhdo4Xux7ESLe+kcuVUF5os= github.com/peterh/liner v1.1.0/go.mod h1:CRroGNssyjTd/qIG2FyxByd2S8JEAZXBl4qUrZf8GS0= github.com/pkg/errors v0.8.0 h1:WdK/asTD0HN+q6hsWO3/vpuAkAr+tw6aNJNDFFf0+qw= @@ -127,11 +143,17 @@ github.com/sourcegraph/annotate v0.0.0-20160123013949-f4cad6c6324d/go.mod h1:Udh github.com/sourcegraph/syntaxhighlight v0.0.0-20170531221838-bd320f5d308e/go.mod h1:HuIsMU8RRBOtsCgI77wP899iHVBQpCmg4ErYMZB+2IA= github.com/ssor/bom v0.0.0-20170718123548-6386211fdfcf h1:pvbZ0lM0XWPBqUKqFU8cmavspvIl9nulOYwdy6IFRRo= github.com/ssor/bom v0.0.0-20170718123548-6386211fdfcf/go.mod h1:RJID2RhlZKId02nZ62WenDCkgHFerpIOmW0iT7GKmXM= +github.com/streamrail/concurrent-map v0.0.0-20160823150647-8bf1e9bacbf6 h1:XklXvOrWxWCDX2n4vdEQWkjuIP820XD6C4kF0O0FzH4= +github.com/streamrail/concurrent-map v0.0.0-20160823150647-8bf1e9bacbf6/go.mod h1:yqDD2twFAqxvvH5gtpwwgLsj5L1kbNwtoPoDOwBzXcs= github.com/stretchr/testify v1.2.2 h1:bSDNvY7ZPG5RlJ8otE/7V6gMiyenm9RtJ7IUVIAoJ1w= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/tarm/serial v0.0.0-20180114052751-eaafced92e96/go.mod h1:kDXzergiv9cbyO7IOYJZWg1U88JhDg3PB6klq9Hg2pA= github.com/technoweenie/multipartstreamer v1.0.1 h1:XRztA5MXiR1TIRHxH2uNxXxaIkKQDeX7m2XsSOlQEnM= github.com/technoweenie/multipartstreamer v1.0.1/go.mod h1:jNVxdtShOxzAsukZwTSw6MDx5eUJoiEBsSvzDU9uzog= +github.com/xtaci/kcp-go v2.0.3+incompatible h1:2fkFeJIk83fA0G0OfBS2XmQBPlfsfQCs0jS5Xw6EERg= +github.com/xtaci/kcp-go v2.0.3+incompatible/go.mod h1:bN6vIwHQbfHaHtFpEssmWsN45a+AZwO7eyRCmEIbtvE= +github.com/xtaci/smux v1.0.7 h1:ragFTIwevybZKibSfltLxG2biJ4Y9eFQGhcBntoEhz4= +github.com/xtaci/smux v1.0.7/go.mod h1:f+nYm6SpuHMy/SH0zpbvAFHT1QoMcgLOsWcFip5KfPw= go.opencensus.io v0.14.0/go.mod h1:UffZAU+4sDEINUGP/B7UfBBkq4fqLu9zXAX7ke6CHW0= go4.org v0.0.0-20180417224846-9599cf28b011/go.mod h1:MkTOUMDaeVYJUOUsaDXIhWPZYa1yOyC1qaOBpL57BhE= go4.org v0.0.0-20180809161055-417644f6feb5 h1:+hE86LblG4AyDgwMCLTE6FOlM9+qjHSYS+rKqxUVdsM= diff --git a/vendor/github.com/aclements/go-moremath/LICENSE b/vendor/github.com/aclements/go-moremath/LICENSE new file mode 100644 index 0000000..d29b372 --- /dev/null +++ b/vendor/github.com/aclements/go-moremath/LICENSE @@ -0,0 +1,27 @@ +Copyright (c) 2015 The Go Authors. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above +copyright notice, this list of conditions and the following disclaimer +in the documentation and/or other materials provided with the +distribution. + * Neither the name of Google Inc. nor the names of its +contributors may be used to endorse or promote products derived from +this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/vendor/github.com/aclements/go-moremath/mathx/beta.go b/vendor/github.com/aclements/go-moremath/mathx/beta.go new file mode 100644 index 0000000..49f8722 --- /dev/null +++ b/vendor/github.com/aclements/go-moremath/mathx/beta.go @@ -0,0 +1,93 @@ +// Copyright 2015 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package mathx + +import "math" + +func lgamma(x float64) float64 { + y, _ := math.Lgamma(x) + return y +} + +// Beta returns the value of the complete beta function B(a, b). +func Beta(a, b float64) float64 { + // B(x,y) = Γ(x)Γ(y) / Γ(x+y) + return math.Exp(lgamma(a) + lgamma(b) - lgamma(a+b)) +} + +// BetaInc returns the value of the regularized incomplete beta +// function Iₓ(a, b). +// +// This is not to be confused with the "incomplete beta function", +// which can be computed as BetaInc(x, a, b)*Beta(a, b). +// +// If x < 0 or x > 1, returns NaN. +func BetaInc(x, a, b float64) float64 { + // Based on Numerical Recipes in C, section 6.4. This uses the + // continued fraction definition of I: + // + // (xᵃ*(1-x)ᵇ)/(a*B(a,b)) * (1/(1+(d₁/(1+(d₂/(1+...)))))) + // + // where B(a,b) is the beta function and + // + // d_{2m+1} = -(a+m)(a+b+m)x/((a+2m)(a+2m+1)) + // d_{2m} = m(b-m)x/((a+2m-1)(a+2m)) + if x < 0 || x > 1 { + return math.NaN() + } + bt := 0.0 + if 0 < x && x < 1 { + // Compute the coefficient before the continued + // fraction. + bt = math.Exp(lgamma(a+b) - lgamma(a) - lgamma(b) + + a*math.Log(x) + b*math.Log(1-x)) + } + if x < (a+1)/(a+b+2) { + // Compute continued fraction directly. + return bt * betacf(x, a, b) / a + } else { + // Compute continued fraction after symmetry transform. + return 1 - bt*betacf(1-x, b, a)/b + } +} + +// betacf is the continued fraction component of the regularized +// incomplete beta function Iₓ(a, b). +func betacf(x, a, b float64) float64 { + const maxIterations = 200 + const epsilon = 3e-14 + + raiseZero := func(z float64) float64 { + if math.Abs(z) < math.SmallestNonzeroFloat64 { + return math.SmallestNonzeroFloat64 + } + return z + } + + c := 1.0 + d := 1 / raiseZero(1-(a+b)*x/(a+1)) + h := d + for m := 1; m <= maxIterations; m++ { + mf := float64(m) + + // Even step of the recurrence. + numer := mf * (b - mf) * x / ((a + 2*mf - 1) * (a + 2*mf)) + d = 1 / raiseZero(1+numer*d) + c = raiseZero(1 + numer/c) + h *= d * c + + // Odd step of the recurrence. + numer = -(a + mf) * (a + b + mf) * x / ((a + 2*mf) * (a + 2*mf + 1)) + d = 1 / raiseZero(1+numer*d) + c = raiseZero(1 + numer/c) + hfac := d * c + h *= hfac + + if math.Abs(hfac-1) < epsilon { + return h + } + } + panic("betainc: a or b too big; failed to converge") +} diff --git a/vendor/github.com/aclements/go-moremath/mathx/choose.go b/vendor/github.com/aclements/go-moremath/mathx/choose.go new file mode 100644 index 0000000..54dc27c --- /dev/null +++ b/vendor/github.com/aclements/go-moremath/mathx/choose.go @@ -0,0 +1,62 @@ +// Copyright 2015 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package mathx + +import "math" + +const smallFactLimit = 20 // 20! => 62 bits +var smallFact [smallFactLimit + 1]int64 + +func init() { + smallFact[0] = 1 + fact := int64(1) + for n := int64(1); n <= smallFactLimit; n++ { + fact *= n + smallFact[n] = fact + } +} + +// Choose returns the binomial coefficient of n and k. +func Choose(n, k int) float64 { + if k == 0 || k == n { + return 1 + } + if k < 0 || n < k { + return 0 + } + if n <= smallFactLimit { // Implies k <= smallFactLimit + // It's faster to do several integer multiplications + // than it is to do an extra integer division. + // Remarkably, this is also faster than pre-computing + // Pascal's triangle (presumably because this is very + // cache efficient). + numer := int64(1) + for n1 := int64(n - (k - 1)); n1 <= int64(n); n1++ { + numer *= n1 + } + denom := smallFact[k] + return float64(numer / denom) + } + + return math.Exp(lchoose(n, k)) +} + +// Lchoose returns math.Log(Choose(n, k)). +func Lchoose(n, k int) float64 { + if k == 0 || k == n { + return 0 + } + if k < 0 || n < k { + return math.NaN() + } + return lchoose(n, k) +} + +func lchoose(n, k int) float64 { + a, _ := math.Lgamma(float64(n + 1)) + b, _ := math.Lgamma(float64(k + 1)) + c, _ := math.Lgamma(float64(n - k + 1)) + return a - b - c +} diff --git a/vendor/github.com/aclements/go-moremath/mathx/gamma.go b/vendor/github.com/aclements/go-moremath/mathx/gamma.go new file mode 100644 index 0000000..d11096e --- /dev/null +++ b/vendor/github.com/aclements/go-moremath/mathx/gamma.go @@ -0,0 +1,96 @@ +// Copyright 2015 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package mathx + +import "math" + +// GammaInc returns the value of the incomplete gamma function (also +// known as the regularized gamma function): +// +// P(a, x) = 1 / Γ(a) * ∫₀ˣ exp(-t) t**(a-1) dt +func GammaInc(a, x float64) float64 { + // Based on Numerical Recipes in C, section 6.2. + + if a <= 0 || x < 0 || math.IsNaN(a) || math.IsNaN(x) { + return math.NaN() + } + + if x < a+1 { + // Use the series representation, which converges more + // rapidly in this range. + return gammaIncSeries(a, x) + } else { + // Use the continued fraction representation. + return 1 - gammaIncCF(a, x) + } +} + +// GammaIncComp returns the complement of the incomplete gamma +// function 1 - GammaInc(a, x). This is more numerically stable for +// values near 0. +func GammaIncComp(a, x float64) float64 { + if a <= 0 || x < 0 || math.IsNaN(a) || math.IsNaN(x) { + return math.NaN() + } + + if x < a+1 { + return 1 - gammaIncSeries(a, x) + } else { + return gammaIncCF(a, x) + } +} + +func gammaIncSeries(a, x float64) float64 { + const maxIterations = 200 + const epsilon = 3e-14 + + if x == 0 { + return 0 + } + + ap := a + del := 1 / a + sum := del + for n := 0; n < maxIterations; n++ { + ap++ + del *= x / ap + sum += del + if math.Abs(del) < math.Abs(sum)*epsilon { + return sum * math.Exp(-x+a*math.Log(x)-lgamma(a)) + } + } + panic("a too large; failed to converge") +} + +func gammaIncCF(a, x float64) float64 { + const maxIterations = 200 + const epsilon = 3e-14 + + raiseZero := func(z float64) float64 { + if math.Abs(z) < math.SmallestNonzeroFloat64 { + return math.SmallestNonzeroFloat64 + } + return z + } + + b := x + 1 - a + c := math.MaxFloat64 + d := 1 / b + h := d + + for i := 1; i <= maxIterations; i++ { + an := -float64(i) * (float64(i) - a) + b += 2 + d = raiseZero(an*d + b) + c = raiseZero(b + an/c) + d = 1 / d + del := d * c + h *= del + if math.Abs(del-1) < epsilon { + return math.Exp(-x+a*math.Log(x)-lgamma(a)) * h + } + } + panic("a too large; failed to converge") +} diff --git a/vendor/github.com/aclements/go-moremath/mathx/package.go b/vendor/github.com/aclements/go-moremath/mathx/package.go new file mode 100644 index 0000000..9d5de0d --- /dev/null +++ b/vendor/github.com/aclements/go-moremath/mathx/package.go @@ -0,0 +1,11 @@ +// Copyright 2015 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package mathx implements special functions not provided by the +// standard math package. +package mathx // import "github.com/aclements/go-moremath/mathx" + +import "math" + +var nan = math.NaN() diff --git a/vendor/github.com/aclements/go-moremath/mathx/sign.go b/vendor/github.com/aclements/go-moremath/mathx/sign.go new file mode 100644 index 0000000..372e92f --- /dev/null +++ b/vendor/github.com/aclements/go-moremath/mathx/sign.go @@ -0,0 +1,18 @@ +// Copyright 2015 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package mathx + +// Sign returns the sign of x: -1 if x < 0, 0 if x == 0, 1 if x > 0. +// If x is NaN, it returns NaN. +func Sign(x float64) float64 { + if x == 0 { + return 0 + } else if x < 0 { + return -1 + } else if x > 0 { + return 1 + } + return nan +} diff --git a/vendor/github.com/dgryski/go-failure/README b/vendor/github.com/dgryski/go-failure/README new file mode 100644 index 0000000..96f2bd1 --- /dev/null +++ b/vendor/github.com/dgryski/go-failure/README @@ -0,0 +1,5 @@ +Phi Accrual Failure Detection + + +Godoc: http://godoc.org/github.com/dgryski/go-failure + diff --git a/vendor/github.com/dgryski/go-failure/failure.go b/vendor/github.com/dgryski/go-failure/failure.go new file mode 100644 index 0000000..df6fbf2 --- /dev/null +++ b/vendor/github.com/dgryski/go-failure/failure.go @@ -0,0 +1,73 @@ +// Package failure implements the Phi Accrual Failure Detector +/* + +This package implements the paper "The φ Accrual Failure Detector" (2004) +(available at http://hdl.handle.net/10119/4784). + +To use the failure detection algorithm, you need a heartbeat loop that will +call Ping() at regular intervals. At any point, you can call Phi() which will +report how suspicious it is that a heartbeat has not been heard since the last +time Ping() was called. + +*/ +package failure + +import ( + "math" + "sync" + "time" + + "github.com/dgryski/go-onlinestats" +) + +// Detector is a failure detector +type Detector struct { + w *onlinestats.Windowed + last time.Time + minSamples int + mu sync.Mutex +} + +// New returns a new failure detector that considers the last windowSize +// samples, and ensures there are at least minSamples in the window before +// returning an answer +func New(windowSize, minSamples int) *Detector { + + d := &Detector{ + w: onlinestats.NewWindowed(windowSize), + minSamples: minSamples, + } + + return d +} + +// Ping registers a heart-beat at time now +func (d *Detector) Ping(now time.Time) { + d.mu.Lock() + defer d.mu.Unlock() + if !d.last.IsZero() { + d.w.Push(now.Sub(d.last).Seconds()) + } + d.last = now +} + +// Phi calculates the suspicion level at time 'now' that the remote end has failed +func (d *Detector) Phi(now time.Time) float64 { + d.mu.Lock() + defer d.mu.Unlock() + if d.w.Len() < d.minSamples { + return 0 + } + + t := now.Sub(d.last).Seconds() + pLater := 1 - cdf(d.w.Mean(), d.w.Stddev(), t) + phi := -math.Log10(pLater) + + return phi +} + +// cdf is the cumulative distribution function of a normally distributed random +// variable with the given mean and standard deviation +func cdf(mean, stddev, x float64) float64 { + return 0.5 + 0.5*math.Erf((x-mean)/(stddev*math.Sqrt2)) +} diff --git a/vendor/github.com/dgryski/go-onlinestats/LICENSE b/vendor/github.com/dgryski/go-onlinestats/LICENSE new file mode 100644 index 0000000..78ec147 --- /dev/null +++ b/vendor/github.com/dgryski/go-onlinestats/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2013-2017 Damian Gryski + +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: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +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. diff --git a/vendor/github.com/dgryski/go-onlinestats/basics.go b/vendor/github.com/dgryski/go-onlinestats/basics.go new file mode 100644 index 0000000..580e5d7 --- /dev/null +++ b/vendor/github.com/dgryski/go-onlinestats/basics.go @@ -0,0 +1,54 @@ +package onlinestats + +import "math" + +func SumSq(a []float64) float64 { + var t float64 + for _, aa := range a { + t += (aa * aa) + } + return t +} + +func Sum(a []float64) float64 { + var t float64 + for _, aa := range a { + t += aa + } + return t +} + +func Mean(a []float64) float64 { + return Sum(a) / float64(len(a)) +} + +func variance(a []float64, sample bool) float64 { + + var adjustN float64 + + if sample { + adjustN = -1 + } + + m := Mean(a) + var sum2 float64 + var sum3 float64 + for _, aa := range a { + sum2 += (aa - m) * (aa - m) + sum3 += (aa - m) + } + n := float64(len(a)) + return (sum2 - (sum3*sum3)/n) / (n + adjustN) +} + +func Variance(a []float64) float64 { + return variance(a, false) +} + +func SampleVariance(a []float64) float64 { + return variance(a, true) +} + +func SampleStddev(a []float64) float64 { + return math.Sqrt(SampleVariance(a)) +} diff --git a/vendor/github.com/dgryski/go-onlinestats/dea.go b/vendor/github.com/dgryski/go-onlinestats/dea.go new file mode 100644 index 0000000..fe9