github.com/Financial-Times/publish-availability-monitor@v1.12.0/feeds/model.go (about)

     1  package feeds
     2  
     3  // ignore unused fields (e.g. type, apiUrl)
     4  type Notification struct {
     5  	PublishReference string
     6  	LastModified     string
     7  	ID               string
     8  }
     9  
    10  // ignore unused field (e.g. rel)
    11  type Link struct {
    12  	Href string
    13  }
    14  
    15  type Feed interface {
    16  	Start()
    17  	Stop()
    18  	FeedName() string
    19  	FeedURL() string
    20  	FeedType() string
    21  	SetCredentials(username string, password string)
    22  	NotificationsFor(uuid string) []*Notification
    23  }