incorporate cryptix-debug without the counter

This commit is contained in:
idk
2019-02-28 14:22:28 -05:00
parent 09c260e7e1
commit 49533844d6
6 changed files with 15 additions and 10 deletions

View File

@ -4,7 +4,7 @@ import (
"fmt"
"net"
"github.com/cryptix/go/debug"
"github.com/eyedeekay/gosam/debug"
)
// Accept creates a new Client and accepts a connection on it

View File

@ -7,7 +7,7 @@ import (
"math/rand"
"net"
"github.com/cryptix/go/debug"
"github.com/eyedeekay/gosam/debug"
)
// A Client represents a single Connection to the SAM bridge

4
debian/copyright vendored
View File

@ -9,6 +9,10 @@ Copyright: 2014 cryptix
Copyright: 2018 idk
License: GPL-2.0
Files: debug
Copyright: 2014 cryptix
LICENSE: MIT
Files: debian/*
Copyright: 2019 idk <hankhill19580@gmail.com>
License: GPL-2.0

View File

@ -6,12 +6,12 @@ import (
"net/http"
"os"
"github.com/cryptix/goSam"
"github.com/eyedeekay/gosam"
)
func main() {
//In order to enable debugging, pass the SetDebug(true) option.
//sam, err := goSam.NewClientFromOptions(SetDebug(true))
//sam, err := goSam.NewClientFromOptions(SetDebug(true))
// create a default sam client
sam, err := goSam.NewDefaultClient()

1
go.sum
View File

@ -1,5 +1,6 @@
github.com/cryptix/go v1.3.1 h1:I9opbROgEpldI0PwkMku0UY2DLFYgelZd9u0uaxmMgY=
github.com/cryptix/go v1.3.1/go.mod h1:mFQotm9rTzptzvNjJM+1vSIDa/rVOVqMu0889GIXg70=
github.com/eyedeekay/gosam v0.1.0 h1:rVhFSVgSNzPbkduxlqIz3+1z+g1EYkt3YCCHJE/rMb0=
github.com/go-kit/kit v0.6.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as=
github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE=
github.com/go-stack/stack v1.7.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY=

View File

@ -43,7 +43,7 @@ func TestOptionAddrString(t *testing.T) {
} else {
t.Log(result)
}
client.CreateStreamSession("")
client.CreateStreamSession(client.NewID(), "")
if err := client.Close(); err != nil {
t.Fatalf("client.Close() Error: %q\n", err)
}
@ -59,7 +59,7 @@ func TestOptionAddrStringLh(t *testing.T) {
} else {
t.Log(result)
}
client.CreateStreamSession("")
client.CreateStreamSession(client.NewID(), "")
if err := client.Close(); err != nil {
t.Fatalf("client.Close() Error: %q\n", err)
}
@ -75,7 +75,7 @@ func TestOptionAddrSlice(t *testing.T) {
} else {
t.Log(result)
}
client.CreateStreamSession("")
client.CreateStreamSession(client.NewID(), "")
if err := client.Close(); err != nil {
t.Fatalf("client.Close() Error: %q\n", err)
}
@ -91,7 +91,7 @@ func TestOptionAddrMixedSlice(t *testing.T) {
} else {
t.Log(result)
}
client.CreateStreamSession("")
client.CreateStreamSession(client.NewID(), "")
if err := client.Close(); err != nil {
t.Fatalf("client.Close() Error: %q\n", err)
}
@ -126,7 +126,7 @@ func TestOptionHost(t *testing.T) {
} else {
t.Log(result)
}
client.CreateStreamSession("")
client.CreateStreamSession(client.NewID(), "")
if err := client.Close(); err != nil {
t.Fatalf("client.Close() Error: %q\n", err)
}
@ -161,7 +161,7 @@ func TestOptionPortInt(t *testing.T) {
} else {
t.Log(result)
}
client.CreateStreamSession("")
client.CreateStreamSession(client.NewID(), "")
if err := client.Close(); err != nil {
t.Fatalf("client.Close() Error: %q\n", err)
}