Skip to content

Commit

Permalink
Merge pull request #1 from gharia/master
Browse files Browse the repository at this point in the history
Add authors field
  • Loading branch information
dwin authored Sep 3, 2019
2 parents 166fa97 + 6b4f79b commit 5ce10ea
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions proto.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ type PongData struct {
PingTime string `json:"pingTime"`
}

// Author represents an author
type Author struct {
Name string `json:"name"`
}

// TickerData contains a symbol associated with a STREAM message.
type TickerData struct {
Name string `json:"name"`
Expand All @@ -66,6 +71,7 @@ type StreamData struct {
ID int `json:"id"`
Title string `json:"title"`
Body string `json:"body"`
Authors []Author `json:"authors,omitempty"`
PublishedAt string `json:"published"`
UpdatedAt string `json:"updated"`
Channels []string `json:"channels"`
Expand Down

0 comments on commit 5ce10ea

Please sign in to comment.