refactor: Decompose index func

This commit is contained in:
Felix Pojtinger
2021-12-06 21:27:59 +01:00
parent 3efa2fe308
commit fdafd1a57a
14 changed files with 579 additions and 479 deletions
+19
View File
@@ -0,0 +1,19 @@
package config
const (
NoneKey = "none"
CompressionFormatGZipKey = "gzip"
CompressionFormatParallelGZipKey = "parallelgzip"
CompressionFormatLZ4Key = "lz4"
CompressionFormatZStandardKey = "zstandard"
CompressionFormatBrotliKey = "brotli"
CompressionFormatBzip2Key = "bzip2"
CompressionFormatBzip2ParallelKey = "parallelbzip2"
EncryptionFormatAgeKey = "age"
EncryptionFormatPGPKey = "pgp"
SignatureFormatMinisignKey = "minisign"
SignatureFormatPGPKey = "pgp"
)
+8
View File
@@ -0,0 +1,8 @@
package config
import "errors"
var (
ErrUnsupportedEncryptionFormat = errors.New("unsupported encryption format")
ErrUnsupportedCompressionFormat = errors.New("unsupported compression format")
)