This commit is contained in:
Alicia 2019-02-25 21:04:55 +00:00
parent 303b248408
commit bd1b959836
42 changed files with 50 additions and 50 deletions

View File

@ -2,7 +2,7 @@
This is the source code for Ripple's API. This is the source code for Ripple's API.
- Origin: https://git.github.com/osuYozora/api - Origin: https://git.github.com/osuyozora/api
- Mirror: https://github.com/osuyozora/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"
"github.com/osuYozora/api/common" "github.com/osuyozora/api/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"
"github.com/osuYozora/api/common" "github.com/osuyozora/api/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"
"github.com/osuYozora/api/common" "github.com/osuyozora/api/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"
"github.com/osuYozora/api/common" "github.com/osuyozora/api/common"
"github.com/jmoiron/sqlx" "github.com/jmoiron/sqlx"
"github.com/valyala/fasthttp" "github.com/valyala/fasthttp"

View File

@ -13,7 +13,7 @@ import (
"github.com/valyala/fasthttp" "github.com/valyala/fasthttp"
"gopkg.in/redis.v5" "gopkg.in/redis.v5"
"zxq.co/ripple/ocl" "zxq.co/ripple/ocl"
"github.com/osuYozora/api/common" "github.com/osuyozora/api/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"
"github.com/osuYozora/api/common" "github.com/osuyozora/api/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"
"github.com/osuYozora/api/common" "github.com/osuyozora/api/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"
"github.com/osuYozora/api/app/internals" "github.com/osuyozora/api/app/internals"
"github.com/osuYozora/api/app/peppy" "github.com/osuyozora/api/app/peppy"
"github.com/osuYozora/api/app/v1" "github.com/osuyozora/api/app/v1"
"github.com/osuYozora/api/app/websockets" "github.com/osuyozora/api/app/websockets"
"github.com/osuYozora/api/common" "github.com/osuyozora/api/common"
) )
var ( var (

View File

@ -8,7 +8,7 @@ import (
"time" "time"
"github.com/jmoiron/sqlx" "github.com/jmoiron/sqlx"
"github.com/osuYozora/api/common" "github.com/osuyozora/api/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"
"github.com/osuYozora/api/common" "github.com/osuyozora/api/common"
) )
type response404 struct { type response404 struct {

View File

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

View File

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

View File

@ -6,8 +6,8 @@ import (
"strconv" "strconv"
"time" "time"
"github.com/osuYozora/api/common" "github.com/osuyozora/api/common"
"github.com/osuYozora/api/limit" "github.com/osuyozora/api/limit"
) )
type rankRequestsStatusResponse struct { type rankRequestsStatusResponse struct {

View File

@ -10,7 +10,7 @@ import (
"strings" "strings"
"time" "time"
"github.com/osuYozora/api/common" "github.com/osuyozora/api/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

@ -5,7 +5,7 @@ import (
"fmt" "fmt"
"sort" "sort"
"strconv" "strconv"
"github.com/osuYozora/api/common" "github.com/osuyozora/api/common"
) )
type singleClan struct { type singleClan struct {

View File

@ -3,7 +3,7 @@ package v1
import ( import (
"strings" "strings"
"github.com/osuYozora/api/common" "github.com/osuyozora/api/common"
) )
// Boilerplate errors // Boilerplate errors

View File

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

View File

@ -10,7 +10,7 @@ import (
redis "gopkg.in/redis.v5" redis "gopkg.in/redis.v5"
"zxq.co/ripple/ocl" "zxq.co/ripple/ocl"
"github.com/osuYozora/api/common" "github.com/osuyozora/api/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"
"github.com/osuYozora/api/common" "github.com/osuyozora/api/common"
) )
type setAllowedData struct { type setAllowedData struct {

View File

@ -13,7 +13,7 @@ import (
"syscall" "syscall"
"time" "time"
"github.com/osuYozora/api/common" "github.com/osuyozora/api/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"
"github.com/osuYozora/api/common" "github.com/osuyozora/api/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"
"github.com/osuYozora/api/common" "github.com/osuyozora/api/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"
"github.com/osuYozora/api/common" "github.com/osuyozora/api/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"
"github.com/osuYozora/api/common" "github.com/osuyozora/api/common"
"zxq.co/x/getrank" "zxq.co/x/getrank"
) )

View File

@ -3,7 +3,7 @@ package v1
import ( import (
"strings" "strings"
"github.com/osuYozora/api/common" "github.com/osuyozora/api/common"
"zxq.co/ripple/semantic-icons-ugc" "zxq.co/ripple/semantic-icons-ugc"
) )

View File

@ -11,7 +11,7 @@ import (
"github.com/jmoiron/sqlx" "github.com/jmoiron/sqlx"
"github.com/osuYozora/api/common" "github.com/osuyozora/api/common"
"zxq.co/ripple/schiavolib" "zxq.co/ripple/schiavolib"
) )

View File

@ -9,7 +9,7 @@ import (
"github.com/jmoiron/sqlx" "github.com/jmoiron/sqlx"
"zxq.co/ripple/ocl" "zxq.co/ripple/ocl"
"github.com/osuYozora/api/common" "github.com/osuyozora/api/common"
) )
type userData struct { type userData struct {

View File

@ -6,7 +6,7 @@ import (
"time" "time"
"github.com/jmoiron/sqlx" "github.com/jmoiron/sqlx"
"github.com/osuYozora/api/common" "github.com/osuyozora/api/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"
"github.com/osuYozora/api/common" "github.com/osuyozora/api/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"
"github.com/osuYozora/api/common" "github.com/osuyozora/api/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"
"github.com/osuYozora/api/common" "github.com/osuyozora/api/common"
"zxq.co/x/getrank" "zxq.co/x/getrank"
) )

View File

@ -8,7 +8,7 @@ import (
"database/sql" "database/sql"
"github.com/osuYozora/api/common" "github.com/osuyozora/api/common"
) )
type websocketUser struct { type websocketUser struct {

View File

@ -3,7 +3,7 @@ package websockets
import ( import (
"encoding/json" "encoding/json"
"github.com/osuYozora/api/common" "github.com/osuyozora/api/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"
"github.com/osuYozora/api/app/v1" "github.com/osuyozora/api/app/v1"
"github.com/osuYozora/api/common" "github.com/osuyozora/api/common"
"zxq.co/x/getrank" "zxq.co/x/getrank"
) )

View File

@ -10,7 +10,7 @@ import (
"strings" "strings"
"time" "time"
"github.com/osuYozora/api/common" "github.com/osuyozora/api/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"
"github.com/osuYozora/api/common" "github.com/osuyozora/api/common"
"gopkg.in/thehowl/go-osuapi.v1" "gopkg.in/thehowl/go-osuapi.v1"
) )

View File

@ -7,9 +7,9 @@ import (
"syscall" "syscall"
"zxq.co/ripple/agplwarning" "zxq.co/ripple/agplwarning"
"github.com/osuYozora/api/app" "github.com/osuyozora/api/app"
"github.com/osuYozora/api/beatmapget" "github.com/osuyozora/api/beatmapget"
"github.com/osuYozora/api/common" "github.com/osuyozora/api/common"
"zxq.co/ripple/schiavolib" "zxq.co/ripple/schiavolib"
// Golint pls dont break balls // Golint pls dont break balls
_ "github.com/go-sql-driver/mysql" _ "github.com/go-sql-driver/mysql"

View File

@ -10,7 +10,7 @@ import (
"github.com/rcrowley/goagain" "github.com/rcrowley/goagain"
"github.com/valyala/fasthttp" "github.com/valyala/fasthttp"
"github.com/osuYozora/api/common" "github.com/osuyozora/api/common"
"zxq.co/ripple/schiavolib" "zxq.co/ripple/schiavolib"
) )

View File

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

View File

@ -286,7 +286,7 @@ func (c *Client) Timing(name string, value time.Duration, tags []string, rate fl
} }
// TimeInMilliseconds sends timing information in milliseconds. // TimeInMilliseconds sends timing information in milliseconds.
// It is flushed by statsd with percentiles, mean and other info (https://github.com/etsy/statsd/blob/master/docs/metric_types.md#timing) // It is flushed by statsd with percentiles, mean and other info (.com/etsy/statsd/blob/master/docs/metric_types.md#timing)
func (c *Client) TimeInMilliseconds(name string, value float64, tags []string, rate float64) error { func (c *Client) TimeInMilliseconds(name string, value float64, tags []string, rate float64) error {
stat := fmt.Sprintf("%f|ms", value) stat := fmt.Sprintf("%f|ms", value)
return c.send(name, stat, tags, rate) return c.send(name, stat, tags, rate)

2
vendor/vendor.json vendored
View File

@ -213,5 +213,5 @@
"revisionTime": "2017-04-18T18:31:09Z" "revisionTime": "2017-04-18T18:31:09Z"
} }
], ],
"rootPath": "github.com/osuYozora/api" "rootPath": "github.com/osuyozora/api"
} }