zeplin

package
v1.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 11, 2021 License: MIT Imports: 8 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL