I hereby claim:
- I am nesv on github.
- I am nesv (https://keybase.io/nesv) on keybase.
- I have a public key whose fingerprint is 392E 5F87 22FE 2CC3 5605 D4B6 77FA 3F86 5BAA E611
To claim this, I am signing this object:
package dynect | |
import ( | |
"crypto/tls" | |
"net/http" | |
) | |
type ClientOption func(*Client) | |
func InsecureSkipVerify() ClientOption { |
package spf | |
import ( | |
"errors" | |
"fmt" | |
) | |
var ( | |
ErrInvalidPrefix = errors.New("invalid or missing spf prefix") | |
) |
package main | |
import ( | |
"bufio" | |
"flag" | |
"os" | |
"strings" | |
) | |
func main() { |
var db *sql.DB | |
func WithTx(fn func(*sql.Tx) error) error { | |
tx, err := db.Begin() | |
if err != nil { | |
return err | |
} | |
if err := fn(tx); err != nil { | |
if err := tx.Rollback(); err != nil { |
package main | |
import ( | |
"log" | |
"net/http" | |
"net/url" | |
"time" | |
) | |
func main() { |
package provider | |
// Some empty types for "completeness". | |
type ( | |
VMConfig struct{} | |
VM struct{} | |
) | |
type InfraProvider interface { | |
Launch(cfg VMConfig) (*VM, error) |
I hereby claim:
To claim this, I am signing this object:
package main | |
import ( | |
"log" | |
"strings" | |
"github.com/nesv/go-dynect/dynect" | |
) | |
func main() { |
package main | |
import ( | |
"flag" | |
"fmt" | |
"net/http" | |
) | |
var ( | |
NWorkers = flag.Int("n", 4, "The number of workers to start") |
package main | |
import "fmt" | |
var WorkerQueue chan chan WorkRequest | |
func StartDispatcher(nworkers int) { | |
// First, initialize the channel we are going to but the workers' work channels into. | |
WorkerQueue = make(chan chan WorkRequest, nworkers) | |