Skip to content
Permalink
Browse files

Make package go-getable

  • Loading branch information
sammy007 committed Jun 7, 2016
1 parent 1361eb0 commit 5935a179faddc67cab6b0576d04580b2506bf0cc
Showing with 42 additions and 38 deletions.
  1. +4 −3 api/server.go
  2. +5 −5 main.go
  3. +4 −4 payouts/payer.go
  4. +4 −4 payouts/unlocker.go
  5. +3 −2 payouts/unlocker_test.go
  6. +2 −2 policy/policy.go
  7. +3 −3 proxy/blocks.go
  8. +4 −4 proxy/config.go
  9. +2 −2 proxy/handlers.go
  10. +6 −5 proxy/proxy.go
  11. +1 −1 proxy/stratum.go
  12. +1 −1 rpc/rpc.go
  13. +1 −1 storage/redis.go
  14. +2 −1 storage/redis_test.go
@@ -2,16 +2,17 @@ package api

import (
"encoding/json"
"github.com/gorilla/mux"
"log"
"net/http"
"strings"
"sync"
"sync/atomic"
"time"

"../storage"
"../util"
"github.com/gorilla/mux"

"github.com/sammy007/open-ethereum-pool/storage"
"github.com/sammy007/open-ethereum-pool/util"
)

type ApiConfig struct {
10 main.go
@@ -9,12 +9,12 @@ import (
"runtime"
"time"

"./api"
"./payouts"
"./proxy"
"./storage"

"github.com/yvasiyarov/gorelic"

"github.com/sammy007/open-ethereum-pool/api"
"github.com/sammy007/open-ethereum-pool/payouts"
"github.com/sammy007/open-ethereum-pool/proxy"
"github.com/sammy007/open-ethereum-pool/storage"
)

var cfg proxy.Config
@@ -8,11 +8,11 @@ import (
"strconv"
"time"

"../rpc"
"../storage"
"../util"

"github.com/ethereum/go-ethereum/common"

"github.com/sammy007/open-ethereum-pool/rpc"
"github.com/sammy007/open-ethereum-pool/storage"
"github.com/sammy007/open-ethereum-pool/util"
)

type PayoutsConfig struct {
@@ -8,11 +8,11 @@ import (
"strings"
"time"

"../rpc"
"../storage"
"../util"

"github.com/ethereum/go-ethereum/common"

"github.com/sammy007/open-ethereum-pool/rpc"
"github.com/sammy007/open-ethereum-pool/storage"
"github.com/sammy007/open-ethereum-pool/util"
)

type UnlockerConfig struct {
@@ -1,11 +1,12 @@
package payouts

import (
"../rpc"
"../storage"
"math/big"
"os"
"testing"

"github.com/sammy007/open-ethereum-pool/rpc"
"github.com/sammy007/open-ethereum-pool/storage"
)

func TestMain(m *testing.M) {
@@ -9,8 +9,8 @@ import (
"sync/atomic"
"time"

"../storage"
"../util"
"github.com/sammy007/open-ethereum-pool/storage"
"github.com/sammy007/open-ethereum-pool/util"
)

type Config struct {
@@ -7,10 +7,10 @@ import (
"strings"
"sync"

"../rpc"
"../util"

"github.com/ethereum/go-ethereum/common"

"github.com/sammy007/open-ethereum-pool/rpc"
"github.com/sammy007/open-ethereum-pool/util"
)

const maxBacklog = 3
@@ -1,10 +1,10 @@
package proxy

import (
"../api"
"../payouts"
"../policy"
"../storage"
"github.com/sammy007/open-ethereum-pool/api"
"github.com/sammy007/open-ethereum-pool/payouts"
"github.com/sammy007/open-ethereum-pool/policy"
"github.com/sammy007/open-ethereum-pool/storage"
)

type Config struct {
@@ -5,8 +5,8 @@ import (
"regexp"
"strings"

"../rpc"
"../util"
"github.com/sammy007/open-ethereum-pool/rpc"
"github.com/sammy007/open-ethereum-pool/util"
)

// Allow only lowercase hexadecimal with 0x prefix
@@ -2,7 +2,6 @@ package proxy

import (
"encoding/json"
"github.com/gorilla/mux"
"io"
"log"
"net"
@@ -12,10 +11,12 @@ import (
"sync/atomic"
"time"

"../policy"
"../rpc"
"../storage"
"../util"
"github.com/gorilla/mux"

"github.com/sammy007/open-ethereum-pool/policy"
"github.com/sammy007/open-ethereum-pool/rpc"
"github.com/sammy007/open-ethereum-pool/storage"
"github.com/sammy007/open-ethereum-pool/util"
)

type ProxyServer struct {
@@ -9,7 +9,7 @@ import (
"net"
"time"

"../util"
"github.com/sammy007/open-ethereum-pool/util"
)

const (
@@ -15,7 +15,7 @@ import (

"github.com/ethereum/go-ethereum/common"

"../util"
"github.com/sammy007/open-ethereum-pool/util"
)

type RPCClient struct {
@@ -10,7 +10,7 @@ import (
"github.com/ethereum/go-ethereum/common"
"gopkg.in/redis.v3"

"../util"
"github.com/sammy007/open-ethereum-pool/util"
)

type Config struct {
@@ -1,10 +1,11 @@
package storage

import (
"gopkg.in/redis.v3"
"os"
"strconv"
"testing"

"gopkg.in/redis.v3"
)

var r *RedisClient

0 comments on commit 5935a17

Please sign in to comment.
You can’t perform that action at this time.