Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewNotificationRepository ¶
func NewNotificationRepository(token string) notification.Repository
NewNotificationRepository returns the implementation of a notification.Repository for a zeplin Source
Types ¶
type Notification ¶
type Notification struct {
Params struct {
Source struct {
ID string `json:"_id"`
Email string `json:"email"`
Username string `json:"username"`
Emotar interface{} `json:"emotar"`
Avatar interface{} `json:"avatar"`
} `json:"source"`
Project struct {
ID string `json:"_id"`
Type string `json:"type"`
Name string `json:"name"`
} `json:"project"`
} `json:"params"`
Updated time.Time `json:"updated"`
ID string `json:"_id"`
Events []struct {
Screen struct {
ID string `json:"_id"`
Name string `json:"name"`
} `json:"screen"`
} `json:"events"`
ActionName string `json:"actionName"`
}
Notification it's the internal representation of a Zeplin notification
Click to show internal directories.
Click to hide internal directories.