mirror of
https://github.com/LBRYFoundation/tracker.git
synced 2025-08-28 07:51:28 +00:00
Move packages to chihaya org
This commit is contained in:
parent
af6dbcc3cd
commit
93af4912c4
18 changed files with 35 additions and 35 deletions
|
@ -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
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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{}
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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 (
|
||||||
|
|
|
@ -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 (
|
||||||
|
|
|
@ -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 (
|
||||||
|
|
Loading…
Add table
Reference in a new issue