mirror of
https://github.com/elyby/chrly.git
synced 2025-05-31 14:11:51 +05:30
Replace base module name from github.com/elyby/chrly to ely.by/chrly
This commit is contained in:
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@@ -68,7 +68,7 @@ jobs:
|
|||||||
run: >
|
run: >
|
||||||
go build
|
go build
|
||||||
-trimpath
|
-trimpath
|
||||||
-ldflags "-w -s -X github.com/elyby/chrly/internal/version.version=${{ steps.version.outputs.version }} -X github.com/elyby/chrly/internal/version.commit=${{ github.sha }}"
|
-ldflags "-w -s -X ely.by/chrly/internal/version.version=${{ steps.version.outputs.version }} -X ely.by/chrly/internal/version.commit=${{ github.sha }}"
|
||||||
-o ./chrly ./cmd/chrly/...
|
-o ./chrly ./cmd/chrly/...
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
|
@@ -4,7 +4,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
. "github.com/elyby/chrly/internal/cmd"
|
. "ely.by/chrly/internal/cmd"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
2
go.mod
2
go.mod
@@ -1,4 +1,4 @@
|
|||||||
module github.com/elyby/chrly
|
module ely.by/chrly
|
||||||
|
|
||||||
go 1.21
|
go 1.21
|
||||||
|
|
||||||
|
@@ -8,9 +8,9 @@ import (
|
|||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
|
|
||||||
"github.com/elyby/chrly/internal/di"
|
"ely.by/chrly/internal/di"
|
||||||
"github.com/elyby/chrly/internal/http"
|
"ely.by/chrly/internal/http"
|
||||||
"github.com/elyby/chrly/internal/version"
|
"ely.by/chrly/internal/version"
|
||||||
)
|
)
|
||||||
|
|
||||||
var RootCmd = &cobra.Command{
|
var RootCmd = &cobra.Command{
|
||||||
|
@@ -4,7 +4,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
"log"
|
||||||
|
|
||||||
"github.com/elyby/chrly/internal/http"
|
"ely.by/chrly/internal/http"
|
||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
@@ -7,7 +7,7 @@ import (
|
|||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
"github.com/elyby/chrly/internal/version"
|
"ely.by/chrly/internal/version"
|
||||||
)
|
)
|
||||||
|
|
||||||
var versionCmd = &cobra.Command{
|
var versionCmd = &cobra.Command{
|
||||||
|
@@ -7,7 +7,7 @@ import (
|
|||||||
|
|
||||||
"github.com/mediocregopher/radix/v4"
|
"github.com/mediocregopher/radix/v4"
|
||||||
|
|
||||||
"github.com/elyby/chrly/internal/db"
|
"ely.by/chrly/internal/db"
|
||||||
)
|
)
|
||||||
|
|
||||||
const usernameToProfileKey = "hash:username-to-profile"
|
const usernameToProfileKey = "hash:username-to-profile"
|
||||||
|
@@ -15,7 +15,7 @@ import (
|
|||||||
assert "github.com/stretchr/testify/require"
|
assert "github.com/stretchr/testify/require"
|
||||||
"github.com/stretchr/testify/suite"
|
"github.com/stretchr/testify/suite"
|
||||||
|
|
||||||
"github.com/elyby/chrly/internal/db"
|
"ely.by/chrly/internal/db"
|
||||||
)
|
)
|
||||||
|
|
||||||
var redisAddr string
|
var redisAddr string
|
||||||
|
@@ -7,11 +7,11 @@ import (
|
|||||||
"github.com/defval/di"
|
"github.com/defval/di"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
|
|
||||||
db2 "github.com/elyby/chrly/internal/db"
|
db2 "ely.by/chrly/internal/db"
|
||||||
"github.com/elyby/chrly/internal/db/redis"
|
"ely.by/chrly/internal/db/redis"
|
||||||
es "github.com/elyby/chrly/internal/eventsubscribers"
|
es "ely.by/chrly/internal/eventsubscribers"
|
||||||
"github.com/elyby/chrly/internal/mojang"
|
"ely.by/chrly/internal/mojang"
|
||||||
"github.com/elyby/chrly/internal/profiles"
|
"ely.by/chrly/internal/profiles"
|
||||||
)
|
)
|
||||||
|
|
||||||
// v4 had the idea that it would be possible to separate backends for storing skins and capes.
|
// v4 had the idea that it would be possible to separate backends for storing skins and capes.
|
||||||
|
@@ -4,9 +4,9 @@ import (
|
|||||||
"github.com/defval/di"
|
"github.com/defval/di"
|
||||||
"github.com/mono83/slf"
|
"github.com/mono83/slf"
|
||||||
|
|
||||||
d "github.com/elyby/chrly/internal/dispatcher"
|
d "ely.by/chrly/internal/dispatcher"
|
||||||
"github.com/elyby/chrly/internal/eventsubscribers"
|
"ely.by/chrly/internal/eventsubscribers"
|
||||||
"github.com/elyby/chrly/internal/http"
|
"ely.by/chrly/internal/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
var dispatcher = di.Options(
|
var dispatcher = di.Options(
|
||||||
|
@@ -10,7 +10,7 @@ import (
|
|||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
|
|
||||||
. "github.com/elyby/chrly/internal/http"
|
. "ely.by/chrly/internal/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
var handlers = di.Options(
|
var handlers = di.Options(
|
||||||
|
@@ -13,8 +13,8 @@ import (
|
|||||||
"github.com/mono83/slf/wd"
|
"github.com/mono83/slf/wd"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
|
|
||||||
"github.com/elyby/chrly/internal/eventsubscribers"
|
"ely.by/chrly/internal/eventsubscribers"
|
||||||
"github.com/elyby/chrly/internal/version"
|
"ely.by/chrly/internal/version"
|
||||||
)
|
)
|
||||||
|
|
||||||
var logger = di.Options(
|
var logger = di.Options(
|
||||||
|
@@ -8,8 +8,8 @@ import (
|
|||||||
"github.com/defval/di"
|
"github.com/defval/di"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
|
|
||||||
"github.com/elyby/chrly/internal/mojang"
|
"ely.by/chrly/internal/mojang"
|
||||||
"github.com/elyby/chrly/internal/profiles"
|
"ely.by/chrly/internal/profiles"
|
||||||
)
|
)
|
||||||
|
|
||||||
var mojangTextures = di.Options(
|
var mojangTextures = di.Options(
|
||||||
|
@@ -3,8 +3,8 @@ package di
|
|||||||
import (
|
import (
|
||||||
"github.com/defval/di"
|
"github.com/defval/di"
|
||||||
|
|
||||||
. "github.com/elyby/chrly/internal/http"
|
. "ely.by/chrly/internal/http"
|
||||||
"github.com/elyby/chrly/internal/profiles"
|
"ely.by/chrly/internal/profiles"
|
||||||
)
|
)
|
||||||
|
|
||||||
var profilesDi = di.Options(
|
var profilesDi = di.Options(
|
||||||
|
@@ -11,7 +11,7 @@ import (
|
|||||||
"github.com/getsentry/raven-go"
|
"github.com/getsentry/raven-go"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
|
|
||||||
. "github.com/elyby/chrly/internal/http"
|
. "ely.by/chrly/internal/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
var server = di.Options(
|
var server = di.Options(
|
||||||
|
@@ -7,8 +7,8 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/elyby/chrly/internal/http"
|
"ely.by/chrly/internal/http"
|
||||||
. "github.com/elyby/chrly/internal/signer"
|
. "ely.by/chrly/internal/signer"
|
||||||
|
|
||||||
"github.com/defval/di"
|
"github.com/defval/di"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
|
@@ -9,7 +9,7 @@ import (
|
|||||||
"github.com/mono83/slf/params"
|
"github.com/mono83/slf/params"
|
||||||
"github.com/stretchr/testify/mock"
|
"github.com/stretchr/testify/mock"
|
||||||
|
|
||||||
"github.com/elyby/chrly/internal/dispatcher"
|
"ely.by/chrly/internal/dispatcher"
|
||||||
)
|
)
|
||||||
|
|
||||||
type LoggerMock struct {
|
type LoggerMock struct {
|
||||||
|
@@ -8,7 +8,7 @@ import (
|
|||||||
|
|
||||||
"github.com/mono83/slf"
|
"github.com/mono83/slf"
|
||||||
|
|
||||||
"github.com/elyby/chrly/internal/dispatcher"
|
"ely.by/chrly/internal/dispatcher"
|
||||||
|
|
||||||
"github.com/stretchr/testify/mock"
|
"github.com/stretchr/testify/mock"
|
||||||
)
|
)
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
package eventsubscribers
|
package eventsubscribers
|
||||||
|
|
||||||
import "github.com/elyby/chrly/internal/dispatcher"
|
import "ely.by/chrly/internal/dispatcher"
|
||||||
|
|
||||||
type Subscriber interface {
|
type Subscriber interface {
|
||||||
dispatcher.Subscriber
|
dispatcher.Subscriber
|
||||||
|
@@ -6,8 +6,8 @@ import (
|
|||||||
|
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
|
|
||||||
"github.com/elyby/chrly/internal/db"
|
"ely.by/chrly/internal/db"
|
||||||
"github.com/elyby/chrly/internal/profiles"
|
"ely.by/chrly/internal/profiles"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ProfilesManager interface {
|
type ProfilesManager interface {
|
||||||
|
@@ -13,8 +13,8 @@ import (
|
|||||||
"github.com/stretchr/testify/mock"
|
"github.com/stretchr/testify/mock"
|
||||||
"github.com/stretchr/testify/suite"
|
"github.com/stretchr/testify/suite"
|
||||||
|
|
||||||
"github.com/elyby/chrly/internal/db"
|
"ely.by/chrly/internal/db"
|
||||||
"github.com/elyby/chrly/internal/profiles"
|
"ely.by/chrly/internal/profiles"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ProfilesManagerMock struct {
|
type ProfilesManagerMock struct {
|
||||||
|
@@ -15,8 +15,8 @@ import (
|
|||||||
"github.com/mono83/slf"
|
"github.com/mono83/slf"
|
||||||
"github.com/mono83/slf/wd"
|
"github.com/mono83/slf/wd"
|
||||||
|
|
||||||
"github.com/elyby/chrly/internal/dispatcher"
|
"ely.by/chrly/internal/dispatcher"
|
||||||
v "github.com/elyby/chrly/internal/version"
|
v "ely.by/chrly/internal/version"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Emitter interface {
|
type Emitter interface {
|
||||||
|
@@ -12,9 +12,9 @@ import (
|
|||||||
|
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
|
|
||||||
"github.com/elyby/chrly/internal/db"
|
"ely.by/chrly/internal/db"
|
||||||
"github.com/elyby/chrly/internal/mojang"
|
"ely.by/chrly/internal/mojang"
|
||||||
"github.com/elyby/chrly/internal/utils"
|
"ely.by/chrly/internal/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
var timeNow = time.Now
|
var timeNow = time.Now
|
||||||
|
@@ -16,7 +16,7 @@ import (
|
|||||||
testify "github.com/stretchr/testify/require"
|
testify "github.com/stretchr/testify/require"
|
||||||
"github.com/stretchr/testify/suite"
|
"github.com/stretchr/testify/suite"
|
||||||
|
|
||||||
"github.com/elyby/chrly/internal/db"
|
"ely.by/chrly/internal/db"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ProfilesProviderMock struct {
|
type ProfilesProviderMock struct {
|
||||||
|
@@ -5,7 +5,7 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/elyby/chrly/internal/utils"
|
"ely.by/chrly/internal/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
type BatchUuidsProvider struct {
|
type BatchUuidsProvider struct {
|
||||||
|
@@ -7,7 +7,7 @@ import (
|
|||||||
|
|
||||||
"github.com/go-playground/validator/v10"
|
"github.com/go-playground/validator/v10"
|
||||||
|
|
||||||
"github.com/elyby/chrly/internal/db"
|
"ely.by/chrly/internal/db"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ProfilesRepository interface {
|
type ProfilesRepository interface {
|
||||||
|
@@ -6,7 +6,7 @@ import (
|
|||||||
"github.com/stretchr/testify/mock"
|
"github.com/stretchr/testify/mock"
|
||||||
"github.com/stretchr/testify/suite"
|
"github.com/stretchr/testify/suite"
|
||||||
|
|
||||||
"github.com/elyby/chrly/internal/db"
|
"ely.by/chrly/internal/db"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ProfilesRepositoryMock struct {
|
type ProfilesRepositoryMock struct {
|
||||||
|
@@ -3,8 +3,8 @@ package profiles
|
|||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"github.com/elyby/chrly/internal/db"
|
"ely.by/chrly/internal/db"
|
||||||
"github.com/elyby/chrly/internal/mojang"
|
"ely.by/chrly/internal/mojang"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ProfilesFinder interface {
|
type ProfilesFinder interface {
|
||||||
|
@@ -8,9 +8,9 @@ import (
|
|||||||
"github.com/stretchr/testify/mock"
|
"github.com/stretchr/testify/mock"
|
||||||
"github.com/stretchr/testify/suite"
|
"github.com/stretchr/testify/suite"
|
||||||
|
|
||||||
"github.com/elyby/chrly/internal/db"
|
"ely.by/chrly/internal/db"
|
||||||
"github.com/elyby/chrly/internal/mojang"
|
"ely.by/chrly/internal/mojang"
|
||||||
"github.com/elyby/chrly/internal/utils"
|
"ely.by/chrly/internal/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ProfilesFinderMock struct {
|
type ProfilesFinderMock struct {
|
||||||
|
Reference in New Issue
Block a user