Used Golang module.

This commit is contained in:
Kevacoin Project 2021-12-05 16:57:43 -08:00
parent 1fd2611788
commit 8f06e7ce42
10 changed files with 36 additions and 15 deletions

11
go.mod Normal file
View File

@ -0,0 +1,11 @@
module kevacoin.org/keva-stratum/v2
go 1.16
require (
github.com/goji/httpauth v0.0.0-20160601135302-2da839ab0f4d
github.com/gorilla/mux v1.8.0
github.com/yvasiyarov/go-metrics v0.0.0-20150112132944-c25f46c4b940 // indirect
github.com/yvasiyarov/gorelic v0.0.7
github.com/yvasiyarov/newrelic_platform_go v0.0.0-20160601141957-9c099fbc30e9 // indirect
)

10
go.sum Normal file
View File

@ -0,0 +1,10 @@
github.com/goji/httpauth v0.0.0-20160601135302-2da839ab0f4d h1:lBXNCxVENCipq4D1Is42JVOP4eQjlB8TQ6H69Yx5J9Q=
github.com/goji/httpauth v0.0.0-20160601135302-2da839ab0f4d/go.mod h1:nnjvkQ9ptGaCkuDUx6wNykzzlUixGxvkme+H/lnzb+A=
github.com/gorilla/mux v1.8.0 h1:i40aqfkR1h2SlN9hojwV5ZA91wcXFOvkdNIeFDP5koI=
github.com/gorilla/mux v1.8.0/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So=
github.com/yvasiyarov/go-metrics v0.0.0-20150112132944-c25f46c4b940 h1:p7OofyZ509h8DmPLh8Hn+EIIZm/xYhdZHJ9GnXHdr6U=
github.com/yvasiyarov/go-metrics v0.0.0-20150112132944-c25f46c4b940/go.mod h1:aX5oPXxHm3bOH+xeAttToC8pqch2ScQN/JoXYupl6xs=
github.com/yvasiyarov/gorelic v0.0.7 h1:4DTF1WOM2ZZS/xMOkTFBOcb6XiHu/PKn3rVo6dbewQE=
github.com/yvasiyarov/gorelic v0.0.7/go.mod h1:NUSPSUX/bi6SeDMUh6brw0nXpxHnc96TguQh0+r/ssA=
github.com/yvasiyarov/newrelic_platform_go v0.0.0-20160601141957-9c099fbc30e9 h1:AsFN8kXcCVkUFHyuzp1FtYbzp1nCO/H6+1uPSGEyPzM=
github.com/yvasiyarov/newrelic_platform_go v0.0.0-20160601141957-9c099fbc30e9/go.mod h1:GlGEuHIJweS1mbCqG+7vt2nvWLzLLnRHbXz5JKd/Qbg=

View File

@ -10,8 +10,8 @@ import (
"runtime"
"time"
"./pool"
"./stratum"
"kevacoin.org/keva-stratum/v2/pool"
"kevacoin.org/keva-stratum/v2/stratum"
"github.com/goji/httpauth"
"github.com/gorilla/mux"

View File

@ -11,7 +11,7 @@ import (
"sync/atomic"
"time"
"../pool"
"kevacoin.org/keva-stratum/v2/pool"
)
type RPCClient struct {

View File

@ -6,8 +6,8 @@ import (
"sync/atomic"
"time"
"../rpc"
"../util"
"kevacoin.org/keva-stratum/v2/rpc"
"kevacoin.org/keva-stratum/v2/util"
)
func (s *StratumServer) StatsIndex(w http.ResponseWriter, r *http.Request) {

View File

@ -7,7 +7,7 @@ import (
"log"
"math/big"
"../cnutil"
"kevacoin.org/keva-stratum/v2/cnutil"
)
type BlockTemplate struct {

View File

@ -6,7 +6,7 @@ import (
"strings"
"sync/atomic"
"../util"
"kevacoin.org/keva-stratum/v2/util"
)
var noncePattern *regexp.Regexp

View File

@ -10,8 +10,8 @@ import (
"sync/atomic"
"time"
"../cnutil"
"../util"
"kevacoin.org/keva-stratum/v2/cnutil"
"kevacoin.org/keva-stratum/v2/util"
)
type Job struct {

View File

@ -13,10 +13,10 @@ import (
"sync/atomic"
"time"
"../cnutil"
"../pool"
"../rpc"
"../util"
"kevacoin.org/keva-stratum/v2/cnutil"
"kevacoin.org/keva-stratum/v2/pool"
"kevacoin.org/keva-stratum/v2/rpc"
"kevacoin.org/keva-stratum/v2/util"
)
type StratumServer struct {

View File

@ -7,8 +7,8 @@ import (
"time"
"unicode/utf8"
"../cnutil"
"../rpc"
"kevacoin.org/keva-stratum/v2/cnutil"
"kevacoin.org/keva-stratum/v2/rpc"
)
var Diff1 = StringToBig("0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF")