Move from git.zxq.co to zxq.co
This commit is contained in:
parent
62612cfdb8
commit
41ee4c90b3
|
@ -9,7 +9,7 @@ import (
|
|||
"regexp"
|
||||
"strings"
|
||||
|
||||
"git.zxq.co/ripple/rippleapi/common"
|
||||
"zxq.co/ripple/rippleapi/common"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"strconv"
|
||||
"strings"
|
||||
|
||||
"git.zxq.co/ripple/rippleapi/common"
|
||||
"zxq.co/ripple/rippleapi/common"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/jmoiron/sqlx"
|
||||
"github.com/thehowl/go-osuapi"
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"database/sql"
|
||||
"strconv"
|
||||
|
||||
"git.zxq.co/ripple/rippleapi/common"
|
||||
"zxq.co/ripple/rippleapi/common"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/jmoiron/sqlx"
|
||||
|
|
|
@ -5,9 +5,9 @@ import (
|
|||
"strconv"
|
||||
"strings"
|
||||
|
||||
"git.zxq.co/ripple/rippleapi/common"
|
||||
"zxq.co/ripple/rippleapi/common"
|
||||
|
||||
"git.zxq.co/x/getrank"
|
||||
"zxq.co/x/getrank"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/jmoiron/sqlx"
|
||||
"gopkg.in/thehowl/go-osuapi.v1"
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"database/sql"
|
||||
"fmt"
|
||||
|
||||
"git.zxq.co/ripple/ocl"
|
||||
"zxq.co/ripple/ocl"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/jmoiron/sqlx"
|
||||
"github.com/thehowl/go-osuapi"
|
||||
|
|
|
@ -4,8 +4,8 @@ import (
|
|||
"fmt"
|
||||
"strings"
|
||||
|
||||
"git.zxq.co/ripple/rippleapi/common"
|
||||
"git.zxq.co/x/getrank"
|
||||
"zxq.co/ripple/rippleapi/common"
|
||||
"zxq.co/x/getrank"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/jmoiron/sqlx"
|
||||
"gopkg.in/thehowl/go-osuapi.v1"
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"strconv"
|
||||
"time"
|
||||
|
||||
"git.zxq.co/ripple/rippleapi/limit"
|
||||
"zxq.co/ripple/rippleapi/limit"
|
||||
)
|
||||
|
||||
const reqsPerSecond = 5000
|
||||
|
|
|
@ -18,7 +18,7 @@ func Recovery(client *raven.Client, onlyCrashes bool) gin.HandlerFunc {
|
|||
var requestBody []byte
|
||||
|
||||
defer func() {
|
||||
st := raven.NewStacktrace(0, 3, []string{"git.zxq.co/ripple"})
|
||||
st := raven.NewStacktrace(0, 3, []string{"zxq.co/ripple"})
|
||||
|
||||
tokenRaw, ex := c.Get("token")
|
||||
var token string
|
||||
|
|
|
@ -3,10 +3,10 @@ package app
|
|||
import (
|
||||
"fmt"
|
||||
|
||||
"git.zxq.co/ripple/rippleapi/app/internals"
|
||||
"git.zxq.co/ripple/rippleapi/app/peppy"
|
||||
"git.zxq.co/ripple/rippleapi/app/v1"
|
||||
"git.zxq.co/ripple/rippleapi/common"
|
||||
"zxq.co/ripple/rippleapi/app/internals"
|
||||
"zxq.co/ripple/rippleapi/app/peppy"
|
||||
"zxq.co/ripple/rippleapi/app/v1"
|
||||
"zxq.co/ripple/rippleapi/common"
|
||||
"github.com/DataDog/datadog-go/statsd"
|
||||
"github.com/getsentry/raven-go"
|
||||
"github.com/gin-gonic/contrib/gzip"
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
"fmt"
|
||||
"time"
|
||||
|
||||
"git.zxq.co/ripple/rippleapi/common"
|
||||
"zxq.co/ripple/rippleapi/common"
|
||||
"github.com/jmoiron/sqlx"
|
||||
)
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package v1
|
||||
|
||||
import (
|
||||
"git.zxq.co/ripple/rippleapi/common"
|
||||
"zxq.co/ripple/rippleapi/common"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ package v1
|
|||
import (
|
||||
"database/sql"
|
||||
|
||||
"git.zxq.co/ripple/rippleapi/common"
|
||||
"zxq.co/ripple/rippleapi/common"
|
||||
)
|
||||
|
||||
type singleBadge struct {
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"fmt"
|
||||
"net/url"
|
||||
|
||||
"git.zxq.co/ripple/rippleapi/common"
|
||||
"zxq.co/ripple/rippleapi/common"
|
||||
)
|
||||
|
||||
type difficulty struct {
|
||||
|
|
|
@ -6,8 +6,8 @@ import (
|
|||
"strconv"
|
||||
"time"
|
||||
|
||||
"git.zxq.co/ripple/rippleapi/common"
|
||||
"git.zxq.co/ripple/rippleapi/limit"
|
||||
"zxq.co/ripple/rippleapi/common"
|
||||
"zxq.co/ripple/rippleapi/limit"
|
||||
)
|
||||
|
||||
type rankRequestsStatusResponse struct {
|
||||
|
|
|
@ -3,7 +3,7 @@ package v1
|
|||
import (
|
||||
"time"
|
||||
|
||||
"git.zxq.co/ripple/rippleapi/common"
|
||||
"zxq.co/ripple/rippleapi/common"
|
||||
)
|
||||
|
||||
type blogPost struct {
|
||||
|
|
|
@ -3,7 +3,7 @@ package v1
|
|||
import (
|
||||
"database/sql"
|
||||
|
||||
"git.zxq.co/ripple/rippleapi/common"
|
||||
"zxq.co/ripple/rippleapi/common"
|
||||
)
|
||||
|
||||
type docFile struct {
|
||||
|
|
|
@ -3,7 +3,7 @@ package v1
|
|||
import (
|
||||
"strings"
|
||||
|
||||
"git.zxq.co/ripple/rippleapi/common"
|
||||
"zxq.co/ripple/rippleapi/common"
|
||||
)
|
||||
|
||||
// Boilerplate errors
|
||||
|
|
|
@ -3,7 +3,7 @@ package v1
|
|||
import (
|
||||
"database/sql"
|
||||
|
||||
"git.zxq.co/ripple/rippleapi/common"
|
||||
"zxq.co/ripple/rippleapi/common"
|
||||
)
|
||||
|
||||
type friendData struct {
|
||||
|
|
|
@ -3,8 +3,8 @@ package v1
|
|||
import (
|
||||
"fmt"
|
||||
|
||||
"git.zxq.co/ripple/ocl"
|
||||
"git.zxq.co/ripple/rippleapi/common"
|
||||
"zxq.co/ripple/ocl"
|
||||
"zxq.co/ripple/rippleapi/common"
|
||||
)
|
||||
|
||||
type leaderboardUser struct {
|
||||
|
|
|
@ -3,7 +3,7 @@ package v1
|
|||
import (
|
||||
"time"
|
||||
|
||||
"git.zxq.co/ripple/rippleapi/common"
|
||||
"zxq.co/ripple/rippleapi/common"
|
||||
)
|
||||
|
||||
type setAllowedData struct {
|
||||
|
|
|
@ -14,7 +14,7 @@ import (
|
|||
"syscall"
|
||||
"time"
|
||||
|
||||
"git.zxq.co/ripple/rippleapi/common"
|
||||
"zxq.co/ripple/rippleapi/common"
|
||||
)
|
||||
|
||||
// MetaRestartGET restarts the API with Zero Downtime™.
|
||||
|
|
|
@ -5,7 +5,7 @@ package v1
|
|||
import (
|
||||
"time"
|
||||
|
||||
"git.zxq.co/ripple/rippleapi/common"
|
||||
"zxq.co/ripple/rippleapi/common"
|
||||
)
|
||||
|
||||
// MetaRestartGET restarts the API with Zero Downtime™.
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"math/rand"
|
||||
"time"
|
||||
|
||||
"git.zxq.co/ripple/rippleapi/common"
|
||||
"zxq.co/ripple/rippleapi/common"
|
||||
)
|
||||
|
||||
var rn = rand.New(rand.NewSource(time.Now().UnixNano()))
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"fmt"
|
||||
"strconv"
|
||||
|
||||
"git.zxq.co/ripple/rippleapi/common"
|
||||
"zxq.co/ripple/rippleapi/common"
|
||||
)
|
||||
|
||||
type score struct {
|
||||
|
|
|
@ -3,8 +3,8 @@ package v1
|
|||
import (
|
||||
"strings"
|
||||
|
||||
"git.zxq.co/ripple/rippleapi/common"
|
||||
"git.zxq.co/ripple/semantic-icons-ugc"
|
||||
"zxq.co/ripple/rippleapi/common"
|
||||
"zxq.co/ripple/semantic-icons-ugc"
|
||||
)
|
||||
|
||||
type donorInfoResponse struct {
|
||||
|
|
|
@ -8,9 +8,9 @@ import (
|
|||
|
||||
"github.com/jmoiron/sqlx"
|
||||
|
||||
"git.zxq.co/ripple/rippleapi/common"
|
||||
"git.zxq.co/ripple/rippleapi/limit"
|
||||
"git.zxq.co/ripple/schiavolib"
|
||||
"zxq.co/ripple/rippleapi/common"
|
||||
"zxq.co/ripple/rippleapi/limit"
|
||||
"zxq.co/ripple/schiavolib"
|
||||
"golang.org/x/crypto/bcrypt"
|
||||
)
|
||||
|
||||
|
|
|
@ -8,8 +8,8 @@ import (
|
|||
|
||||
"github.com/jmoiron/sqlx"
|
||||
|
||||
"git.zxq.co/ripple/ocl"
|
||||
"git.zxq.co/ripple/rippleapi/common"
|
||||
"zxq.co/ripple/ocl"
|
||||
"zxq.co/ripple/rippleapi/common"
|
||||
)
|
||||
|
||||
type userData struct {
|
||||
|
|
|
@ -3,7 +3,7 @@ package v1
|
|||
import (
|
||||
"fmt"
|
||||
|
||||
"git.zxq.co/ripple/rippleapi/common"
|
||||
"zxq.co/ripple/rippleapi/common"
|
||||
)
|
||||
|
||||
type userScore struct {
|
||||
|
|
|
@ -10,7 +10,7 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"git.zxq.co/ripple/rippleapi/common"
|
||||
"zxq.co/ripple/rippleapi/common"
|
||||
"github.com/jmoiron/sqlx"
|
||||
"gopkg.in/thehowl/go-osuapi.v1"
|
||||
)
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"errors"
|
||||
"time"
|
||||
|
||||
"git.zxq.co/ripple/rippleapi/common"
|
||||
"zxq.co/ripple/rippleapi/common"
|
||||
"gopkg.in/thehowl/go-osuapi.v1"
|
||||
)
|
||||
|
||||
|
|
8
main.go
8
main.go
|
@ -6,10 +6,10 @@ import (
|
|||
"strings"
|
||||
"syscall"
|
||||
|
||||
"git.zxq.co/ripple/rippleapi/app"
|
||||
"git.zxq.co/ripple/rippleapi/beatmapget"
|
||||
"git.zxq.co/ripple/rippleapi/common"
|
||||
"git.zxq.co/ripple/schiavolib"
|
||||
"zxq.co/ripple/rippleapi/app"
|
||||
"zxq.co/ripple/rippleapi/beatmapget"
|
||||
"zxq.co/ripple/rippleapi/common"
|
||||
"zxq.co/ripple/schiavolib"
|
||||
// Golint pls dont break balls
|
||||
_ "github.com/go-sql-driver/mysql"
|
||||
"github.com/jmoiron/sqlx"
|
||||
|
|
|
@ -9,8 +9,8 @@ import (
|
|||
"fmt"
|
||||
"time"
|
||||
|
||||
"git.zxq.co/ripple/schiavolib"
|
||||
"git.zxq.co/ripple/rippleapi/common"
|
||||
"zxq.co/ripple/schiavolib"
|
||||
"zxq.co/ripple/rippleapi/common"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/rcrowley/goagain"
|
||||
)
|
||||
|
|
|
@ -8,7 +8,7 @@ import (
|
|||
"net/http"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
"git.zxq.co/ripple/rippleapi/common"
|
||||
"zxq.co/ripple/rippleapi/common"
|
||||
)
|
||||
|
||||
func startuato(engine *gin.Engine) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user