-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstants.go
More file actions
51 lines (44 loc) · 948 Bytes
/
constants.go
File metadata and controls
51 lines (44 loc) · 948 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
package wordcounter
// Export types
const (
ExportTypeTable = "table"
ExportTypeCSV = "csv"
ExportTypeExcel = "excel"
)
// Mode types
const (
ModeDir = "dir"
ModeFile = "file"
)
// Path display modes
const (
PathDisplayAbsolute = "absolute"
PathDisplayRelative = "relative"
)
// Default values
const (
DefaultExportPath = "counter.xlsx"
DefaultHost = "127.0.0.1"
DefaultPort = 8080
DefaultMode = ModeDir
DefaultExportType = ExportTypeTable
)
// Server configuration
const (
ServerAppName = "WordCounter"
APIVersion = "v1"
APIBasePath = "/" + APIVersion + "/wordcounter"
PingEndpoint = APIBasePath + "/ping"
CountEndpoint = APIBasePath + "/count"
)
// File patterns
const (
IgnoreFileName = ".wcignore"
)
// Worker pool configuration
const (
// MinWorkers is the minimum number of workers in the pool
MinWorkers = 1
// MaxWorkers is the maximum number of workers in the pool
MaxWorkers = 32
)