forked from rande/pkgmirror
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.go
54 lines (47 loc) · 998 Bytes
/
config.go
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
52
53
54
// Copyright © 2016-present Thomas Rabaix <[email protected]>.
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.
package pkgmirror
type ComposerConfig struct {
Server string
Enabled bool
Icon string
}
type BowerConfig struct {
Server string
Enabled bool
Icon string
}
type NpmConfig struct {
Server string
Enabled bool
Icon string
Fallbacks []*struct {
Server string
}
}
type GitConfig struct {
Server string
Enabled bool
Icon string
Clone string
}
type StaticConfig struct {
Server string
Enabled bool
Icon string
}
type Config struct {
DataDir string
LogDir string
CacheDir string
PublicServer string
InternalServer string
LogLevel string
Composer map[string]*ComposerConfig
Npm map[string]*NpmConfig
Git map[string]*GitConfig
Bower map[string]*BowerConfig
Static map[string]*StaticConfig
}