Skip to content

Commit

Permalink
change to uint32 in structs
Browse files Browse the repository at this point in the history
  • Loading branch information
huikang committed Sep 27, 2022
1 parent d896381 commit accdb00
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 31 deletions.
13 changes: 6 additions & 7 deletions agent/structs/config_entry_gateways.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ type IngressGatewayConfigEntry struct {
}

type IngressServiceConfig struct {
MaxConnections int32
MaxPendingRequests int32
MaxConcurrentRequests int32
MaxConnections uint32
MaxPendingRequests uint32
MaxConcurrentRequests uint32
}

type IngressListener struct {
Expand Down Expand Up @@ -99,10 +99,9 @@ type IngressService struct {
RequestHeaders *HTTPHeaderModifiers `json:",omitempty" alias:"request_headers"`
ResponseHeaders *HTTPHeaderModifiers `json:",omitempty" alias:"response_headers"`

// MaxConnections is the max number of connections that is allowed to a service
MaxConnections int32 `json:",omitempty" alias:"max_connections"`
MaxPendingRequests int32 `json:",omitempty" alias:"max_pending_requests"`
MaxConcurrentRequests int32 `json:",omitempty" alias:"max_concurrent_requests"`
MaxConnections uint32 `json:",omitempty" alias:"max_connections"`
MaxPendingRequests uint32 `json:",omitempty" alias:"max_pending_requests"`
MaxConcurrentRequests uint32 `json:",omitempty" alias:"max_concurrent_requests"`

Meta map[string]string `json:",omitempty"`
acl.EnterpriseMeta `hcl:",squash" mapstructure:",squash"`
Expand Down
36 changes: 18 additions & 18 deletions proto/pbconfigentry/config_entry.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions proto/pbconfigentry/config_entry.proto
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,9 @@ message IngressGateway {
// output=config_entry.gen.go
// name=Structs
message IngressServiceConfig {
int32 MaxConnections = 1;
int32 MaxPendingRequests = 2;
int32 MaxConcurrentRequests = 3;
uint32 MaxConnections = 1;
uint32 MaxPendingRequests = 2;
uint32 MaxConcurrentRequests = 3;
}

// mog annotation:
Expand Down Expand Up @@ -295,9 +295,9 @@ message IngressService {
map<string, string> Meta = 6;
// mog: func-to=enterpriseMetaToStructs func-from=enterpriseMetaFromStructs
common.EnterpriseMeta EnterpriseMeta = 7;
int32 MaxConnections = 8;
int32 MaxPendingRequests = 9;
int32 MaxConcurrentRequests = 10;
uint32 MaxConnections = 8;
uint32 MaxPendingRequests = 9;
uint32 MaxConcurrentRequests = 10;
}

// mog annotation:
Expand Down

0 comments on commit accdb00

Please sign in to comment.