From 93af4912c4014d5a0a2faf6a40bc7569b121762f Mon Sep 17 00:00:00 2001 From: Justin Li Date: Sat, 30 Nov 2013 22:39:02 -0500 Subject: [PATCH] Move packages to chihaya org --- .travis.yml | 2 +- server/announce.go | 2 +- server/scrape.go | 2 +- server/server.go | 6 +++--- server/stats.go | 2 +- server/stats_test.go | 6 +++--- storage/backend/backend.go | 4 ++-- storage/backend/batter/batter.go | 4 ++-- storage/backend/batter/load.go | 2 +- storage/backend/gazelle/gazelle.go | 4 ++-- storage/backend/gazelle/load.go | 2 +- storage/tracker/mock/conn.go | 4 ++-- storage/tracker/mock/driver.go | 6 +++--- storage/tracker/mock/pool.go | 4 ++-- storage/tracker/redis/conn_test.go | 6 +++--- storage/tracker/redis/redis.go | 6 +++--- storage/tracker/redis/redis_test.go | 4 ++-- storage/tracker/tracker.go | 4 ++-- 18 files changed, 35 insertions(+), 35 deletions(-) diff --git a/.travis.yml b/.travis.yml index 192ad76..0dec0fc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,7 +3,7 @@ language: go go: 1.1.2 env: - - TESTCONFIGPATH=/home/travis/gopath/src/github.com/pushrax/chihaya/config/example.json + - TESTCONFIGPATH=/home/travis/gopath/src/github.com/chihaya/chihaya/config/example.json services: - redis-server diff --git a/server/announce.go b/server/announce.go index 31927d9..de96494 100644 --- a/server/announce.go +++ b/server/announce.go @@ -12,7 +12,7 @@ import ( "strconv" "time" - "github.com/pushrax/chihaya/storage" + "github.com/chihaya/chihaya/storage" ) func (s Server) serveAnnounce(w http.ResponseWriter, r *http.Request) { diff --git a/server/scrape.go b/server/scrape.go index 3e34efb..d1ebe6e 100644 --- a/server/scrape.go +++ b/server/scrape.go @@ -11,7 +11,7 @@ import ( "net/http" "path" - "github.com/pushrax/chihaya/storage" + "github.com/chihaya/chihaya/storage" ) func (s *Server) serveScrape(w http.ResponseWriter, r *http.Request) { diff --git a/server/server.go b/server/server.go index 9d00d81..e38841c 100644 --- a/server/server.go +++ b/server/server.go @@ -18,9 +18,9 @@ import ( "github.com/etix/stoppableListener" - "github.com/pushrax/chihaya/config" - "github.com/pushrax/chihaya/storage" - "github.com/pushrax/chihaya/storage/tracker" + "github.com/chihaya/chihaya/config" + "github.com/chihaya/chihaya/storage" + "github.com/chihaya/chihaya/storage/tracker" ) type Server struct { diff --git a/server/stats.go b/server/stats.go index 6e0a074..b2d5f6a 100644 --- a/server/stats.go +++ b/server/stats.go @@ -10,7 +10,7 @@ import ( "sync/atomic" "time" - "github.com/pushrax/chihaya/config" + "github.com/chihaya/chihaya/config" ) type stats struct { diff --git a/server/stats_test.go b/server/stats_test.go index 0c1816f..3eeac06 100644 --- a/server/stats_test.go +++ b/server/stats_test.go @@ -11,10 +11,10 @@ import ( "os" "testing" - "github.com/pushrax/chihaya/config" + "github.com/chihaya/chihaya/config" - _ "github.com/pushrax/chihaya/storage/backend/batter" - _ "github.com/pushrax/chihaya/storage/tracker/redis" + _ "github.com/chihaya/chihaya/storage/backend/batter" + _ "github.com/chihaya/chihaya/storage/tracker/redis" ) func newTestServer() (*Server, error) { diff --git a/storage/backend/backend.go b/storage/backend/backend.go index f2d0c07..d9e360e 100644 --- a/storage/backend/backend.go +++ b/storage/backend/backend.go @@ -9,8 +9,8 @@ package backend import ( "fmt" - "github.com/pushrax/chihaya/config" - "github.com/pushrax/chihaya/storage" + "github.com/chihaya/chihaya/config" + "github.com/chihaya/chihaya/storage" ) var drivers = make(map[string]Driver) diff --git a/storage/backend/batter/batter.go b/storage/backend/batter/batter.go index 1aea1ea..6112bd9 100644 --- a/storage/backend/batter/batter.go +++ b/storage/backend/batter/batter.go @@ -10,8 +10,8 @@ import ( "database/sql" "fmt" - "github.com/pushrax/chihaya/config" - "github.com/pushrax/chihaya/storage/backend" + "github.com/chihaya/chihaya/config" + "github.com/chihaya/chihaya/storage/backend" _ "github.com/bmizerany/pq" ) diff --git a/storage/backend/batter/load.go b/storage/backend/batter/load.go index 6318ab6..287b51b 100644 --- a/storage/backend/batter/load.go +++ b/storage/backend/batter/load.go @@ -5,7 +5,7 @@ package batter import ( - "github.com/pushrax/chihaya/storage" + "github.com/chihaya/chihaya/storage" ) func (c *Conn) LoadTorrents(ids []uint64) ([]*storage.Torrent, error) { diff --git a/storage/backend/gazelle/gazelle.go b/storage/backend/gazelle/gazelle.go index 015dd53..f439474 100644 --- a/storage/backend/gazelle/gazelle.go +++ b/storage/backend/gazelle/gazelle.go @@ -11,8 +11,8 @@ import ( "fmt" "sync" - "github.com/pushrax/chihaya/config" - "github.com/pushrax/chihaya/storage/backend" + "github.com/chihaya/chihaya/config" + "github.com/chihaya/chihaya/storage/backend" _ "github.com/go-sql-driver/mysql" ) diff --git a/storage/backend/gazelle/load.go b/storage/backend/gazelle/load.go index 9648e96..6da82d4 100644 --- a/storage/backend/gazelle/load.go +++ b/storage/backend/gazelle/load.go @@ -5,7 +5,7 @@ package gazelle import ( - "github.com/pushrax/chihaya/storage" + "github.com/chihaya/chihaya/storage" ) func (c *Conn) LoadTorrents(ids []uint64) ([]*storage.Torrent, error) { diff --git a/storage/tracker/mock/conn.go b/storage/tracker/mock/conn.go index 9b68bf4..cbff886 100644 --- a/storage/tracker/mock/conn.go +++ b/storage/tracker/mock/conn.go @@ -5,8 +5,8 @@ package mock import ( - "github.com/pushrax/chihaya/storage" - "github.com/pushrax/chihaya/storage/tracker" + "github.com/chihaya/chihaya/storage" + "github.com/chihaya/chihaya/storage/tracker" ) type Conn struct { diff --git a/storage/tracker/mock/driver.go b/storage/tracker/mock/driver.go index 2ccfbf7..2efbcd5 100644 --- a/storage/tracker/mock/driver.go +++ b/storage/tracker/mock/driver.go @@ -8,9 +8,9 @@ package mock import ( - "github.com/pushrax/chihaya/config" - "github.com/pushrax/chihaya/storage" - "github.com/pushrax/chihaya/storage/tracker" + "github.com/chihaya/chihaya/config" + "github.com/chihaya/chihaya/storage" + "github.com/chihaya/chihaya/storage/tracker" ) type driver struct{} diff --git a/storage/tracker/mock/pool.go b/storage/tracker/mock/pool.go index 3f31aec..2e2937b 100644 --- a/storage/tracker/mock/pool.go +++ b/storage/tracker/mock/pool.go @@ -7,8 +7,8 @@ package mock import ( "sync" - "github.com/pushrax/chihaya/storage" - "github.com/pushrax/chihaya/storage/tracker" + "github.com/chihaya/chihaya/storage" + "github.com/chihaya/chihaya/storage/tracker" ) type Pool struct { diff --git a/storage/tracker/redis/conn_test.go b/storage/tracker/redis/conn_test.go index 11f4439..a9a7570 100644 --- a/storage/tracker/redis/conn_test.go +++ b/storage/tracker/redis/conn_test.go @@ -11,9 +11,9 @@ import ( "testing" "time" - "github.com/pushrax/chihaya/config" - "github.com/pushrax/chihaya/storage" - "github.com/pushrax/chihaya/storage/tracker" + "github.com/chihaya/chihaya/config" + "github.com/chihaya/chihaya/storage" + "github.com/chihaya/chihaya/storage/tracker" ) func createTestConn() tracker.Conn { diff --git a/storage/tracker/redis/redis.go b/storage/tracker/redis/redis.go index a445247..04f7754 100644 --- a/storage/tracker/redis/redis.go +++ b/storage/tracker/redis/redis.go @@ -30,9 +30,9 @@ import ( "github.com/garyburd/redigo/redis" - "github.com/pushrax/chihaya/config" - "github.com/pushrax/chihaya/storage" - "github.com/pushrax/chihaya/storage/tracker" + "github.com/chihaya/chihaya/config" + "github.com/chihaya/chihaya/storage" + "github.com/chihaya/chihaya/storage/tracker" ) var ( diff --git a/storage/tracker/redis/redis_test.go b/storage/tracker/redis/redis_test.go index 828f86a..8849eed 100644 --- a/storage/tracker/redis/redis_test.go +++ b/storage/tracker/redis/redis_test.go @@ -14,8 +14,8 @@ import ( "github.com/garyburd/redigo/redis" - "github.com/pushrax/chihaya/config" - "github.com/pushrax/chihaya/storage" + "github.com/chihaya/chihaya/config" + "github.com/chihaya/chihaya/storage" ) var ( diff --git a/storage/tracker/tracker.go b/storage/tracker/tracker.go index e775a50..11cd38f 100644 --- a/storage/tracker/tracker.go +++ b/storage/tracker/tracker.go @@ -10,8 +10,8 @@ import ( "errors" "fmt" - "github.com/pushrax/chihaya/config" - "github.com/pushrax/chihaya/storage" + "github.com/chihaya/chihaya/config" + "github.com/chihaya/chihaya/storage" ) var (