Move packages to chihaya org

This commit is contained in:
Justin Li 2013-11-30 22:39:02 -05:00
parent af6dbcc3cd
commit 93af4912c4
18 changed files with 35 additions and 35 deletions

View file

@ -3,7 +3,7 @@ language: go
go: 1.1.2 go: 1.1.2
env: 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: services:
- redis-server - redis-server

View file

@ -12,7 +12,7 @@ import (
"strconv" "strconv"
"time" "time"
"github.com/pushrax/chihaya/storage" "github.com/chihaya/chihaya/storage"
) )
func (s Server) serveAnnounce(w http.ResponseWriter, r *http.Request) { func (s Server) serveAnnounce(w http.ResponseWriter, r *http.Request) {

View file

@ -11,7 +11,7 @@ import (
"net/http" "net/http"
"path" "path"
"github.com/pushrax/chihaya/storage" "github.com/chihaya/chihaya/storage"
) )
func (s *Server) serveScrape(w http.ResponseWriter, r *http.Request) { func (s *Server) serveScrape(w http.ResponseWriter, r *http.Request) {

View file

@ -18,9 +18,9 @@ import (
"github.com/etix/stoppableListener" "github.com/etix/stoppableListener"
"github.com/pushrax/chihaya/config" "github.com/chihaya/chihaya/config"
"github.com/pushrax/chihaya/storage" "github.com/chihaya/chihaya/storage"
"github.com/pushrax/chihaya/storage/tracker" "github.com/chihaya/chihaya/storage/tracker"
) )
type Server struct { type Server struct {

View file

@ -10,7 +10,7 @@ import (
"sync/atomic" "sync/atomic"
"time" "time"
"github.com/pushrax/chihaya/config" "github.com/chihaya/chihaya/config"
) )
type stats struct { type stats struct {

View file

@ -11,10 +11,10 @@ import (
"os" "os"
"testing" "testing"
"github.com/pushrax/chihaya/config" "github.com/chihaya/chihaya/config"
_ "github.com/pushrax/chihaya/storage/backend/batter" _ "github.com/chihaya/chihaya/storage/backend/batter"
_ "github.com/pushrax/chihaya/storage/tracker/redis" _ "github.com/chihaya/chihaya/storage/tracker/redis"
) )
func newTestServer() (*Server, error) { func newTestServer() (*Server, error) {

View file

@ -9,8 +9,8 @@ package backend
import ( import (
"fmt" "fmt"
"github.com/pushrax/chihaya/config" "github.com/chihaya/chihaya/config"
"github.com/pushrax/chihaya/storage" "github.com/chihaya/chihaya/storage"
) )
var drivers = make(map[string]Driver) var drivers = make(map[string]Driver)

View file

@ -10,8 +10,8 @@ import (
"database/sql" "database/sql"
"fmt" "fmt"
"github.com/pushrax/chihaya/config" "github.com/chihaya/chihaya/config"
"github.com/pushrax/chihaya/storage/backend" "github.com/chihaya/chihaya/storage/backend"
_ "github.com/bmizerany/pq" _ "github.com/bmizerany/pq"
) )

View file

@ -5,7 +5,7 @@
package batter package batter
import ( import (
"github.com/pushrax/chihaya/storage" "github.com/chihaya/chihaya/storage"
) )
func (c *Conn) LoadTorrents(ids []uint64) ([]*storage.Torrent, error) { func (c *Conn) LoadTorrents(ids []uint64) ([]*storage.Torrent, error) {

View file

@ -11,8 +11,8 @@ import (
"fmt" "fmt"
"sync" "sync"
"github.com/pushrax/chihaya/config" "github.com/chihaya/chihaya/config"
"github.com/pushrax/chihaya/storage/backend" "github.com/chihaya/chihaya/storage/backend"
_ "github.com/go-sql-driver/mysql" _ "github.com/go-sql-driver/mysql"
) )

View file

@ -5,7 +5,7 @@
package gazelle package gazelle
import ( import (
"github.com/pushrax/chihaya/storage" "github.com/chihaya/chihaya/storage"
) )
func (c *Conn) LoadTorrents(ids []uint64) ([]*storage.Torrent, error) { func (c *Conn) LoadTorrents(ids []uint64) ([]*storage.Torrent, error) {

View file

@ -5,8 +5,8 @@
package mock package mock
import ( import (
"github.com/pushrax/chihaya/storage" "github.com/chihaya/chihaya/storage"
"github.com/pushrax/chihaya/storage/tracker" "github.com/chihaya/chihaya/storage/tracker"
) )
type Conn struct { type Conn struct {

View file

@ -8,9 +8,9 @@
package mock package mock
import ( import (
"github.com/pushrax/chihaya/config" "github.com/chihaya/chihaya/config"
"github.com/pushrax/chihaya/storage" "github.com/chihaya/chihaya/storage"
"github.com/pushrax/chihaya/storage/tracker" "github.com/chihaya/chihaya/storage/tracker"
) )
type driver struct{} type driver struct{}

View file

@ -7,8 +7,8 @@ package mock
import ( import (
"sync" "sync"
"github.com/pushrax/chihaya/storage" "github.com/chihaya/chihaya/storage"
"github.com/pushrax/chihaya/storage/tracker" "github.com/chihaya/chihaya/storage/tracker"
) )
type Pool struct { type Pool struct {

View file

@ -11,9 +11,9 @@ import (
"testing" "testing"
"time" "time"
"github.com/pushrax/chihaya/config" "github.com/chihaya/chihaya/config"
"github.com/pushrax/chihaya/storage" "github.com/chihaya/chihaya/storage"
"github.com/pushrax/chihaya/storage/tracker" "github.com/chihaya/chihaya/storage/tracker"
) )
func createTestConn() tracker.Conn { func createTestConn() tracker.Conn {

View file

@ -30,9 +30,9 @@ import (
"github.com/garyburd/redigo/redis" "github.com/garyburd/redigo/redis"
"github.com/pushrax/chihaya/config" "github.com/chihaya/chihaya/config"
"github.com/pushrax/chihaya/storage" "github.com/chihaya/chihaya/storage"
"github.com/pushrax/chihaya/storage/tracker" "github.com/chihaya/chihaya/storage/tracker"
) )
var ( var (

View file

@ -14,8 +14,8 @@ import (
"github.com/garyburd/redigo/redis" "github.com/garyburd/redigo/redis"
"github.com/pushrax/chihaya/config" "github.com/chihaya/chihaya/config"
"github.com/pushrax/chihaya/storage" "github.com/chihaya/chihaya/storage"
) )
var ( var (

View file

@ -10,8 +10,8 @@ import (
"errors" "errors"
"fmt" "fmt"
"github.com/pushrax/chihaya/config" "github.com/chihaya/chihaya/config"
"github.com/pushrax/chihaya/storage" "github.com/chihaya/chihaya/storage"
) )
var ( var (