From 5bf3429efdeab89f125efe4ed911dfae1d7258d1 Mon Sep 17 00:00:00 2001 From: Vee Zhang Date: Tue, 12 Apr 2022 18:00:03 +0800 Subject: [PATCH] replenish README.md (#13) --- README.md | 2 ++ notify/filter.go | 1 - notify/filter_test.go | 2 -- 3 files changed, 2 insertions(+), 3 deletions(-) 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,