client: allow to set metadata for message

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2021-12-16 15:03:42 +03:00
parent a36f99e30b
commit e143e2b547
5 changed files with 21 additions and 3 deletions

View File

@@ -49,6 +49,7 @@ type Message interface {
Topic() string
Payload() interface{}
ContentType() string
Metadata() metadata.Metadata
}
// Request is the interface for a synchronous request used by Call or Stream