Allow import straight from github

This commit is contained in:
Alicia 2019-02-23 13:09:10 +00:00
parent 9c44c15e8a
commit 5b78c99b04
43 changed files with 64 additions and 64 deletions

View File

@ -2,8 +2,8 @@
This is the source code for Ripple's API. This is the source code for Ripple's API.
- Origin: https://git.zxq.co/ripple/rippleapi - Origin: https://git.github.com/osuYozora/rippleapi
- Mirror: https://github.com/osuripple/api - Mirror: https://github.com/osuyozora/api
## Note to fellow developers: this is not how you do it! ## Note to fellow developers: this is not how you do it!

View File

@ -9,7 +9,7 @@ import (
"unsafe" "unsafe"
"github.com/valyala/fasthttp" "github.com/valyala/fasthttp"
"zxq.co/ripple/rippleapi/common" "github.com/osuYozora/rippleapi/common"
) )
// Method wraps an API method to a HandlerFunc. // Method wraps an API method to a HandlerFunc.

View File

@ -7,7 +7,7 @@ import (
"github.com/jmoiron/sqlx" "github.com/jmoiron/sqlx"
"github.com/thehowl/go-osuapi" "github.com/thehowl/go-osuapi"
"github.com/valyala/fasthttp" "github.com/valyala/fasthttp"
"zxq.co/ripple/rippleapi/common" "github.com/osuYozora/rippleapi/common"
) )
// GetBeatmap retrieves general beatmap information. // GetBeatmap retrieves general beatmap information.

View File

@ -7,7 +7,7 @@ import (
"github.com/jmoiron/sqlx" "github.com/jmoiron/sqlx"
"github.com/valyala/fasthttp" "github.com/valyala/fasthttp"
"zxq.co/ripple/rippleapi/common" "github.com/osuYozora/rippleapi/common"
) )
var modes = []string{"std", "taiko", "ctb", "mania"} var modes = []string{"std", "taiko", "ctb", "mania"}

View File

@ -5,7 +5,7 @@ import (
"strconv" "strconv"
"strings" "strings"
"zxq.co/ripple/rippleapi/common" "github.com/osuYozora/rippleapi/common"
"github.com/jmoiron/sqlx" "github.com/jmoiron/sqlx"
"github.com/valyala/fasthttp" "github.com/valyala/fasthttp"

View File

@ -12,8 +12,8 @@ import (
"github.com/thehowl/go-osuapi" "github.com/thehowl/go-osuapi"
"github.com/valyala/fasthttp" "github.com/valyala/fasthttp"
"gopkg.in/redis.v5" "gopkg.in/redis.v5"
"zxq.co/ripple/ocl" "github.com/osuYozora/ocl"
"zxq.co/ripple/rippleapi/common" "github.com/osuYozora/rippleapi/common"
) )
// R is a redis client. // R is a redis client.

View File

@ -7,7 +7,7 @@ import (
"github.com/jmoiron/sqlx" "github.com/jmoiron/sqlx"
"github.com/valyala/fasthttp" "github.com/valyala/fasthttp"
"gopkg.in/thehowl/go-osuapi.v1" "gopkg.in/thehowl/go-osuapi.v1"
"zxq.co/ripple/rippleapi/common" "github.com/osuYozora/rippleapi/common"
"zxq.co/x/getrank" "zxq.co/x/getrank"
) )

View File

