add stream -json

This commit is contained in:
Yasuhiro Matsumoto 2017-04-17 23:29:44 +09:00
parent b6d4c40dd6
commit e7f2469bc0
3 changed files with 27 additions and 13 deletions

View file

@ -14,7 +14,9 @@ import (
)
// UpdateEvent is struct for passing status event to app.
type UpdateEvent struct{ Status *Status }
type UpdateEvent struct {
Status *Status `json:"status"`
}
func (e *UpdateEvent) event() {}