File tree 6 files changed +21
-0
lines changed
6 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -15,4 +15,6 @@ type Config struct {
15
15
MaxNumPartition uint64 `mapstructure:"max_number_of_partition"`
16
16
// MaxNumPendingAcksPerPartition Specifies the maximum number of ackIDs and their corresponding status information that are waiting to be queried in each partition.
17
17
MaxNumPendingAcksPerPartition uint64 `mapstructure:"max_number_of_pending_acks_per_partition"`
18
+ // prevent unkeyed literal initializatin
19
+ _ struct {}
18
20
}
Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ type Config struct {
29
29
Audience []string `mapstructure:"audience"`
30
30
31
31
PrivateKey configopaque.String `mapstructure:"private_key"`
32
+ // prevent unkeyed literal initializatin
33
+ _ struct {}
32
34
}
33
35
34
36
func (c * Config ) Validate () error {
Original file line number Diff line number Diff line change @@ -11,4 +11,6 @@ import (
11
11
type Config struct {
12
12
// ProxyServer defines configurations related to the local TCP proxy server.
13
13
ProxyConfig proxy.Config `mapstructure:",squash"`
14
+ // prevent unkeyed literal initializatin
15
+ _ struct {}
14
16
}
Original file line number Diff line number Diff line change @@ -19,20 +19,26 @@ type HtpasswdSettings struct {
19
19
File string `mapstructure:"file"`
20
20
// Inline contents of the htpasswd file.
21
21
Inline string `mapstructure:"inline"`
22
+ // prevent unkeyed literal initializatin
23
+ _ struct {}
22
24
}
23
25
24
26
type ClientAuthSettings struct {
25
27
// Username holds the username to use for client authentication.
26
28
Username string `mapstructure:"username"`
27
29
// Password holds the password to use for client authentication.
28
30
Password configopaque.String `mapstructure:"password"`
31
+ // prevent unkeyed literal initializatin
32
+ _ struct {}
29
33
}
30
34
type Config struct {
31
35
// Htpasswd settings.
32
36
Htpasswd * HtpasswdSettings `mapstructure:"htpasswd,omitempty"`
33
37
34
38
// ClientAuth settings
35
39
ClientAuth * ClientAuthSettings `mapstructure:"client_auth,omitempty"`
40
+ // prevent unkeyed literal initializatin
41
+ _ struct {}
36
42
}
37
43
38
44
func (cfg * Config ) Validate () error {
Original file line number Diff line number Diff line change @@ -23,6 +23,9 @@ type Config struct {
23
23
24
24
// Filename points to a file that contains the bearer token(s) to use for every RPC.
25
25
Filename string `mapstructure:"filename,omitempty"`
26
+
27
+ // prevent unkeyed literal initializatin
28
+ _ struct {}
26
29
}
27
30
28
31
var (
Original file line number Diff line number Diff line change @@ -8,15 +8,21 @@ import "errors" // Config contains the configuration for the cgroup runtime exte
8
8
type Config struct {
9
9
GoMaxProcs GoMaxProcsConfig `mapstructure:"gomaxprocs"`
10
10
GoMemLimit GoMemLimitConfig `mapstructure:"gomemlimit"`
11
+ // prevent unkeyed literal initializatin
12
+ _ struct {}
11
13
}
12
14
13
15
type GoMaxProcsConfig struct {
14
16
Enabled bool `mapstructure:"enabled"`
17
+ // prevent unkeyed literal initializatin
18
+ _ struct {}
15
19
}
16
20
17
21
type GoMemLimitConfig struct {
18
22
Enabled bool `mapstructure:"enabled"`
19
23
Ratio float64 `mapstructure:"ratio"`
24
+ // prevent unkeyed literal initializatin
25
+ _ struct {}
20
26
}
21
27
22
28
// Validate checks if the extension configuration is valid
You can’t perform that action at this time.
0 commit comments