@ -9,7 +9,7 @@ import (
"github.com/buaazp/fasthttprouter" "github.com/buaazp/fasthttprouter"
"github.com/jmoiron/sqlx" "github.com/jmoiron/sqlx"
"github.com/valyala/fasthttp" "github.com/valyala/fasthttp"
"zxq.co/ripple/rippleapi/common" "github.com/osuYozora/rippleapi/common"
) )
type router struct { type router struct {

View File

@ -9,11 +9,11 @@ import (
"github.com/getsentry/raven-go" "github.com/getsentry/raven-go"
"github.com/jmoiron/sqlx" "github.com/jmoiron/sqlx"
"gopkg.in/redis.v5" "gopkg.in/redis.v5"
"zxq.co/ripple/rippleapi/app/internals" "github.com/osuYozora/rippleapi/app/internals"
"zxq.co/ripple/rippleapi/app/peppy" "github.com/osuYozora/rippleapi/app/peppy"
"zxq.co/ripple/rippleapi/app/v1" "github.com/osuYozora/rippleapi/app/v1"
"zxq.co/ripple/rippleapi/app/websockets" "github.com/osuYozora/rippleapi/app/websockets"
"zxq.co/ripple/rippleapi/common" "github.com/osuYozora/rippleapi/common"
) )
var ( var (

View File

@ -8,7 +8,7 @@ import (
"time" "time"
"github.com/jmoiron/sqlx" "github.com/jmoiron/sqlx"
"zxq.co/ripple/rippleapi/common" "github.com/osuYozora/rippleapi/common"
) )
// GetTokenFull retrieves an user ID and their token privileges knowing their API token. // GetTokenFull retrieves an user ID and their token privileges knowing their API token.

View File

@ -4,7 +4,7 @@ import (
"encoding/json" "encoding/json"
"github.com/valyala/fasthttp" "github.com/valyala/fasthttp"
"zxq.co/ripple/rippleapi/common" "github.com/osuYozora/rippleapi/common"
) )
type response404 struct { type response404 struct {

View File

@ -3,7 +3,7 @@ package v1
import ( import (
"database/sql" "database/sql"
"zxq.co/ripple/rippleapi/common" "github.com/osuYozora/rippleapi/common"
) )
type singleBadge struct { type singleBadge struct {

View File

@ -3,7 +3,7 @@ package v1
import ( import (
"database/sql" "database/sql"
"zxq.co/ripple/rippleapi/common" "github.com/osuYozora/rippleapi/common"
) )
type difficulty struct { type difficulty struct {

View File

@ -6,8 +6,8 @@ import (
"strconv" "strconv"
"time" "time"
"zxq.co/ripple/rippleapi/common" "github.com/osuYozora/rippleapi/common"
"zxq.co/ripple/rippleapi/limit" "github.com/osuYozora/rippleapi/limit"
) )
type rankRequestsStatusResponse struct { type rankRequestsStatusResponse struct {

View File

@ -10,7 +10,7 @@ import (
"strings" "strings"
"time" "time"
"zxq.co/ripple/rippleapi/common" "github.com/osuYozora/rippleapi/common"
) )
// This basically proxies requests from Medium's API and is used on Ripple's // This basically proxies requests from Medium's API and is used on Ripple's

View File

@ -3,7 +3,7 @@ package v1
import ( import (
"strings" "strings"
"zxq.co/ripple/rippleapi/common" "github.com/osuYozora/rippleapi/common"
) )
// Boilerplate errors // Boilerplate errors

View File

@ -3,7 +3,7 @@ package v1
import ( import (
"database/sql" "database/sql"
"zxq.co/ripple/rippleapi/common" "github.com/osuYozora/rippleapi/common"
) )
type friendData struct { type friendData struct {

View File

@ -9,8 +9,8 @@ import (
redis "gopkg.in/redis.v5" redis "gopkg.in/redis.v5"
"zxq.co/ripple/ocl" "github.com/osuYozora/ocl"
"zxq.co/ripple/rippleapi/common" "github.com/osuYozora/rippleapi/common"
) )
type leaderboardUser struct { type leaderboardUser struct {

View File

@ -9,7 +9,7 @@ import (
"time" "time"
redis "gopkg.in/redis.v5" redis "gopkg.in/redis.v5"
"zxq.co/ripple/rippleapi/common" "github.com/osuYozora/rippleapi/common"
) )
type setAllowedData struct { type setAllowedData struct {

View File

@ -13,7 +13,7 @@ import (
"syscall" "syscall"
"time" "time"
"zxq.co/ripple/rippleapi/common" "github.com/osuYozora/rippleapi/common"
) )
// MetaRestartGET restarts the API with Zero Downtime™. // MetaRestartGET restarts the API with Zero Downtime™.

View File

@ -5,7 +5,7 @@ package v1
import ( import (
"time" "time"
"zxq.co/ripple/rippleapi/common" "github.com/osuYozora/rippleapi/common"
) )
// MetaRestartGET restarts the API with Zero Downtime™. // MetaRestartGET restarts the API with Zero Downtime™.

View File

@ -4,7 +4,7 @@ import (
"math/rand" "math/rand"
"time" "time"
"zxq.co/ripple/rippleapi/common" "github.com/osuYozora/rippleapi/common"
) )
var rn = rand.New(rand.NewSource(time.Now().UnixNano())) var rn = rand.New(rand.NewSource(time.Now().UnixNano()))

View File

@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"time" "time"
"zxq.co/ripple/rippleapi/common" "github.com/osuYozora/rippleapi/common"
) )
type rapLogData struct { type rapLogData struct {

View File

@ -8,7 +8,7 @@ import (
"strings" "strings"
"gopkg.in/thehowl/go-osuapi.v1" "gopkg.in/thehowl/go-osuapi.v1"
"zxq.co/ripple/rippleapi/common" "github.com/osuYozora/rippleapi/common"
"zxq.co/x/getrank" "zxq.co/x/getrank"
) )

View File

@ -3,8 +3,8 @@ package v1
import ( import (
"strings" "strings"
"zxq.co/ripple/rippleapi/common" "github.com/osuYozora/rippleapi/common"
"zxq.co/ripple/semantic-icons-ugc" "github.com/osuYozora/semantic-icons-ugc"
) )
type donorInfoResponse struct { type donorInfoResponse struct {

View File

@ -11,8 +11,8 @@ import (
"github.com/jmoiron/sqlx" "github.com/jmoiron/sqlx"
"zxq.co/ripple/rippleapi/common" "github.com/osuYozora/rippleapi/common"
"zxq.co/ripple/schiavolib" "github.com/osuYozora/schiavolib"
) )
// TokenSelfDeletePOST deletes the token the user is connecting with. // TokenSelfDeletePOST deletes the token the user is connecting with.

View File

@ -8,8 +8,8 @@ import (
"unicode" "unicode"
"github.com/jmoiron/sqlx" "github.com/jmoiron/sqlx"
"zxq.co/ripple/ocl" "github.com/osuYozora/ocl"
"zxq.co/ripple/rippleapi/common" "github.com/osuYozora/rippleapi/common"
) )
type userData struct { type userData struct {

View File

@ -6,7 +6,7 @@ import (
"time" "time"
"github.com/jmoiron/sqlx" "github.com/jmoiron/sqlx"
"zxq.co/ripple/rippleapi/common" "github.com/osuYozora/rippleapi/common"
) )
// Achievement represents an achievement in the database. // Achievement represents an achievement in the database.

View File

@ -5,7 +5,7 @@ import (
"strings" "strings"
"gopkg.in/thehowl/go-osuapi.v1" "gopkg.in/thehowl/go-osuapi.v1"
"zxq.co/ripple/rippleapi/common" "github.com/osuYozora/rippleapi/common"
"zxq.co/x/getrank" "zxq.co/x/getrank"
) )

View File

@ -5,7 +5,7 @@ import (
"strings" "strings"
"gopkg.in/thehowl/go-osuapi.v1" "gopkg.in/thehowl/go-osuapi.v1"
"zxq.co/ripple/rippleapi/common" "github.com/osuYozora/rippleapi/common"
"zxq.co/x/getrank" "zxq.co/x/getrank"
) )

View File

@ -5,7 +5,7 @@ import (
"strings" "strings"
"gopkg.in/thehowl/go-osuapi.v1" "gopkg.in/thehowl/go-osuapi.v1"
"zxq.co/ripple/rippleapi/common" "github.com/osuYozora/rippleapi/common"
"zxq.co/x/getrank" "zxq.co/x/getrank"
) )

View File

@ -8,7 +8,7 @@ import (
"database/sql" "database/sql"
"zxq.co/ripple/rippleapi/common" "github.com/osuYozora/rippleapi/common"
) )
type websocketUser struct { type websocketUser struct {

View File

@ -3,7 +3,7 @@ package websockets
import ( import (
"encoding/json" "encoding/json"
"zxq.co/ripple/rippleapi/common" "github.com/osuYozora/rippleapi/common"
) )
// SetRestrictedVisibility sets whether the information of restricted users // SetRestrictedVisibility sets whether the information of restricted users

View File

@ -7,8 +7,8 @@ import (
"sync" "sync"
"gopkg.in/thehowl/go-osuapi.v1" "gopkg.in/thehowl/go-osuapi.v1"
"zxq.co/ripple/rippleapi/app/v1" "github.com/osuYozora/rippleapi/app/v1"
"zxq.co/ripple/rippleapi/common" "github.com/osuYozora/rippleapi/common"
"zxq.co/x/getrank" "zxq.co/x/getrank"
) )

View File

@ -10,7 +10,7 @@ import (
"strings" "strings"
"time" "time"
"zxq.co/ripple/rippleapi/common" "github.com/osuYozora/rippleapi/common"
"github.com/jmoiron/sqlx" "github.com/jmoiron/sqlx"
"gopkg.in/thehowl/go-osuapi.v1" "gopkg.in/thehowl/go-osuapi.v1"
) )

View File

@ -5,7 +5,7 @@ import (
"errors" "errors"
"time" "time"
"zxq.co/ripple/rippleapi/common" "github.com/osuYozora/rippleapi/common"
"gopkg.in/thehowl/go-osuapi.v1" "gopkg.in/thehowl/go-osuapi.v1"
) )

View File

@ -90,7 +90,7 @@ func _err(err error, tags map[string]string, user *raven.User, c *fasthttp.Reque
} }
// Create stacktrace // Create stacktrace
st := raven.NewStacktrace(0, 3, []string{"zxq.co/ripple", "git.zxq.co/ripple"}) st := raven.NewStacktrace(0, 3, []string{"github.com/osuYozora", "git.github.com/osuYozora"})
ifaces := []raven.Interface{st, generateRavenHTTP(c)} ifaces := []raven.Interface{st, generateRavenHTTP(c)}
if user != nil { if user != nil {

10
main.go
View File

@ -6,11 +6,11 @@ import (
"strings" "strings"
"syscall" "syscall"
"zxq.co/ripple/agplwarning" "github.com/osuYozora/agplwarning"
"zxq.co/ripple/rippleapi/app" "github.com/osuYozora/rippleapi/app"
"zxq.co/ripple/rippleapi/beatmapget" "github.com/osuYozora/rippleapi/beatmapget"
"zxq.co/ripple/rippleapi/common" "github.com/osuYozora/rippleapi/common"
"zxq.co/ripple/schiavolib" "github.com/osuYozora/schiavolib"
// Golint pls dont break balls // Golint pls dont break balls
_ "github.com/go-sql-driver/mysql" _ "github.com/go-sql-driver/mysql"
"github.com/jmoiron/sqlx" "github.com/jmoiron/sqlx"

View File

@ -10,8 +10,8 @@ import (
"github.com/rcrowley/goagain" "github.com/rcrowley/goagain"
"github.com/valyala/fasthttp" "github.com/valyala/fasthttp"
"zxq.co/ripple/rippleapi/common" "github.com/osuYozora/rippleapi/common"
"zxq.co/ripple/schiavolib" "github.com/osuYozora/schiavolib"
) )
func startuato(hn fasthttp.RequestHandler) { func startuato(hn fasthttp.RequestHandler) {

View File

@ -10,7 +10,7 @@ import (
"net" "net"
"github.com/valyala/fasthttp" "github.com/valyala/fasthttp"
"zxq.co/ripple/rippleapi/common" "github.com/osuYozora/rippleapi/common"
) )
func startuato(hn fasthttp.RequestHandler) { func startuato(hn fasthttp.RequestHandler) {

10
vendor/vendor.json vendored
View File

@ -184,25 +184,25 @@
}, },
{ {
"checksumSHA1": "vTjp3tQOr8z8CNjZWwPzgR+t2qQ=", "checksumSHA1": "vTjp3tQOr8z8CNjZWwPzgR+t2qQ=",
"path": "zxq.co/ripple/agplwarning", "path": "github.com/osuYozora/agplwarning",
"revision": "d3a3d0ee424fcb0bd09a651354c1735285f59f8c", "revision": "d3a3d0ee424fcb0bd09a651354c1735285f59f8c",
"revisionTime": "2018-02-04T10:46:38Z" "revisionTime": "2018-02-04T10:46:38Z"
}, },
{ {
"checksumSHA1": "SI9tgNMlnMhxP7t6cAGuDjvoAHg=", "checksumSHA1": "SI9tgNMlnMhxP7t6cAGuDjvoAHg=",
"path": "zxq.co/ripple/ocl", "path": "github.com/osuYozora/ocl",
"revision": "b499c4fc6bcd791b59dc994059e6f53cd939cf24", "revision": "b499c4fc6bcd791b59dc994059e6f53cd939cf24",
"revisionTime": "2016-05-18T15:55:25Z" "revisionTime": "2016-05-18T15:55:25Z"
}, },
{ {
"checksumSHA1": "+6t1fYk62F/7QAol2NrKdVfQIkE=", "checksumSHA1": "+6t1fYk62F/7QAol2NrKdVfQIkE=",
"path": "zxq.co/ripple/schiavolib", "path": "github.com/osuYozora/schiavolib",
"revision": "9cdc674dad0700ec79618de4ab558db6ad1de372", "revision": "9cdc674dad0700ec79618de4ab558db6ad1de372",
"revisionTime": "2016-11-09T21:02:50Z" "revisionTime": "2016-11-09T21:02:50Z"
}, },
{ {
"checksumSHA1": "LflfmgveoAndDoPYavJaQ9XhzGk=", "checksumSHA1": "LflfmgveoAndDoPYavJaQ9XhzGk=",
"path": "zxq.co/ripple/semantic-icons-ugc", "path": "github.com/osuYozora/semantic-icons-ugc",
"revision": "82d4c266de98a1464887d4e55e1a02b75e71e5c9", "revision": "82d4c266de98a1464887d4e55e1a02b75e71e5c9",
"revisionTime": "2016-11-23T19:03:31Z" "revisionTime": "2016-11-23T19:03:31Z"
}, },
@ -213,5 +213,5 @@
"revisionTime": "2017-04-18T18:31:09Z" "revisionTime": "2017-04-18T18:31:09Z"
} }
], ],
"rootPath": "zxq.co/ripple/rippleapi" "rootPath": "github.com/osuYozora/rippleapi"
} }

View File

@ -1 +1 @@
# ocl [![GoDoc](https://godoc.org/git.zxq.co/ripple/ocl?status.svg)](https://godoc.org/git.zxq.co/ripple/ocl) [![Go Report Card](https://goreportcard.com/badge/git.zxq.co/ripple/ocl)](https://goreportcard.com/report/git.zxq.co/ripple/ocl) # ocl [![GoDoc](https://godoc.org/git.github.com/osuYozora/ocl?status.svg)](https://godoc.org/git.github.com/osuYozora/ocl) [![Go Report Card](https://goreportcard.com/badge/git.github.com/osuYozora/ocl)](https://goreportcard.com/report/git.github.com/osuYozora/ocl)

View File

@ -1 +1 @@
https://godoc.org/git.zxq.co/ripple/semantic-icons-ugc https://godoc.org/git.github.com/osuYozora/semantic-icons-ugc