Skip to content

Commit b54632a

Browse files
authored
Feature: add properties filter (#60)
1 parent e4e3600 commit b54632a

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

.github/workflows/golangci-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ jobs:
1515
- name: golangci-lint
1616
uses: golangci/golangci-lint-action@v2
1717
with:
18-
version: v1.29
18+
version: v1.45.2
1919
args: --skip-dirs=discovery --skip-files=.*_test.go$

discovery/types.go

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,13 @@ type Statistics struct {
9494
}
9595

9696
type GetServicesInfoRequest struct {
97-
Options []string `protobuf:"bytes,1,rep,name=options" json:"options,omitempty"`
98-
AppId string `protobuf:"bytes,2,opt,name=appId" json:"appId,omitempty"`
99-
ServiceName string `protobuf:"bytes,3,opt,name=serviceName" json:"serviceName,omitempty"`
100-
CountOnly bool `protobuf:"varint,4,opt,name=countOnly" json:"countOnly,omitempty"`
101-
WithShared bool `protobuf:"varint,5,opt,name=withShared" json:"withShared,omitempty"`
102-
Environment string `protobuf:"bytes,6,opt,name=environment" json:"environment,omitempty"`
97+
Options []string `protobuf:"bytes,1,rep,name=options" json:"options,omitempty"`
98+
AppId string `protobuf:"bytes,2,opt,name=appId" json:"appId,omitempty"`
99+
ServiceName string `protobuf:"bytes,3,opt,name=serviceName" json:"serviceName,omitempty"`
100+
Properties map[string]string `protobuf:"bytes,2,rep,name=properties" json:"properties,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
101+
CountOnly bool `protobuf:"varint,4,opt,name=countOnly" json:"countOnly,omitempty"`
102+
WithShared bool `protobuf:"varint,5,opt,name=withShared" json:"withShared,omitempty"`
103+
Environment string `protobuf:"bytes,6,opt,name=environment" json:"environment,omitempty"`
103104
}
104105

105106
type GetServicesInfoResponse struct {

0 commit comments

Comments
 (0)