to gogs.inhome

master
Bel LaPointe 2023-04-10 10:21:02 -06:00
parent cb219e269d
commit db39d7b02e
19 changed files with 33 additions and 34 deletions

View File

@ -1,7 +1,7 @@
package storage package storage
import ( import (
"local/storage/resolve" "gogs.inhome.blapointe.com/local/storage/resolve"
"github.com/boltdb/bolt" "github.com/boltdb/bolt"
) )

View File

@ -1,7 +1,7 @@
package storage package storage
import ( import (
"local/storage/resolve" "gogs.inhome.blapointe.com/local/storage/resolve"
"os" "os"
"path" "path"
"strings" "strings"

View File

@ -3,8 +3,8 @@ package main
import ( import (
"bufio" "bufio"
"fmt" "fmt"
"local/args" "gogs.inhome.blapointe.com/local/args"
"local/storage" "gogs.inhome.blapointe.com/local/storage"
"log" "log"
"os" "os"
"strings" "strings"

View File

@ -1,14 +1,14 @@
module local/storage/cli module gogs.inhome.blapointe.com/local/storage/cli
go 1.16 go 1.16
replace local/storage => ../ replace gogs.inhome.blapointe.com/local/storage => ../
replace local/args => ../../args replace gogs.inhome.blapointe.com/local/args => ../../args
replace local/logb => ../../logb replace gogs.inhome.blapointe.com/local/logb => ../../logb
require ( require (
local/args v0.0.0-00010101000000-000000000000 gogs.inhome.blapointe.com/local/args v0.0.0-00010101000000-000000000000
local/storage v0.0.0-00010101000000-000000000000 gogs.inhome.blapointe.com/local/storage v0.0.0-00010101000000-000000000000
) )

View File

@ -2,9 +2,9 @@ package main
import ( import (
"fmt" "fmt"
"local/args" "gogs.inhome.blapointe.com/local/args"
"local/storage" "gogs.inhome.blapointe.com/local/storage"
"local/storage/resolve" "gogs.inhome.blapointe.com/local/storage/resolve"
"log" "log"
) )

4
db.go
View File

@ -3,8 +3,8 @@ package storage
import ( import (
"fmt" "fmt"
"io" "io"
"local/storage/minio" "gogs.inhome.blapointe.com/local/storage/minio"
"local/storage/rclone" "gogs.inhome.blapointe.com/local/storage/rclone"
) )
type DBStream interface { type DBStream interface {

View File

@ -4,9 +4,9 @@ import (
"bytes" "bytes"
"fmt" "fmt"
"io/ioutil" "io/ioutil"
"local/storage/minio" "gogs.inhome.blapointe.com/local/storage/minio"
"local/storage/rclone" "gogs.inhome.blapointe.com/local/storage/rclone"
"local/storage/resolve" "gogs.inhome.blapointe.com/local/storage/resolve"
"log" "log"
"net" "net"
"os" "os"

View File

@ -1,6 +1,6 @@
package storage package storage
import "local/storage/resolve" import "gogs.inhome.blapointe.com/local/storage/resolve"
var ErrNotFound = resolve.ErrNotFound var ErrNotFound = resolve.ErrNotFound
var ErrNotImpl = resolve.ErrNotImpl var ErrNotImpl = resolve.ErrNotImpl

View File

@ -5,8 +5,8 @@ import (
"errors" "errors"
"io" "io"
"io/ioutil" "io/ioutil"
"local/logb" "gogs.inhome.blapointe.com/local/logb"
"local/storage/resolve" "gogs.inhome.blapointe.com/local/storage/resolve"
"os" "os"
"path" "path"
"path/filepath" "path/filepath"

6
go.mod
View File

@ -1,4 +1,4 @@
module local/storage module gogs.inhome.blapointe.com/local/storage
go 1.16 go 1.16
@ -11,9 +11,7 @@ require (
github.com/patrickmn/go-cache v2.1.0+incompatible github.com/patrickmn/go-cache v2.1.0+incompatible
github.com/syndtr/goleveldb v1.0.0 github.com/syndtr/goleveldb v1.0.0
go.mongodb.org/mongo-driver v1.7.2 go.mongodb.org/mongo-driver v1.7.2
gogs.inhome.blapointe.com/local/logb v0.0.0-20230410154319-880efa39d871
golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6 // indirect golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6 // indirect
gopkg.in/yaml.v2 v2.2.8 gopkg.in/yaml.v2 v2.2.8
local/logb v0.0.0-00010101000000-000000000000
) )
replace local/logb => ../logb

3
go.sum
View File

@ -183,6 +183,8 @@ github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d/go.mod h1:rHwXgn7Jul
github.com/yunify/qingstor-sdk-go v2.2.15+incompatible/go.mod h1:w6wqLDQ5bBTzxGJ55581UrSwLrsTAsdo9N6yX/8d9RY= github.com/yunify/qingstor-sdk-go v2.2.15+incompatible/go.mod h1:w6wqLDQ5bBTzxGJ55581UrSwLrsTAsdo9N6yX/8d9RY=
go.mongodb.org/mongo-driver v1.7.2 h1:pFttQyIiJUHEn50YfZgC9ECjITMT44oiN36uArf/OFg= go.mongodb.org/mongo-driver v1.7.2 h1:pFttQyIiJUHEn50YfZgC9ECjITMT44oiN36uArf/OFg=
go.mongodb.org/mongo-driver v1.7.2/go.mod h1:Q4oFMbo1+MSNqICAdYMlC/zSTrwCogR4R8NzkI+yfU8= go.mongodb.org/mongo-driver v1.7.2/go.mod h1:Q4oFMbo1+MSNqICAdYMlC/zSTrwCogR4R8NzkI+yfU8=
gogs.inhome.blapointe.com/local/logb v0.0.0-20230410154319-880efa39d871 h1:cMGPiwvK/QGg4TfW8VasO6SsS/O7UQmwyKDErV/ozoA=
gogs.inhome.blapointe.com/local/logb v0.0.0-20230410154319-880efa39d871/go.mod h1:E0pLNvMLzY0Kth1W078y+06z1AUyVMWnChMpRFf4w2Q=
golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
golang.org/x/crypto v0.0.0-20190131182504-b8fe1690c613/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190131182504-b8fe1690c613/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
@ -214,7 +216,6 @@ golang.org/x/sys v0.0.0-20190403152447-81d4e9dc473e/go.mod h1:h1NjWce9XRLGQEsW7w
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190419153524-e8e3143a4f4a/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190419153524-e8e3143a4f4a/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190531175056-4c3a928424d2 h1:T5DasATyLQfmbTpfEXx/IOL9vfjzW6up+ZDkmHvIf2s=
golang.org/x/sys v0.0.0-20190531175056-4c3a928424d2/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190531175056-4c3a928424d2/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6 h1:nonptSpoQ4vQjyraW20DXPAglgQfVnM9ZC6MmNLMR60= golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6 h1:nonptSpoQ4vQjyraW20DXPAglgQfVnM9ZC6MmNLMR60=
golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=

View File

@ -1,7 +1,7 @@
package storage package storage
import ( import (
"local/storage/resolve" "gogs.inhome.blapointe.com/local/storage/resolve"
"path" "path"
"strconv" "strconv"
"strings" "strings"

2
map.go
View File

@ -2,7 +2,7 @@ package storage
import ( import (
"fmt" "fmt"
"local/storage/resolve" "gogs.inhome.blapointe.com/local/storage/resolve"
"sync" "sync"
) )

View File

@ -1,5 +1,5 @@
package storage package storage
import "local/storage/minio" import "gogs.inhome.blapointe.com/local/storage/minio"
type Minio minio.Minio type Minio minio.Minio

View File

@ -4,7 +4,7 @@ import (
"bytes" "bytes"
"fmt" "fmt"
"io/ioutil" "io/ioutil"
"local/storage/resolve" "gogs.inhome.blapointe.com/local/storage/resolve"
"net/url" "net/url"
"sort" "sort"
"strings" "strings"

View File

@ -3,7 +3,7 @@ package storage
import ( import (
"context" "context"
"errors" "errors"
"local/storage/resolve" "gogs.inhome.blapointe.com/local/storage/resolve"
"strings" "strings"
"time" "time"

View File

@ -5,7 +5,7 @@ import (
"errors" "errors"
"io" "io"
"io/ioutil" "io/ioutil"
"local/storage/resolve" "gogs.inhome.blapointe.com/local/storage/resolve"
"os" "os"
"path" "path"
"time" "time"

View File

@ -3,7 +3,7 @@ package storage
import ( import (
"errors" "errors"
"fmt" "fmt"
"local/storage/resolve" "gogs.inhome.blapointe.com/local/storage/resolve"
"time" "time"
"github.com/gomodule/redigo/redis" "github.com/gomodule/redigo/redis"

View File

@ -7,7 +7,7 @@ import (
"fmt" "fmt"
"io" "io"
"io/ioutil" "io/ioutil"
"local/storage/resolve" "gogs.inhome.blapointe.com/local/storage/resolve"
"os" "os"
"path" "path"
"path/filepath" "path/filepath"