From b9d30eee88e14b3d7fcf68b608cc4ec36608ad40 Mon Sep 17 00:00:00 2001 From: linwenxiang <991154416@qq.com> Date: Wed, 5 Aug 2020 23:30:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9A=E4=B9=89=E7=BC=93=E5=AD=98=E5=92=8C?= =?UTF-8?q?=E9=98=9F=E5=88=97=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/cache/type.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/cache/type.go b/pkg/cache/type.go index 5327760e..e5844c9f 100644 --- a/pkg/cache/type.go +++ b/pkg/cache/type.go @@ -17,8 +17,8 @@ type Adapter interface { GetQueue(name string, f func(message Message) error) } -type Message struct { - ID string - Stream string - Values map[string]interface{} +type Message interface { + SetID(string) + SetStream(string) + SetValue(map[string]interface{}) }