Skip to content
This repository was archived by the owner on Dec 17, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion auth/jwt.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"strings"
"time"

"github.com/SevenTV/Common/utils"
"github.com/golang-jwt/jwt/v4"
"github.com/seventv/common/utils"
)

func SignJWT(secret string, claim jwt.Claims) (string, error) {
Expand Down
2 changes: 1 addition & 1 deletion auth/keypair.jwt.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"encoding/json"
"time"

"github.com/SevenTV/Common/utils"
"github.com/golang-jwt/jwt/v4"
"github.com/seventv/common/utils"
)

/*
Expand Down
2 changes: 1 addition & 1 deletion datastructures/priority_queue/priority_queue.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package priority_queue

import "github.com/SevenTV/Common/datastructures/heap"
import "github.com/seventv/common/datastructures/heap"

type Item[T any] struct {
priority int
Expand Down
2 changes: 1 addition & 1 deletion errors/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"strings"

"github.com/SevenTV/Common/utils"
"github.com/seventv/common/utils"
)

type APIError interface {
Expand Down
4 changes: 2 additions & 2 deletions eventemitter/eventemitter.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"sync/atomic"
"time"

"github.com/SevenTV/Common/sync_map"
"github.com/SevenTV/Common/utils"
"github.com/seventv/common/sync_map"
"github.com/seventv/common/utils"
)

type RawEventEmitter struct {
Expand Down
2 changes: 1 addition & 1 deletion eventemitter/eventlistener.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package eventemitter
import (
"reflect"

"github.com/SevenTV/Common/sync_map"
"github.com/seventv/common/sync_map"
)

type EventListener struct {
Expand Down
2 changes: 1 addition & 1 deletion events/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strings"
"time"

"github.com/SevenTV/Common/utils"
"github.com/seventv/common/utils"
)

type Message[D AnyPayload] struct {
Expand Down
2 changes: 1 addition & 1 deletion events/publish.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"encoding/json"
"strings"

"github.com/SevenTV/Common/redis"
"github.com/seventv/common/redis"
)

func Publish[D AnyPayload](ctx context.Context, msg Message[D], redis redis.Instance) error {
Expand Down
2 changes: 1 addition & 1 deletion events/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"strings"

"github.com/SevenTV/Common/structures/v3"
"github.com/seventv/common/structures/v3"
"go.mongodb.org/mongo-driver/bson/primitive"
)

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/SevenTV/Common
module github.com/seventv/common

go 1.18

Expand Down
6 changes: 3 additions & 3 deletions mongo/indexing/api.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package indexing

import (
"github.com/SevenTV/Common/mongo"
"github.com/SevenTV/Common/structures/v3"
"github.com/SevenTV/Common/utils"
"github.com/seventv/common/mongo"
"github.com/seventv/common/structures/v3"
"github.com/seventv/common/utils"
"go.mongodb.org/mongo-driver/bson"
"go.mongodb.org/mongo-driver/mongo/options"
)
Expand Down
2 changes: 1 addition & 1 deletion mongo/indexing/indexing.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"strings"

"github.com/SevenTV/Common/mongo"
"github.com/seventv/common/mongo"
"go.mongodb.org/mongo-driver/bson"
"go.mongodb.org/mongo-driver/bson/primitive"
"go.uber.org/zap"
Expand Down
2 changes: 1 addition & 1 deletion mongo/inst.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"time"

"github.com/SevenTV/Common/structures/v3"
"github.com/patrickmn/go-cache"
"github.com/seventv/common/structures/v3"
"go.mongodb.org/mongo-driver/bson"
"go.mongodb.org/mongo-driver/mongo"
)
Expand Down
4 changes: 2 additions & 2 deletions redis/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"sync/atomic"
"time"

"github.com/SevenTV/Common/sync_map"
"github.com/SevenTV/Common/utils"
"github.com/go-redis/redis/v8"
"github.com/seventv/common/sync_map"
"github.com/seventv/common/utils"
"go.uber.org/zap"
)

Expand Down
2 changes: 1 addition & 1 deletion structures/v2/const.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package structures

import "github.com/SevenTV/Common/mongo"
import "github.com/seventv/common/mongo"

var (
CollectionNameEmotes = mongo.CollectionName("emotes")
Expand Down
2 changes: 1 addition & 1 deletion structures/v2/type.emote.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package structures
import (
"time"

"github.com/SevenTV/Common/utils"
"github.com/seventv/common/utils"
"go.mongodb.org/mongo-driver/bson/primitive"
)

Expand Down
2 changes: 1 addition & 1 deletion structures/v2/type.user.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package structures
import (
"time"

"github.com/SevenTV/Common/utils"
"github.com/seventv/common/utils"
"go.mongodb.org/mongo-driver/bson"
"go.mongodb.org/mongo-driver/bson/primitive"
)
Expand Down
2 changes: 1 addition & 1 deletion structures/v3/aggregations/aggregations.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package aggregations
import (
"fmt"

"github.com/SevenTV/Common/mongo"
"github.com/seventv/common/mongo"
"go.mongodb.org/mongo-driver/bson"
)

Expand Down
2 changes: 1 addition & 1 deletion structures/v3/aggregations/ban_relations.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package aggregations
import (
"time"

"github.com/SevenTV/Common/mongo"
"github.com/seventv/common/mongo"
"go.mongodb.org/mongo-driver/bson"
)

Expand Down
2 changes: 1 addition & 1 deletion structures/v3/aggregations/emoteset_relations.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package aggregations

import (
"github.com/SevenTV/Common/mongo"
"github.com/seventv/common/mongo"
"go.mongodb.org/mongo-driver/bson"
)

Expand Down
2 changes: 1 addition & 1 deletion structures/v3/aggregations/report_relations.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package aggregations

import (
"github.com/SevenTV/Common/mongo"
"github.com/seventv/common/mongo"
"go.mongodb.org/mongo-driver/bson"
)

Expand Down
2 changes: 1 addition & 1 deletion structures/v3/aggregations/user_relations.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package aggregations

import (
"github.com/SevenTV/Common/mongo"
"github.com/seventv/common/mongo"
"go.mongodb.org/mongo-driver/bson"
)

Expand Down
8 changes: 4 additions & 4 deletions structures/v3/mutations/ban.mutation.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"strings"
"time"

"github.com/SevenTV/Common/errors"
"github.com/SevenTV/Common/mongo"
"github.com/SevenTV/Common/structures/v3"
"github.com/SevenTV/Common/utils"
"github.com/seventv/common/errors"
"github.com/seventv/common/mongo"
"github.com/seventv/common/structures/v3"
"github.com/seventv/common/utils"
"go.mongodb.org/mongo-driver/bson"
"go.mongodb.org/mongo-driver/bson/primitive"
"go.uber.org/zap"
Expand Down
8 changes: 4 additions & 4 deletions structures/v3/mutations/emote.mutation.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"strconv"
"time"

"github.com/SevenTV/Common/errors"
"github.com/SevenTV/Common/mongo"
"github.com/SevenTV/Common/structures/v3"
"github.com/SevenTV/Common/utils"
"github.com/seventv/common/errors"
"github.com/seventv/common/mongo"
"github.com/seventv/common/structures/v3"
"github.com/seventv/common/utils"
"go.mongodb.org/mongo-driver/bson"
"go.mongodb.org/mongo-driver/bson/primitive"
"go.mongodb.org/mongo-driver/mongo/options"
Expand Down
6 changes: 3 additions & 3 deletions structures/v3/mutations/emoteset.create.mutation.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"context"
"strconv"

"github.com/SevenTV/Common/errors"
"github.com/SevenTV/Common/mongo"
"github.com/SevenTV/Common/structures/v3"
"github.com/seventv/common/errors"
"github.com/seventv/common/mongo"
"github.com/seventv/common/structures/v3"
"go.mongodb.org/mongo-driver/bson"
"go.mongodb.org/mongo-driver/bson/primitive"
"go.mongodb.org/mongo-driver/mongo/options"
Expand Down
10 changes: 5 additions & 5 deletions structures/v3/mutations/emoteset.set_emote.mutation.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import (
"context"
"time"

"github.com/SevenTV/Common/errors"
"github.com/SevenTV/Common/mongo"
"github.com/SevenTV/Common/structures/v3"
"github.com/SevenTV/Common/structures/v3/aggregations"
"github.com/SevenTV/Common/utils"
"github.com/hashicorp/go-multierror"
"github.com/seventv/common/errors"
"github.com/seventv/common/mongo"
"github.com/seventv/common/structures/v3"
"github.com/seventv/common/structures/v3/aggregations"
"github.com/seventv/common/utils"
"go.mongodb.org/mongo-driver/bson"
"go.mongodb.org/mongo-driver/bson/primitive"
"go.mongodb.org/mongo-driver/mongo/options"
Expand Down
6 changes: 3 additions & 3 deletions structures/v3/mutations/message.inbox.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"context"
"time"

"github.com/SevenTV/Common/errors"
"github.com/SevenTV/Common/mongo"
"github.com/SevenTV/Common/structures/v3"
"github.com/seventv/common/errors"
"github.com/seventv/common/mongo"
"github.com/seventv/common/structures/v3"
"go.mongodb.org/mongo-driver/bson"
"go.mongodb.org/mongo-driver/bson/primitive"
)
Expand Down
6 changes: 3 additions & 3 deletions structures/v3/mutations/message.mod_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"context"
"time"

"github.com/SevenTV/Common/errors"
"github.com/SevenTV/Common/mongo"
"github.com/SevenTV/Common/structures/v3"
"github.com/seventv/common/errors"
"github.com/seventv/common/mongo"
"github.com/seventv/common/structures/v3"
"go.mongodb.org/mongo-driver/bson"
"go.mongodb.org/mongo-driver/bson/primitive"
)
Expand Down
6 changes: 3 additions & 3 deletions structures/v3/mutations/message.mutation.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package mutations
import (
"context"

"github.com/SevenTV/Common/errors"
"github.com/SevenTV/Common/mongo"
"github.com/SevenTV/Common/structures/v3"
"github.com/seventv/common/errors"
"github.com/seventv/common/mongo"
"github.com/seventv/common/structures/v3"
"go.mongodb.org/mongo-driver/bson"
)

Expand Down
4 changes: 2 additions & 2 deletions structures/v3/mutations/mutations.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package mutations
import (
"sync"

"github.com/SevenTV/Common/mongo"
"github.com/SevenTV/Common/redis"
"github.com/seventv/common/mongo"
"github.com/seventv/common/redis"
)

type Mutate struct {
Expand Down
6 changes: 3 additions & 3 deletions structures/v3/mutations/role.mutation.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"context"
"fmt"

"github.com/SevenTV/Common/errors"
"github.com/SevenTV/Common/mongo"
"github.com/SevenTV/Common/structures/v3"
"github.com/seventv/common/errors"
"github.com/seventv/common/mongo"
"github.com/seventv/common/structures/v3"
"go.mongodb.org/mongo-driver/bson"
"go.mongodb.org/mongo-driver/bson/primitive"
"go.mongodb.org/mongo-driver/mongo/options"
Expand Down
6 changes: 3 additions & 3 deletions structures/v3/mutations/user.active_emote_set.mutation.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package mutations
import (
"context"

"github.com/SevenTV/Common/errors"
"github.com/SevenTV/Common/mongo"
"github.com/SevenTV/Common/structures/v3"
"github.com/seventv/common/errors"
"github.com/seventv/common/mongo"
"github.com/seventv/common/structures/v3"
"go.mongodb.org/mongo-driver/bson"
"go.mongodb.org/mongo-driver/bson/primitive"
"go.mongodb.org/mongo-driver/mongo/options"
Expand Down
6 changes: 3 additions & 3 deletions structures/v3/mutations/user.editors.mutation.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package mutations
import (
"context"

"github.com/SevenTV/Common/errors"
"github.com/SevenTV/Common/mongo"
"github.com/SevenTV/Common/structures/v3"
"github.com/seventv/common/errors"
"github.com/seventv/common/mongo"
"github.com/seventv/common/structures/v3"
"go.mongodb.org/mongo-driver/bson"
)

Expand Down
6 changes: 3 additions & 3 deletions structures/v3/mutations/user.set_role.mutation.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package mutations
import (
"context"

"github.com/SevenTV/Common/errors"
"github.com/SevenTV/Common/mongo"
"github.com/SevenTV/Common/structures/v3"
"github.com/seventv/common/errors"
"github.com/seventv/common/mongo"
"github.com/seventv/common/structures/v3"
"go.mongodb.org/mongo-driver/bson"
"go.mongodb.org/mongo-driver/mongo/options"
)
Expand Down
4 changes: 2 additions & 2 deletions structures/v3/query/query.ban.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"fmt"
"time"

"github.com/SevenTV/Common/mongo"
"github.com/SevenTV/Common/structures/v3"
"github.com/seventv/common/mongo"
"github.com/seventv/common/structures/v3"
"go.mongodb.org/mongo-driver/bson"
"go.mongodb.org/mongo-driver/bson/primitive"
)
Expand Down
2 changes: 1 addition & 1 deletion structures/v3/query/query.bind_objects.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package query
import (
"context"

"github.com/SevenTV/Common/structures/v3"
"github.com/seventv/common/structures/v3"
"go.mongodb.org/mongo-driver/bson"
"go.mongodb.org/mongo-driver/bson/primitive"
)
Expand Down
Loading