Skip to content

Commit

Permalink
exported type Message should be of the form Message
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleTang committed Aug 23, 2017
1 parent d55f2b4 commit ce6602c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rocketmq-go/api/model/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ package rocketmqm

import "github.com/apache/incubator-rocketmq-externals/rocketmq-go/model/message"

// rocketmq message
// Message rocketmq message
// topic: the topic of this message
// tag: the topic of this message, one topic may have no tag or different tag
// key: key makes this message easy to search by console (https://github.com/apache/incubator-rocketmq-externals/rocketmq-console)
// body: the message's user content
// see MessageImpl
type Message interface {
//
//Topic get topic
Topic() (topic string)
//set message topic
SetTopic(tag string)
Expand All @@ -27,7 +27,7 @@ type Message interface {
SetBody([]byte)
}

/*create a message instance*/
// NewMessage create a message instance
func NewMessage() (msg Message) {
msg = message.NewMessageImpl()
return
Expand Down

0 comments on commit ce6602c

Please sign in to comment.