This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package sarama | |
import ( | |
"errors" | |
"fmt" | |
"sync" | |
"sync/atomic" | |
"time" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package sarama | |
import ( | |
"bufio" | |
"net" | |
"sort" | |
) | |
type none struct{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"crypto/tls" | |
"fmt" | |
"golang.org/x/net/http2" | |
"io" | |
"io/ioutil" | |
"log" | |
"time" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"crypto/tls" | |
"fmt" | |
"golang.org/x/net/http2" | |
"io" | |
"io/ioutil" | |
"log" | |
"net/http" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"crypto/tls" | |
"fmt" | |
"golang.org/x/net/http2" | |
"io" | |
"io/ioutil" | |
"log" | |
"net/http" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"crypto/tls" | |
"fmt" | |
"golang.org/x/net/http2" | |
"io" | |
"io/ioutil" | |
"log" | |
"net/http" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -x | |
export VAULT_TOKEN=ROOT TOKEN | |
export VAULT_ADDR="https://vault.channelmeter.com:8200" | |
# do this once | |
# curl -s https://raw.githubusercontent.com/ChannelMeter/vault-gatekeeper-mesos/master/gatekeeper-policy.hcl > /tmp/policy.hcl | |
# vault policy-write tmp-test-gk /tmp/policy.hcl | |
T=`./vault token-create -orphan -policy tmp-test-gk | grep token | head -n 1 | awk '{ print $2 }'` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
goroutine profile: total 636 | |
1 @ 0xb5b538 0xb5b313 0xb56c44 0x96e4ce 0x96e6e0 0x6cb3fa 0x6ccc6d 0x6cd73e 0x6ca15e 0x4684e1 | |
# 0xb5b538 runtime/pprof.writeRuntimeProfile+0xb8 /usr/local/go/src/runtime/pprof/pprof.go:545 | |
# 0xb5b313 runtime/pprof.writeGoroutine+0x93 /usr/local/go/src/runtime/pprof/pprof.go:507 | |
# 0xb56c44 runtime/pprof.(*Profile).WriteTo+0xd4 /usr/local/go/src/runtime/pprof/pprof.go:236 | |
# 0x96e4ce net/http/pprof.handler.ServeHTTP+0x37e /usr/local/go/src/net/http/pprof/pprof.go:210 | |
# 0x96e6e0 net/http/pprof.Index+0x200 /usr/local/go/src/net/http/pprof/pprof.go:222 | |
# 0x6cb3fa net/http.HandlerFunc.ServeHTTP+0x3a /usr/local/go/src/net/http/server.go:1618 | |
# 0x6ccc6d net/http.(*ServeMux).ServeHTTP+0x17d /usr/local/go/src/net/http/server.go:1910 | |
# 0x6cd73e net/http.serverHandler.ServeHTTP+0x19e /usr/local/go/src/net/http/server.go:2081 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"io" | |
"io/ioutil" | |
"log" | |
"net/http" | |
"strings" | |
"time" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
//"crypto/tls" | |
"io" | |
"io/ioutil" | |
"log" | |
"net/http" | |
"os" | |
"strings" |