Move compression format slice variable from root.go => index.go
This commit is contained in:
parent
56c6565cb1
commit
e13c141c5c
11
cmd/index.go
11
cmd/index.go
|
@ -24,6 +24,17 @@ import (
|
||||||
"seedno.de/seednode/roulette/types"
|
"seedno.de/seednode/roulette/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
var CompressionFormats = []string{
|
||||||
|
"flate",
|
||||||
|
"gzip",
|
||||||
|
"lz4",
|
||||||
|
"lzw",
|
||||||
|
"none",
|
||||||
|
"snappy",
|
||||||
|
"zlib",
|
||||||
|
"zstd",
|
||||||
|
}
|
||||||
|
|
||||||
type fileIndex struct {
|
type fileIndex struct {
|
||||||
mutex *sync.RWMutex
|
mutex *sync.RWMutex
|
||||||
list []string
|
list []string
|
||||||
|
|
13
cmd/root.go
13
cmd/root.go
|
@ -17,7 +17,7 @@ import (
|
||||||
|
|
||||||
const (
|
const (
|
||||||
AllowedCharacters string = `^[A-z0-9.\-_]+$`
|
AllowedCharacters string = `^[A-z0-9.\-_]+$`
|
||||||
ReleaseVersion string = "4.0.4"
|
ReleaseVersion string = "4.0.5"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -63,17 +63,6 @@ var (
|
||||||
Version bool
|
Version bool
|
||||||
Videos bool
|
Videos bool
|
||||||
|
|
||||||
CompressionFormats = []string{
|
|
||||||
"flate",
|
|
||||||
"gzip",
|
|
||||||
"lz4",
|
|
||||||
"lzw",
|
|
||||||
"none",
|
|
||||||
"snappy",
|
|
||||||
"zlib",
|
|
||||||
"zstd",
|
|
||||||
}
|
|
||||||
|
|
||||||
RequiredArgs = []string{
|
RequiredArgs = []string{
|
||||||
"all",
|
"all",
|
||||||
"audio",
|
"audio",
|
||||||
|
|
Loading…
Reference in New Issue