diff --git a/README.md b/README.md index 288db65..56c6fb4 100644 --- a/README.md +++ b/README.md @@ -7,3 +7,5 @@ - [errorx](errorx) - Error extension with code and message. - [httpclient](httpclient) - HTTP client containing raw `Client`, `BytesClient` and `ObjectClient`. +- [mail](mail) - Simple mail client. +- [notify](notify) - Notification interface, supports template, filter, tingtalk and mail. diff --git a/notify/filter.go b/notify/filter.go index 6b9e6c4..1f31045 100644 --- a/notify/filter.go +++ b/notify/filter.go @@ -38,7 +38,6 @@ type ( DuplicateFilterParams struct { DupInterval time.Duration // duplicate data notification interval MaxRecords int // the max of records - Name string } duplicateFilter struct { diff --git a/notify/filter_test.go b/notify/filter_test.go index 1ec92ab..9d95ce1 100644 --- a/notify/filter_test.go +++ b/notify/filter_test.go @@ -107,7 +107,6 @@ func TestDuplicateFilterNotify(t *testing.T) { NewWithDuplicateFilter(DuplicateFilterParams{ DupInterval: dupInterval, MaxRecords: 1, - Name: "name1", }, n11, n12), n13, ) @@ -115,7 +114,6 @@ func TestDuplicateFilterNotify(t *testing.T) { NewWithDuplicateFilter(DuplicateFilterParams{ DupInterval: dupInterval, MaxRecords: 10, - Name: "name2", }, n21), n22, n23,