Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
canifa_note
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vũ Hoàng Anh
canifa_note
Commits
5b3af827
Commit
5b3af827
authored
Oct 26, 2023
by
Steven
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: move common packages to internal
parent
9859d77c
Changes
27
Hide whitespace changes
Inline
Side-by-side
Showing
27 changed files
with
27 additions
and
27 deletions
+27
-27
resource.go
api/resource/resource.go
+2
-2
auth.go
api/v1/auth.go
+1
-1
idp.go
api/v1/idp.go
+1
-1
jwt.go
api/v1/jwt.go
+1
-1
memo.go
api/v1/memo.go
+2
-2
memo_organizer.go
api/v1/memo_organizer.go
+1
-1
memo_relation.go
api/v1/memo_relation.go
+1
-1
resource.go
api/v1/resource.go
+2
-2
rss.go
api/v1/rss.go
+1
-1
storage.go
api/v1/storage.go
+1
-1
system.go
api/v1/system.go
+1
-1
user.go
api/v1/user.go
+1
-1
acl.go
api/v2/acl.go
+1
-1
resource_service.go
api/v2/resource_service.go
+1
-1
memos.go
cmd/memos.go
+1
-1
setup.go
cmd/setup.go
+1
-1
logger.go
internal/log/logger.go
+0
-0
util.go
internal/util/util.go
+0
-0
util_test.go
internal/util/util_test.go
+0
-0
attachment.go
plugin/telegram/attachment.go
+1
-1
bot.go
plugin/telegram/bot.go
+1
-1
embed_frontend.go
server/embed_frontend.go
+1
-1
server.go
server/server.go
+1
-1
backup.go
server/service/backup/backup.go
+1
-1
memo.go
store/db/mysql/memo.go
+1
-1
mysql.go
store/db/mysql/mysql.go
+1
-1
memo.go
store/db/sqlite/memo.go
+1
-1
No files found.
api/resource/resource.go
View file @
5b3af827
...
@@ -17,8 +17,8 @@ import (
...
@@ -17,8 +17,8 @@ import (
"github.com/pkg/errors"
"github.com/pkg/errors"
"go.uber.org/zap"
"go.uber.org/zap"
"github.com/usememos/memos/
common
/log"
"github.com/usememos/memos/
internal
/log"
"github.com/usememos/memos/
common
/util"
"github.com/usememos/memos/
internal
/util"
"github.com/usememos/memos/server/profile"
"github.com/usememos/memos/server/profile"
"github.com/usememos/memos/store"
"github.com/usememos/memos/store"
)
)
...
...
api/v1/auth.go
View file @
5b3af827
...
@@ -14,7 +14,7 @@ import (
...
@@ -14,7 +14,7 @@ import (
"golang.org/x/crypto/bcrypt"
"golang.org/x/crypto/bcrypt"
"github.com/usememos/memos/api/auth"
"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"
"github.com/usememos/memos/plugin/idp/oauth2"
"github.com/usememos/memos/plugin/idp/oauth2"
storepb
"github.com/usememos/memos/proto/gen/store"
storepb
"github.com/usememos/memos/proto/gen/store"
...
...
api/v1/idp.go
View file @
5b3af827
...
@@ -7,7 +7,7 @@ import (
...
@@ -7,7 +7,7 @@ import (
"github.com/labstack/echo/v4"
"github.com/labstack/echo/v4"
"github.com/usememos/memos/
common
/util"
"github.com/usememos/memos/
internal
/util"
"github.com/usememos/memos/store"
"github.com/usememos/memos/store"
)
)
...
...
api/v1/jwt.go
View file @
5b3af827
...
@@ -10,7 +10,7 @@ import (
...
@@ -10,7 +10,7 @@ import (
"github.com/pkg/errors"
"github.com/pkg/errors"
"github.com/usememos/memos/api/auth"
"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"
storepb
"github.com/usememos/memos/proto/gen/store"
"github.com/usememos/memos/store"
"github.com/usememos/memos/store"
)
)
...
...
api/v1/memo.go
View file @
5b3af827
...
@@ -12,8 +12,8 @@ import (
...
@@ -12,8 +12,8 @@ import (
"github.com/pkg/errors"
"github.com/pkg/errors"
"go.uber.org/zap"
"go.uber.org/zap"
"github.com/usememos/memos/
common
/log"
"github.com/usememos/memos/
internal
/log"
"github.com/usememos/memos/
common
/util"
"github.com/usememos/memos/
internal
/util"
"github.com/usememos/memos/server/service/metric"
"github.com/usememos/memos/server/service/metric"
"github.com/usememos/memos/store"
"github.com/usememos/memos/store"
)
)
...
...
api/v1/memo_organizer.go
View file @
5b3af827
...
@@ -7,7 +7,7 @@ import (
...
@@ -7,7 +7,7 @@ import (
"github.com/labstack/echo/v4"
"github.com/labstack/echo/v4"
"github.com/usememos/memos/
common
/util"
"github.com/usememos/memos/
internal
/util"
"github.com/usememos/memos/store"
"github.com/usememos/memos/store"
)
)
...
...
api/v1/memo_relation.go
View file @
5b3af827
...
@@ -7,7 +7,7 @@ import (
...
@@ -7,7 +7,7 @@ import (
"github.com/labstack/echo/v4"
"github.com/labstack/echo/v4"
"github.com/usememos/memos/
common
/util"
"github.com/usememos/memos/
internal
/util"
"github.com/usememos/memos/store"
"github.com/usememos/memos/store"
)
)
...
...
api/v1/resource.go
View file @
5b3af827
...
@@ -18,8 +18,8 @@ import (
...
@@ -18,8 +18,8 @@ import (
"github.com/pkg/errors"
"github.com/pkg/errors"
"go.uber.org/zap"
"go.uber.org/zap"
"github.com/usememos/memos/
common
/log"
"github.com/usememos/memos/
internal
/log"
"github.com/usememos/memos/
common
/util"
"github.com/usememos/memos/
internal
/util"
"github.com/usememos/memos/plugin/storage/s3"
"github.com/usememos/memos/plugin/storage/s3"
"github.com/usememos/memos/store"
"github.com/usememos/memos/store"
)
)
...
...
api/v1/rss.go
View file @
5b3af827
...
@@ -15,7 +15,7 @@ import (
...
@@ -15,7 +15,7 @@ import (
"github.com/pkg/errors"
"github.com/pkg/errors"
"github.com/yuin/goldmark"
"github.com/yuin/goldmark"
"github.com/usememos/memos/
common
/util"
"github.com/usememos/memos/
internal
/util"
"github.com/usememos/memos/store"
"github.com/usememos/memos/store"
)
)
...
...
api/v1/storage.go
View file @
5b3af827
...
@@ -7,7 +7,7 @@ import (
...
@@ -7,7 +7,7 @@ import (
"github.com/labstack/echo/v4"
"github.com/labstack/echo/v4"
"github.com/usememos/memos/
common
/util"
"github.com/usememos/memos/
internal
/util"
"github.com/usememos/memos/store"
"github.com/usememos/memos/store"
)
)
...
...
api/v1/system.go
View file @
5b3af827
...
@@ -7,7 +7,7 @@ import (
...
@@ -7,7 +7,7 @@ import (
"github.com/labstack/echo/v4"
"github.com/labstack/echo/v4"
"go.uber.org/zap"
"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/store"
"github.com/usememos/memos/store"
)
)
...
...
api/v1/user.go
View file @
5b3af827
...
@@ -11,7 +11,7 @@ import (
...
@@ -11,7 +11,7 @@ import (
"github.com/pkg/errors"
"github.com/pkg/errors"
"golang.org/x/crypto/bcrypt"
"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/server/service/metric"
"github.com/usememos/memos/store"
"github.com/usememos/memos/store"
)
)
...
...
api/v2/acl.go
View file @
5b3af827
...
@@ -13,7 +13,7 @@ import (
...
@@ -13,7 +13,7 @@ import (
"google.golang.org/grpc/status"
"google.golang.org/grpc/status"
"github.com/usememos/memos/api/auth"
"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"
storepb
"github.com/usememos/memos/proto/gen/store"
"github.com/usememos/memos/store"
"github.com/usememos/memos/store"
)
)
...
...
api/v2/resource_service.go
View file @
5b3af827
...
@@ -12,7 +12,7 @@ import (
...
@@ -12,7 +12,7 @@ import (
"google.golang.org/grpc/status"
"google.golang.org/grpc/status"
"google.golang.org/protobuf/types/known/timestamppb"
"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"
apiv2pb
"github.com/usememos/memos/proto/gen/api/v2"
"github.com/usememos/memos/server/profile"
"github.com/usememos/memos/server/profile"
"github.com/usememos/memos/store"
"github.com/usememos/memos/store"
...
...
cmd/memos.go
View file @
5b3af827
...
@@ -12,7 +12,7 @@ import (
...
@@ -12,7 +12,7 @@ import (
"github.com/spf13/viper"
"github.com/spf13/viper"
"go.uber.org/zap"
"go.uber.org/zap"
"github.com/usememos/memos/
common
/log"
"github.com/usememos/memos/
internal
/log"
"github.com/usememos/memos/server"
"github.com/usememos/memos/server"
_profile
"github.com/usememos/memos/server/profile"
_profile
"github.com/usememos/memos/server/profile"
"github.com/usememos/memos/server/service/metric"
"github.com/usememos/memos/server/service/metric"
...
...
cmd/setup.go
View file @
5b3af827
...
@@ -9,7 +9,7 @@ import (
...
@@ -9,7 +9,7 @@ import (
"github.com/spf13/cobra"
"github.com/spf13/cobra"
"golang.org/x/crypto/bcrypt"
"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"
"github.com/usememos/memos/store/db/sqlite"
"github.com/usememos/memos/store/db/sqlite"
)
)
...
...
common
/log/logger.go
→
internal
/log/logger.go
View file @
5b3af827
File moved
common
/util/util.go
→
internal
/util/util.go
View file @
5b3af827
File moved
common
/util/util_test.go
→
internal
/util/util_test.go
View file @
5b3af827
File moved
plugin/telegram/attachment.go
View file @
5b3af827
...
@@ -5,7 +5,7 @@ import (
...
@@ -5,7 +5,7 @@ import (
"go.uber.org/zap"
"go.uber.org/zap"
"github.com/usememos/memos/
common
/log"
"github.com/usememos/memos/
internal
/log"
)
)
type
Attachment
struct
{
type
Attachment
struct
{
...
...
plugin/telegram/bot.go
View file @
5b3af827
...
@@ -9,7 +9,7 @@ import (
...
@@ -9,7 +9,7 @@ import (
"go.uber.org/zap"
"go.uber.org/zap"
"github.com/usememos/memos/
common
/log"
"github.com/usememos/memos/
internal
/log"
)
)
type
Handler
interface
{
type
Handler
interface
{
...
...
server/embed_frontend.go
View file @
5b3af827
...
@@ -8,7 +8,7 @@ import (
...
@@ -8,7 +8,7 @@ import (
"github.com/labstack/echo/v4"
"github.com/labstack/echo/v4"
"github.com/labstack/echo/v4/middleware"
"github.com/labstack/echo/v4/middleware"
"github.com/usememos/memos/
common
/util"
"github.com/usememos/memos/
internal
/util"
)
)
//go:embed dist
//go:embed dist
...
...
server/server.go
View file @
5b3af827
...
@@ -18,7 +18,7 @@ import (
...
@@ -18,7 +18,7 @@ import (
apiv1
"github.com/usememos/memos/api/v1"
apiv1
"github.com/usememos/memos/api/v1"
apiv2
"github.com/usememos/memos/api/v2"
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/plugin/telegram"
"github.com/usememos/memos/server/integration"
"github.com/usememos/memos/server/integration"
"github.com/usememos/memos/server/profile"
"github.com/usememos/memos/server/profile"
...
...
server/service/backup/backup.go
View file @
5b3af827
...
@@ -9,7 +9,7 @@ import (
...
@@ -9,7 +9,7 @@ import (
"go.uber.org/zap"
"go.uber.org/zap"
apiv1
"github.com/usememos/memos/api/v1"
apiv1
"github.com/usememos/memos/api/v1"
"github.com/usememos/memos/
common
/log"
"github.com/usememos/memos/
internal
/log"
"github.com/usememos/memos/store"
"github.com/usememos/memos/store"
)
)
...
...
store/db/mysql/memo.go
View file @
5b3af827
...
@@ -8,7 +8,7 @@ import (
...
@@ -8,7 +8,7 @@ import (
"github.com/pkg/errors"
"github.com/pkg/errors"
"github.com/usememos/memos/
common
/util"
"github.com/usememos/memos/
internal
/util"
"github.com/usememos/memos/store"
"github.com/usememos/memos/store"
)
)
...
...
store/db/mysql/mysql.go
View file @
5b3af827
...
@@ -8,7 +8,7 @@ import (
...
@@ -8,7 +8,7 @@ import (
"github.com/go-sql-driver/mysql"
"github.com/go-sql-driver/mysql"
"github.com/pkg/errors"
"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/server/profile"
"github.com/usememos/memos/store"
"github.com/usememos/memos/store"
)
)
...
...
store/db/sqlite/memo.go
View file @
5b3af827
...
@@ -8,7 +8,7 @@ import (
...
@@ -8,7 +8,7 @@ import (
"github.com/pkg/errors"
"github.com/pkg/errors"
"github.com/usememos/memos/
common
/util"
"github.com/usememos/memos/
internal
/util"
"github.com/usememos/memos/store"
"github.com/usememos/memos/store"
)
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment