Skip to content

Commit

Permalink
chore: move common packages to internal
Browse files Browse the repository at this point in the history
  • Loading branch information
boojack committed Oct 26, 2023
1 parent 9859d77 commit 5b3af82
Show file tree
Hide file tree
Showing 27 changed files with 27 additions and 27 deletions.
4 changes: 2 additions & 2 deletions api/resource/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ import (
"github.com/pkg/errors"
"go.uber.org/zap"

"github.com/usememos/memos/common/log"
"github.com/usememos/memos/common/util"
"github.com/usememos/memos/internal/log"
"github.com/usememos/memos/internal/util"
"github.com/usememos/memos/server/profile"
"github.com/usememos/memos/store"
)
Expand Down
2 changes: 1 addition & 1 deletion api/v1/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"golang.org/x/crypto/bcrypt"

"github.com/usememos/memos/api/auth"
"github.com/usememos/memos/common/util"
"github.com/usememos/memos/internal/util"
"github.com/usememos/memos/plugin/idp"
"github.com/usememos/memos/plugin/idp/oauth2"
storepb "github.com/usememos/memos/proto/gen/store"
Expand Down
2 changes: 1 addition & 1 deletion api/v1/idp.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/labstack/echo/v4"

"github.com/usememos/memos/common/util"
"github.com/usememos/memos/internal/util"
"github.com/usememos/memos/store"
)

Expand Down
2 changes: 1 addition & 1 deletion api/v1/jwt.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/pkg/errors"

"github.com/usememos/memos/api/auth"
"github.com/usememos/memos/common/util"
"github.com/usememos/memos/internal/util"
storepb "github.com/usememos/memos/proto/gen/store"
"github.com/usememos/memos/store"
)
Expand Down
4 changes: 2 additions & 2 deletions api/v1/memo.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"github.com/pkg/errors"
"go.uber.org/zap"

"github.com/usememos/memos/common/log"
"github.com/usememos/memos/common/util"
"github.com/usememos/memos/internal/log"
"github.com/usememos/memos/internal/util"
"github.com/usememos/memos/server/service/metric"
"github.com/usememos/memos/store"
)
Expand Down
2 changes: 1 addition & 1 deletion api/v1/memo_organizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/labstack/echo/v4"

"github.com/usememos/memos/common/util"
"github.com/usememos/memos/internal/util"
"github.com/usememos/memos/store"
)

Expand Down
2 changes: 1 addition & 1 deletion api/v1/memo_relation.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/labstack/echo/v4"

"github.com/usememos/memos/common/util"
"github.com/usememos/memos/internal/util"
"github.com/usememos/memos/store"
)

Expand Down
4 changes: 2 additions & 2 deletions api/v1/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
"github.com/pkg/errors"
"go.uber.org/zap"

"github.com/usememos/memos/common/log"
"github.com/usememos/memos/common/util"
"github.com/usememos/memos/internal/log"
"github.com/usememos/memos/internal/util"
"github.com/usememos/memos/plugin/storage/s3"
"github.com/usememos/memos/store"
)
Expand Down
2 changes: 1 addition & 1 deletion api/v1/rss.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/pkg/errors"
"github.com/yuin/goldmark"

"github.com/usememos/memos/common/util"
"github.com/usememos/memos/internal/util"
"github.com/usememos/memos/store"
)

Expand Down
2 changes: 1 addition & 1 deletion api/v1/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/labstack/echo/v4"

"github.com/usememos/memos/common/util"
"github.com/usememos/memos/internal/util"
"github.com/usememos/memos/store"
)

Expand Down
2 changes: 1 addition & 1 deletion api/v1/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/labstack/echo/v4"
"go.uber.org/zap"

"github.com/usememos/memos/common/log"
"github.com/usememos/memos/internal/log"
"github.com/usememos/memos/server/profile"
"github.com/usememos/memos/store"
)
Expand Down
2 changes: 1 addition & 1 deletion api/v1/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/pkg/errors"
"golang.org/x/crypto/bcrypt"

"github.com/usememos/memos/common/util"
"github.com/usememos/memos/internal/util"
"github.com/usememos/memos/server/service/metric"
"github.com/usememos/memos/store"
)
Expand Down
2 changes: 1 addition & 1 deletion api/v2/acl.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"google.golang.org/grpc/status"

"github.com/usememos/memos/api/auth"
"github.com/usememos/memos/common/util"
"github.com/usememos/memos/internal/util"
storepb "github.com/usememos/memos/proto/gen/store"
"github.com/usememos/memos/store"
)
Expand Down
2 changes: 1 addition & 1 deletion api/v2/resource_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"google.golang.org/grpc/status"
"google.golang.org/protobuf/types/known/timestamppb"

"github.com/usememos/memos/common/log"
"github.com/usememos/memos/internal/log"
apiv2pb "github.com/usememos/memos/proto/gen/api/v2"
"github.com/usememos/memos/server/profile"
"github.com/usememos/memos/store"
Expand Down
2 changes: 1 addition & 1 deletion cmd/memos.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/spf13/viper"
"go.uber.org/zap"

"github.com/usememos/memos/common/log"
"github.com/usememos/memos/internal/log"
"github.com/usememos/memos/server"
_profile "github.com/usememos/memos/server/profile"
"github.com/usememos/memos/server/service/metric"
Expand Down
2 changes: 1 addition & 1 deletion cmd/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/spf13/cobra"
"golang.org/x/crypto/bcrypt"

"github.com/usememos/memos/common/util"
"github.com/usememos/memos/internal/util"
"github.com/usememos/memos/store"
"github.com/usememos/memos/store/db/sqlite"
)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion plugin/telegram/attachment.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"go.uber.org/zap"

"github.com/usememos/memos/common/log"
"github.com/usememos/memos/internal/log"
)

type Attachment struct {
Expand Down
2 changes: 1 addition & 1 deletion plugin/telegram/bot.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

"go.uber.org/zap"

"github.com/usememos/memos/common/log"
"github.com/usememos/memos/internal/log"
)

type Handler interface {
Expand Down
2 changes: 1 addition & 1 deletion server/embed_frontend.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/labstack/echo/v4"
"github.com/labstack/echo/v4/middleware"

"github.com/usememos/memos/common/util"
"github.com/usememos/memos/internal/util"
)

//go:embed dist
Expand Down
2 changes: 1 addition & 1 deletion server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (

apiv1 "github.com/usememos/memos/api/v1"
apiv2 "github.com/usememos/memos/api/v2"
"github.com/usememos/memos/common/log"
"github.com/usememos/memos/internal/log"
"github.com/usememos/memos/plugin/telegram"
"github.com/usememos/memos/server/integration"
"github.com/usememos/memos/server/profile"
Expand Down
2 changes: 1 addition & 1 deletion server/service/backup/backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"go.uber.org/zap"

apiv1 "github.com/usememos/memos/api/v1"
"github.com/usememos/memos/common/log"
"github.com/usememos/memos/internal/log"
"github.com/usememos/memos/store"
)

Expand Down
2 changes: 1 addition & 1 deletion store/db/mysql/memo.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/pkg/errors"

"github.com/usememos/memos/common/util"
"github.com/usememos/memos/internal/util"
"github.com/usememos/memos/store"
)

Expand Down
2 changes: 1 addition & 1 deletion store/db/mysql/mysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/go-sql-driver/mysql"
"github.com/pkg/errors"

"github.com/usememos/memos/common/log"
"github.com/usememos/memos/internal/log"
"github.com/usememos/memos/server/profile"
"github.com/usememos/memos/store"
)
Expand Down
2 changes: 1 addition & 1 deletion store/db/sqlite/memo.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/pkg/errors"

"github.com/usememos/memos/common/util"
"github.com/usememos/memos/internal/util"
"github.com/usememos/memos/store"
)

Expand Down

0 comments on commit 5b3af82

Please sign in to comment.