切换存储方式

This commit is contained in:
dragon
2025-11-11 10:13:53 +08:00
parent a0e6bb668e
commit aa5d6b0f10
21 changed files with 388 additions and 165 deletions

View File

@@ -2,6 +2,7 @@ package core
import (
"context"
"io"
"net/http"
"time"
)
@@ -12,7 +13,7 @@ type BranchInfo struct {
}
type Backend interface {
Close() error
io.Closer
// Repos return repo name + default branch
Repos(ctx context.Context, owner string) (map[string]string, error)
// Branches return branch + commit id