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
10a955fd
Commit
10a955fd
authored
Apr 06, 2026
by
boojack
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor: move plugin packages under internal
parent
4b4e7194
Changes
90
Hide whitespace changes
Inline
Side-by-side
Showing
90 changed files
with
54 additions
and
54 deletions
+54
-54
AGENTS.md
AGENTS.md
+4
-4
main.go
cmd/memos/main.go
+1
-1
README.md
internal/cron/README.md
+0
-0
chain.go
internal/cron/chain.go
+0
-0
chain_test.go
internal/cron/chain_test.go
+0
-0
constantdelay.go
internal/cron/constantdelay.go
+0
-0
constantdelay_test.go
internal/cron/constantdelay_test.go
+0
-0
cron.go
internal/cron/cron.go
+0
-0
cron_test.go
internal/cron/cron_test.go
+0
-0
logger.go
internal/cron/logger.go
+0
-0
option.go
internal/cron/option.go
+0
-0
option_test.go
internal/cron/option_test.go
+0
-0
parser.go
internal/cron/parser.go
+0
-0
parser_test.go
internal/cron/parser_test.go
+0
-0
spec.go
internal/cron/spec.go
+0
-0
spec_test.go
internal/cron/spec_test.go
+0
-0
README.md
internal/email/README.md
+10
-10
client.go
internal/email/client.go
+0
-0
client_test.go
internal/email/client_test.go
+0
-0
config.go
internal/email/config.go
+0
-0
config_test.go
internal/email/config_test.go
+0
-0
doc.go
internal/email/doc.go
+0
-0
email.go
internal/email/email.go
+0
-0
email_test.go
internal/email/email_test.go
+0
-0
message.go
internal/email/message.go
+0
-0
message_test.go
internal/email/message_test.go
+0
-0
MAINTENANCE.md
internal/filter/MAINTENANCE.md
+0
-0
README.md
internal/filter/README.md
+0
-0
engine.go
internal/filter/engine.go
+0
-0
engine_test.go
internal/filter/engine_test.go
+0
-0
helpers.go
internal/filter/helpers.go
+0
-0
ir.go
internal/filter/ir.go
+0
-0
parser.go
internal/filter/parser.go
+0
-0
render.go
internal/filter/render.go
+0
-0
schema.go
internal/filter/schema.go
+0
-0
html_meta.go
internal/httpgetter/html_meta.go
+0
-0
html_meta_test.go
internal/httpgetter/html_meta_test.go
+0
-0
http_getter.go
internal/httpgetter/http_getter.go
+0
-0
image.go
internal/httpgetter/image.go
+0
-0
util.go
internal/httpgetter/util.go
+0
-0
idp.go
internal/idp/idp.go
+0
-0
oauth2.go
internal/idp/oauth2/oauth2.go
+2
-2
oauth2_test.go
internal/idp/oauth2/oauth2_test.go
+1
-1
tag.go
internal/markdown/ast/tag.go
+0
-0
tag.go
internal/markdown/extensions/tag.go
+1
-1
markdown.go
internal/markdown/markdown.go
+3
-3
markdown_test.go
internal/markdown/markdown_test.go
+0
-0
tag.go
internal/markdown/parser/tag.go
+1
-1
tag_test.go
internal/markdown/parser/tag_test.go
+1
-1
markdown_renderer.go
internal/markdown/renderer/markdown_renderer.go
+1
-1
markdown_renderer_test.go
internal/markdown/renderer/markdown_renderer_test.go
+1
-1
README.md
internal/scheduler/README.md
+1
-1
doc.go
internal/scheduler/doc.go
+0
-0
example_test.go
internal/scheduler/example_test.go
+1
-1
integration_test.go
internal/scheduler/integration_test.go
+1
-1
job.go
internal/scheduler/job.go
+0
-0
job_test.go
internal/scheduler/job_test.go
+0
-0
middleware.go
internal/scheduler/middleware.go
+0
-0
middleware_test.go
internal/scheduler/middleware_test.go
+0
-0
parser.go
internal/scheduler/parser.go
+0
-0
parser_test.go
internal/scheduler/parser_test.go
+0
-0
scheduler.go
internal/scheduler/scheduler.go
+0
-0
scheduler_test.go
internal/scheduler/scheduler_test.go
+0
-0
s3.go
internal/storage/s3/s3.go
+0
-0
validate.go
internal/webhook/validate.go
+0
-0
webhook.go
internal/webhook/webhook.go
+0
-0
webhook_test.go
internal/webhook/webhook_test.go
+0
-0
attachment_service.go
server/router/api/v1/attachment_service.go
+2
-2
auth_service.go
server/router/api/v1/auth_service.go
+2
-2
memo_service.go
server/router/api/v1/memo_service.go
+1
-1
shortcut_service.go
server/router/api/v1/shortcut_service.go
+1
-1
test_helper.go
server/router/api/v1/test/test_helper.go
+1
-1
user_service.go
server/router/api/v1/user_service.go
+1
-1
v1.go
server/router/api/v1/v1.go
+1
-1
README.md
server/router/fileserver/README.md
+1
-1
fileserver.go
server/router/fileserver/fileserver.go
+1
-1
fileserver_test.go
server/router/fileserver/fileserver_test.go
+1
-1
rss.go
server/router/rss/rss.go
+1
-1
runner.go
server/runner/memopayload/runner.go
+1
-1
runner.go
server/runner/s3presign/runner.go
+1
-1
attachment.go
store/attachment.go
+1
-1
attachment.go
store/db/mysql/attachment.go
+1
-1
memo.go
store/db/mysql/memo.go
+1
-1
memo_relation.go
store/db/mysql/memo_relation.go
+1
-1
attachment.go
store/db/postgres/attachment.go
+1
-1
memo.go
store/db/postgres/memo.go
+1
-1
memo_relation.go
store/db/postgres/memo_relation.go
+1
-1
attachment.go
store/db/sqlite/attachment.go
+1
-1
memo.go
store/db/sqlite/memo.go
+1
-1
memo_relation.go
store/db/sqlite/memo_relation.go
+1
-1
No files found.
AGENTS.md
View file @
10a955fd
...
...
@@ -12,7 +12,7 @@ go run ./cmd/memos --port 8081 # Start dev server
go
test
./...
# Run all tests
go
test
-v
./store/...
# Run store tests (all 3 DB drivers via TestContainers)
go
test
-v
-race
./server/...
# Run server tests with race detection
go
test
-v
-race
./
plugin/...
# Run plugin
tests with race detection
go
test
-v
-race
./
internal/...
# Run internal package
tests with race detection
go
test
-v
-run
TestFoo ./pkg/...
# Run a single test
go mod tidy
-go
=
1.26.1
# Match CI tidy check
golangci-lint run
# Lint (v2, config: .golangci.yaml)
...
...
@@ -62,8 +62,8 @@ proto/
├── store/ # Internal storage messages
└── gen/ # Generated Go, TypeScript, OpenAPI
plugin/ # scheduler, cron, email, filter (CEL), webhook
,
# markdown (Goldmark), httpgetter, idp (OAuth2), storage/s3
internal/ # app-private packages: scheduler, cron, email, filter (CEL)
,
#
webhook,
markdown (Goldmark), httpgetter, idp (OAuth2), storage/s3
web/src/
├── connect.ts # Connect RPC client + auth interceptor + token refresh
...
...
@@ -98,7 +98,7 @@ web/src/
## CI/CD
-
**backend-tests.yml:**
Go 1.26.1,
`go mod tidy -go=1.26.1`
, golangci-lint v2.11.3, tests parallelized by group (store, server,
plugin
, other)
-
**backend-tests.yml:**
Go 1.26.1,
`go mod tidy -go=1.26.1`
, golangci-lint v2.11.3, tests parallelized by group (store, server,
internal
, other)
-
**build-canary-image.yml:**
Builds frontend with
`pnpm release`
, then publishes canary multi-arch container images for linux/amd64 and linux/arm64
-
**frontend-tests.yml:**
Node 24, pnpm 10, lint + build
-
**proto-linter.yml:**
buf lint + format check
...
...
cmd/memos/main.go
View file @
10a955fd
...
...
@@ -15,7 +15,7 @@ import (
"github.com/usememos/memos/internal/profile"
"github.com/usememos/memos/internal/version"
"github.com/usememos/memos/
plugin
/webhook"
"github.com/usememos/memos/
internal
/webhook"
"github.com/usememos/memos/server"
"github.com/usememos/memos/store"
"github.com/usememos/memos/store/db"
...
...
plugin
/cron/README.md
→
internal
/cron/README.md
View file @
10a955fd
File moved
plugin
/cron/chain.go
→
internal
/cron/chain.go
View file @
10a955fd
File moved
plugin
/cron/chain_test.go
→
internal
/cron/chain_test.go
View file @
10a955fd
File moved
plugin
/cron/constantdelay.go
→
internal
/cron/constantdelay.go
View file @
10a955fd
File moved
plugin
/cron/constantdelay_test.go
→
internal
/cron/constantdelay_test.go
View file @
10a955fd
File moved
plugin
/cron/cron.go
→
internal
/cron/cron.go
View file @
10a955fd
File moved
plugin
/cron/cron_test.go
→
internal
/cron/cron_test.go
View file @
10a955fd
File moved
plugin
/cron/logger.go
→
internal
/cron/logger.go
View file @
10a955fd
File moved
plugin
/cron/option.go
→
internal
/cron/option.go
View file @
10a955fd
File moved
plugin
/cron/option_test.go
→
internal
/cron/option_test.go
View file @
10a955fd
File moved
plugin
/cron/parser.go
→
internal
/cron/parser.go
View file @
10a955fd
File moved
plugin
/cron/parser_test.go
→
internal
/cron/parser_test.go
View file @
10a955fd
File moved
plugin
/cron/spec.go
→
internal
/cron/spec.go
View file @
10a955fd
File moved
plugin
/cron/spec_test.go
→
internal
/cron/spec_test.go
View file @
10a955fd
File moved
plugin
/email/README.md
→
internal
/email/README.md
View file @
10a955fd
...
...
@@ -23,7 +23,7 @@ This plugin provides a simple, reliable email sending interface following indust
### 1. Configure SMTP Settings
```
go
import
"github.com/usememos/memos/
plugin
/email"
import
"github.com/usememos/memos/
internal
/email"
config
:=
&
email
.
Config
{
SMTPHost
:
"smtp.gmail.com"
,
...
...
@@ -191,13 +191,13 @@ email.Send(config, message)
```
bash
# All tests
go
test
./
plugin
/email/...
-v
go
test
./
internal
/email/...
-v
# With coverage
go
test
./
plugin
/email/...
-v
-cover
go
test
./
internal
/email/...
-v
-cover
# With race detector
go
test
./
plugin
/email/...
-race
go
test
./
internal
/email/...
-race
```
### Manual Testing
...
...
@@ -209,7 +209,7 @@ package main
import
(
"log"
"github.com/usememos/memos/
plugin
/email"
"github.com/usememos/memos/
internal
/email"
)
func
main
()
{
...
...
@@ -466,7 +466,7 @@ Sends email using the client's configuration.
## Architecture
```
plugin
/email/
internal
/email/
├── config.go # SMTP configuration types
├── message.go # Email message types and formatting
├── client.go # SMTP client implementation
...
...
@@ -481,12 +481,12 @@ Part of the Memos project. See main repository for license details.
## Contributing
This p
lugin
follows the Memos contribution guidelines. Please ensure:
This p
ackage
follows the Memos contribution guidelines. Please ensure:
1.
All code is tested (TDD approach)
2.
Tests pass:
`go test ./
plugin
/email/... -v`
3.
Code is formatted:
`go fmt ./
plugin
/email/...`
4.
No linting errors:
`golangci-lint run ./
plugin
/email/...`
2.
Tests pass:
`go test ./
internal
/email/... -v`
3.
Code is formatted:
`go fmt ./
internal
/email/...`
4.
No linting errors:
`golangci-lint run ./
internal
/email/...`
## Support
...
...
plugin
/email/client.go
→
internal
/email/client.go
View file @
10a955fd
File moved
plugin
/email/client_test.go
→
internal
/email/client_test.go
View file @
10a955fd
File moved
plugin
/email/config.go
→
internal
/email/config.go
View file @
10a955fd
File moved
plugin
/email/config_test.go
→
internal
/email/config_test.go
View file @
10a955fd
File moved
plugin
/email/doc.go
→
internal
/email/doc.go
View file @
10a955fd
File moved
plugin
/email/email.go
→
internal
/email/email.go
View file @
10a955fd
File moved
plugin
/email/email_test.go
→
internal
/email/email_test.go
View file @
10a955fd
File moved
plugin
/email/message.go
→
internal
/email/message.go
View file @
10a955fd
File moved
plugin
/email/message_test.go
→
internal
/email/message_test.go
View file @
10a955fd
File moved
plugin
/filter/MAINTENANCE.md
→
internal
/filter/MAINTENANCE.md
View file @
10a955fd
File moved
plugin
/filter/README.md
→
internal
/filter/README.md
View file @
10a955fd
File moved
plugin
/filter/engine.go
→
internal
/filter/engine.go
View file @
10a955fd
File moved
plugin
/filter/engine_test.go
→
internal
/filter/engine_test.go
View file @
10a955fd
File moved
plugin
/filter/helpers.go
→
internal
/filter/helpers.go
View file @
10a955fd
File moved
plugin
/filter/ir.go
→
internal
/filter/ir.go
View file @
10a955fd
File moved
plugin
/filter/parser.go
→
internal
/filter/parser.go
View file @
10a955fd
File moved
plugin
/filter/render.go
→
internal
/filter/render.go
View file @
10a955fd
File moved
plugin
/filter/schema.go
→
internal
/filter/schema.go
View file @
10a955fd
File moved
plugin
/httpgetter/html_meta.go
→
internal
/httpgetter/html_meta.go
View file @
10a955fd
File moved
plugin
/httpgetter/html_meta_test.go
→
internal
/httpgetter/html_meta_test.go
View file @
10a955fd
File moved
plugin
/httpgetter/http_getter.go
→
internal
/httpgetter/http_getter.go
View file @
10a955fd
File moved
plugin
/httpgetter/image.go
→
internal
/httpgetter/image.go
View file @
10a955fd
File moved
plugin
/httpgetter/util.go
→
internal
/httpgetter/util.go
View file @
10a955fd
File moved
plugin
/idp/idp.go
→
internal
/idp/idp.go
View file @
10a955fd
File moved
plugin
/idp/oauth2/oauth2.go
→
internal
/idp/oauth2/oauth2.go
View file @
10a955fd
// Package oauth2 i
s the plugin for OAuth2 Identity Provider
.
// Package oauth2 i
mplements the OAuth2 identity provider integration
.
package
oauth2
import
(
...
...
@@ -12,7 +12,7 @@ import (
"github.com/pkg/errors"
"golang.org/x/oauth2"
"github.com/usememos/memos/
plugin
/idp"
"github.com/usememos/memos/
internal
/idp"
storepb
"github.com/usememos/memos/proto/gen/store"
)
...
...
plugin
/idp/oauth2/oauth2_test.go
→
internal
/idp/oauth2/oauth2_test.go
View file @
10a955fd
...
...
@@ -13,7 +13,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/usememos/memos/
plugin
/idp"
"github.com/usememos/memos/
internal
/idp"
storepb
"github.com/usememos/memos/proto/gen/store"
)
...
...
plugin
/markdown/ast/tag.go
→
internal
/markdown/ast/tag.go
View file @
10a955fd
File moved
plugin
/markdown/extensions/tag.go
→
internal
/markdown/extensions/tag.go
View file @
10a955fd
...
...
@@ -5,7 +5,7 @@ import (
"github.com/yuin/goldmark/parser"
"github.com/yuin/goldmark/util"
mparser
"github.com/usememos/memos/
plugin
/markdown/parser"
mparser
"github.com/usememos/memos/
internal
/markdown/parser"
)
type
tagExtension
struct
{}
...
...
plugin
/markdown/markdown.go
→
internal
/markdown/markdown.go
View file @
10a955fd
...
...
@@ -11,9 +11,9 @@ import (
"github.com/yuin/goldmark/parser"
"github.com/yuin/goldmark/text"
mast
"github.com/usememos/memos/
plugin
/markdown/ast"
"github.com/usememos/memos/
plugin
/markdown/extensions"
"github.com/usememos/memos/
plugin
/markdown/renderer"
mast
"github.com/usememos/memos/
internal
/markdown/ast"
"github.com/usememos/memos/
internal
/markdown/extensions"
"github.com/usememos/memos/
internal
/markdown/renderer"
storepb
"github.com/usememos/memos/proto/gen/store"
)
...
...
plugin
/markdown/markdown_test.go
→
internal
/markdown/markdown_test.go
View file @
10a955fd
File moved
plugin
/markdown/parser/tag.go
→
internal
/markdown/parser/tag.go
View file @
10a955fd
...
...
@@ -8,7 +8,7 @@ import (
"github.com/yuin/goldmark/parser"
"github.com/yuin/goldmark/text"
mast
"github.com/usememos/memos/
plugin
/markdown/ast"
mast
"github.com/usememos/memos/
internal
/markdown/ast"
)
const
(
...
...
plugin
/markdown/parser/tag_test.go
→
internal
/markdown/parser/tag_test.go
View file @
10a955fd
...
...
@@ -8,7 +8,7 @@ import (
"github.com/yuin/goldmark/parser"
"github.com/yuin/goldmark/text"
mast
"github.com/usememos/memos/
plugin
/markdown/ast"
mast
"github.com/usememos/memos/
internal
/markdown/ast"
)
func
TestTagParser
(
t
*
testing
.
T
)
{
...
...
plugin
/markdown/renderer/markdown_renderer.go
→
internal
/markdown/renderer/markdown_renderer.go
View file @
10a955fd
...
...
@@ -8,7 +8,7 @@ import (
gast
"github.com/yuin/goldmark/ast"
east
"github.com/yuin/goldmark/extension/ast"
mast
"github.com/usememos/memos/
plugin
/markdown/ast"
mast
"github.com/usememos/memos/
internal
/markdown/ast"
)
// MarkdownRenderer renders goldmark AST back to markdown text.
...
...
plugin
/markdown/renderer/markdown_renderer_test.go
→
internal
/markdown/renderer/markdown_renderer_test.go
View file @
10a955fd
...
...
@@ -10,7 +10,7 @@ import (
"github.com/yuin/goldmark/parser"
"github.com/yuin/goldmark/text"
"github.com/usememos/memos/
plugin
/markdown/extensions"
"github.com/usememos/memos/
internal
/markdown/extensions"
)
func
TestMarkdownRenderer
(
t
*
testing
.
T
)
{
...
...
plugin
/scheduler/README.md
→
internal
/scheduler/README.md
View file @
10a955fd
...
...
@@ -24,7 +24,7 @@ package main
import
(
"context"
"fmt"
"github.com/usememos/memos/
plugin
/scheduler"
"github.com/usememos/memos/
internal
/scheduler"
)
func
main
()
{
...
...
plugin
/scheduler/doc.go
→
internal
/scheduler/doc.go
View file @
10a955fd
File moved
plugin
/scheduler/example_test.go
→
internal
/scheduler/example_test.go
View file @
10a955fd
...
...
@@ -7,7 +7,7 @@ import (
"os"
"time"
"github.com/usememos/memos/
plugin
/scheduler"
"github.com/usememos/memos/
internal
/scheduler"
)
// Example demonstrates basic scheduler usage.
...
...
plugin
/scheduler/integration_test.go
→
internal
/scheduler/integration_test.go
View file @
10a955fd
...
...
@@ -10,7 +10,7 @@ import (
"testing"
"time"
"github.com/usememos/memos/
plugin
/scheduler"
"github.com/usememos/memos/
internal
/scheduler"
)
// TestRealWorldScenario tests a realistic multi-job scenario.
...
...
plugin
/scheduler/job.go
→
internal
/scheduler/job.go
View file @
10a955fd
File moved
plugin
/scheduler/job_test.go
→
internal
/scheduler/job_test.go
View file @
10a955fd
File moved
plugin
/scheduler/middleware.go
→
internal
/scheduler/middleware.go
View file @
10a955fd
File moved
plugin
/scheduler/middleware_test.go
→
internal
/scheduler/middleware_test.go
View file @
10a955fd
File moved
plugin
/scheduler/parser.go
→
internal
/scheduler/parser.go
View file @
10a955fd
File moved
plugin
/scheduler/parser_test.go
→
internal
/scheduler/parser_test.go
View file @
10a955fd
File moved
plugin
/scheduler/scheduler.go
→
internal
/scheduler/scheduler.go
View file @
10a955fd
File moved
plugin
/scheduler/scheduler_test.go
→
internal
/scheduler/scheduler_test.go
View file @
10a955fd
File moved
plugin
/storage/s3/s3.go
→
internal
/storage/s3/s3.go
View file @
10a955fd
File moved
plugin
/webhook/validate.go
→
internal
/webhook/validate.go
View file @
10a955fd
File moved
plugin
/webhook/webhook.go
→
internal
/webhook/webhook.go
View file @
10a955fd
File moved
plugin
/webhook/webhook_test.go
→
internal
/webhook/webhook_test.go
View file @
10a955fd
File moved
server/router/api/v1/attachment_service.go
View file @
10a955fd
...
...
@@ -22,11 +22,11 @@ import (
"google.golang.org/protobuf/types/known/emptypb"
"google.golang.org/protobuf/types/known/timestamppb"
"github.com/usememos/memos/internal/filter"
"github.com/usememos/memos/internal/motionphoto"
"github.com/usememos/memos/internal/profile"
"github.com/usememos/memos/internal/storage/s3"
"github.com/usememos/memos/internal/util"
"github.com/usememos/memos/plugin/filter"
"github.com/usememos/memos/plugin/storage/s3"
v1pb
"github.com/usememos/memos/proto/gen/api/v1"
storepb
"github.com/usememos/memos/proto/gen/store"
"github.com/usememos/memos/store"
...
...
server/router/api/v1/auth_service.go
View file @
10a955fd
...
...
@@ -16,9 +16,9 @@ import (
"google.golang.org/protobuf/types/known/emptypb"
"google.golang.org/protobuf/types/known/timestamppb"
"github.com/usememos/memos/internal/idp"
"github.com/usememos/memos/internal/idp/oauth2"
"github.com/usememos/memos/internal/util"
"github.com/usememos/memos/plugin/idp"
"github.com/usememos/memos/plugin/idp/oauth2"
v1pb
"github.com/usememos/memos/proto/gen/api/v1"
storepb
"github.com/usememos/memos/proto/gen/store"
"github.com/usememos/memos/server/auth"
...
...
server/router/api/v1/memo_service.go
View file @
10a955fd
...
...
@@ -13,7 +13,7 @@ import (
"google.golang.org/grpc/status"
"google.golang.org/protobuf/types/known/emptypb"
"github.com/usememos/memos/
plugin
/webhook"
"github.com/usememos/memos/
internal
/webhook"
v1pb
"github.com/usememos/memos/proto/gen/api/v1"
storepb
"github.com/usememos/memos/proto/gen/store"
"github.com/usememos/memos/server/runner/memopayload"
...
...
server/router/api/v1/shortcut_service.go
View file @
10a955fd
...
...
@@ -10,8 +10,8 @@ import (
"google.golang.org/grpc/status"
"google.golang.org/protobuf/types/known/emptypb"
"github.com/usememos/memos/internal/filter"
"github.com/usememos/memos/internal/util"
"github.com/usememos/memos/plugin/filter"
v1pb
"github.com/usememos/memos/proto/gen/api/v1"
storepb
"github.com/usememos/memos/proto/gen/store"
"github.com/usememos/memos/store"
...
...
server/router/api/v1/test/test_helper.go
View file @
10a955fd
...
...
@@ -4,8 +4,8 @@ import (
"context"
"testing"
"github.com/usememos/memos/internal/markdown"
"github.com/usememos/memos/internal/profile"
"github.com/usememos/memos/plugin/markdown"
"github.com/usememos/memos/server/auth"
apiv1
"github.com/usememos/memos/server/router/api/v1"
"github.com/usememos/memos/store"
...
...
server/router/api/v1/user_service.go
View file @
10a955fd
...
...
@@ -22,7 +22,7 @@ import (
"github.com/usememos/memos/internal/base"
"github.com/usememos/memos/internal/util"
"github.com/usememos/memos/
plugin
/webhook"
"github.com/usememos/memos/
internal
/webhook"
v1pb
"github.com/usememos/memos/proto/gen/api/v1"
storepb
"github.com/usememos/memos/proto/gen/store"
"github.com/usememos/memos/server/auth"
...
...
server/router/api/v1/v1.go
View file @
10a955fd
...
...
@@ -10,8 +10,8 @@ import (
"github.com/labstack/echo/v5/middleware"
"golang.org/x/sync/semaphore"
"github.com/usememos/memos/internal/markdown"
"github.com/usememos/memos/internal/profile"
"github.com/usememos/memos/plugin/markdown"
v1pb
"github.com/usememos/memos/proto/gen/api/v1"
"github.com/usememos/memos/server/auth"
"github.com/usememos/memos/store"
...
...
server/router/fileserver/README.md
View file @
10a955fd
...
...
@@ -193,7 +193,7 @@ Parses data URI to extract MIME type and base64 data.
-
`server/auth`
- Authentication utilities
-
`store`
- Database operations
-
`internal/profile`
- Server configuration
-
`
plugin
/storage/s3`
- S3 storage client
-
`
internal
/storage/s3`
- S3 storage client
## Configuration
...
...
server/router/fileserver/fileserver.go
View file @
10a955fd
...
...
@@ -21,7 +21,7 @@ import (
"github.com/usememos/memos/internal/motionphoto"
"github.com/usememos/memos/internal/profile"
"github.com/usememos/memos/
plugin
/storage/s3"
"github.com/usememos/memos/
internal
/storage/s3"
storepb
"github.com/usememos/memos/proto/gen/store"
"github.com/usememos/memos/server/auth"
"github.com/usememos/memos/store"
...
...
server/router/fileserver/fileserver_test.go
View file @
10a955fd
...
...
@@ -11,9 +11,9 @@ import (
"github.com/labstack/echo/v5"
"github.com/stretchr/testify/require"
"github.com/usememos/memos/internal/markdown"
"github.com/usememos/memos/internal/profile"
"github.com/usememos/memos/internal/testutil"
"github.com/usememos/memos/plugin/markdown"
apiv1
"github.com/usememos/memos/proto/gen/api/v1"
"github.com/usememos/memos/server/auth"
apiv1service
"github.com/usememos/memos/server/router/api/v1"
...
...
server/router/rss/rss.go
View file @
10a955fd
...
...
@@ -14,8 +14,8 @@ import (
"github.com/gorilla/feeds"
"github.com/labstack/echo/v5"
"github.com/usememos/memos/internal/markdown"
"github.com/usememos/memos/internal/profile"
"github.com/usememos/memos/plugin/markdown"
storepb
"github.com/usememos/memos/proto/gen/store"
"github.com/usememos/memos/store"
)
...
...
server/runner/memopayload/runner.go
View file @
10a955fd
...
...
@@ -6,7 +6,7 @@ import (
"github.com/pkg/errors"
"github.com/usememos/memos/
plugin
/markdown"
"github.com/usememos/memos/
internal
/markdown"
storepb
"github.com/usememos/memos/proto/gen/store"
"github.com/usememos/memos/store"
)
...
...
server/runner/s3presign/runner.go
View file @
10a955fd
...
...
@@ -7,7 +7,7 @@ import (
"google.golang.org/protobuf/types/known/timestamppb"
"github.com/usememos/memos/
plugin
/storage/s3"
"github.com/usememos/memos/
internal
/storage/s3"
storepb
"github.com/usememos/memos/proto/gen/store"
"github.com/usememos/memos/store"
)
...
...
store/attachment.go
View file @
10a955fd
...
...
@@ -9,7 +9,7 @@ import (
"github.com/pkg/errors"
"github.com/usememos/memos/internal/base"
"github.com/usememos/memos/
plugin
/storage/s3"
"github.com/usememos/memos/
internal
/storage/s3"
storepb
"github.com/usememos/memos/proto/gen/store"
)
...
...
store/db/mysql/attachment.go
View file @
10a955fd
...
...
@@ -9,7 +9,7 @@ import (
"github.com/pkg/errors"
"google.golang.org/protobuf/encoding/protojson"
"github.com/usememos/memos/
plugin
/filter"
"github.com/usememos/memos/
internal
/filter"
storepb
"github.com/usememos/memos/proto/gen/store"
"github.com/usememos/memos/store"
)
...
...
store/db/mysql/memo.go
View file @
10a955fd
...
...
@@ -8,7 +8,7 @@ import (
"github.com/pkg/errors"
"google.golang.org/protobuf/encoding/protojson"
"github.com/usememos/memos/
plugin
/filter"
"github.com/usememos/memos/
internal
/filter"
storepb
"github.com/usememos/memos/proto/gen/store"
"github.com/usememos/memos/store"
)
...
...
store/db/mysql/memo_relation.go
View file @
10a955fd
...
...
@@ -5,7 +5,7 @@ import (
"fmt"
"strings"
"github.com/usememos/memos/
plugin
/filter"
"github.com/usememos/memos/
internal
/filter"
"github.com/usememos/memos/store"
)
...
...
store/db/postgres/attachment.go
View file @
10a955fd
...
...
@@ -9,7 +9,7 @@ import (
"github.com/pkg/errors"
"google.golang.org/protobuf/encoding/protojson"
"github.com/usememos/memos/
plugin
/filter"
"github.com/usememos/memos/
internal
/filter"
storepb
"github.com/usememos/memos/proto/gen/store"
"github.com/usememos/memos/store"
)
...
...
store/db/postgres/memo.go
View file @
10a955fd
...
...
@@ -8,7 +8,7 @@ import (
"github.com/pkg/errors"
"google.golang.org/protobuf/encoding/protojson"
"github.com/usememos/memos/
plugin
/filter"
"github.com/usememos/memos/
internal
/filter"
storepb
"github.com/usememos/memos/proto/gen/store"
"github.com/usememos/memos/store"
)
...
...
store/db/postgres/memo_relation.go
View file @
10a955fd
...
...
@@ -5,7 +5,7 @@ import (
"fmt"
"strings"
"github.com/usememos/memos/
plugin
/filter"
"github.com/usememos/memos/
internal
/filter"
"github.com/usememos/memos/store"
)
...
...
store/db/sqlite/attachment.go
View file @
10a955fd
...
...
@@ -9,7 +9,7 @@ import (
"github.com/pkg/errors"
"google.golang.org/protobuf/encoding/protojson"
"github.com/usememos/memos/
plugin
/filter"
"github.com/usememos/memos/
internal
/filter"
storepb
"github.com/usememos/memos/proto/gen/store"
"github.com/usememos/memos/store"
)
...
...
store/db/sqlite/memo.go
View file @
10a955fd
...
...
@@ -8,7 +8,7 @@ import (
"github.com/pkg/errors"
"google.golang.org/protobuf/encoding/protojson"
"github.com/usememos/memos/
plugin
/filter"
"github.com/usememos/memos/
internal
/filter"
storepb
"github.com/usememos/memos/proto/gen/store"
"github.com/usememos/memos/store"
)
...
...
store/db/sqlite/memo_relation.go
View file @
10a955fd
...
...
@@ -5,7 +5,7 @@ import (
"fmt"
"strings"
"github.com/usememos/memos/
plugin
/filter"
"github.com/usememos/memos/
internal
/filter"
"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