We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32ae9a6 commit 9d72b46Copy full SHA for 9d72b46
internal/messages/messages.go
@@ -6,11 +6,11 @@ import (
6
)
7
8
type Message struct {
9
- Ctx context.Context
10
- CancelCtx context.CancelFunc
11
- Msg interface{}
12
- MsgId interface{}
13
- ReceivedTime time.Time
+ Ctx context.Context `json:"-"` // Exclude from JSON
+ CancelCtx context.CancelFunc `json:"-"` // Exclude from JSON
+ MsgId interface{} `json:"id"`
+ Msg interface{} `json:"content"`
+ ReceivedTime time.Time `json:"receivedAt"`
14
}
15
16
func (m Message) Id() interface{} {
0 commit comments