feeds

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const NotificationsPull = "Notifications-Pull"
View Source
const NotificationsPush = "Notifications-Push"

Variables

This section is empty.

Functions

This section is empty.

Types

type Feed

type Feed interface {
	Start()
	Stop()
	FeedName() string
	FeedURL() string
	FeedType() string
	SetCredentials(username string, password string)
	NotificationsFor(uuid string) []*Notification
}

func NewNotificationsFeed

func NewNotificationsFeed(name string, baseURL url.URL, expiry, interval int, username, password, apiKey string, log *logger.UPPLogger) Feed
type Link struct {
	Href string
}

ignore unused field (e.g. rel)

type Notification

type Notification struct {
	PublishReference string
	LastModified     string
	ID               string
}

ignore unused fields (e.g. type, apiUrl)

type NotificationsPullFeed

type NotificationsPullFeed struct {
	// contains filtered or unexported fields
}

func (*NotificationsPullFeed) FeedName

func (f *NotificationsPullFeed) FeedName() string

func (*NotificationsPullFeed) FeedType

func (f *NotificationsPullFeed) FeedType() string

func (*NotificationsPullFeed) FeedURL

func (f *NotificationsPullFeed) FeedURL() string

func (*NotificationsPullFeed) NotificationsFor

func (f *NotificationsPullFeed) NotificationsFor(uuid string) []*Notification

func (*NotificationsPullFeed) SetCredentials

func (f *NotificationsPullFeed) SetCredentials(username string, password string)

func (*NotificationsPullFeed) SetHTTPCaller added in v1.0.4

func (f *NotificationsPullFeed) SetHTTPCaller(httpCaller httpcaller.Caller)

func (*NotificationsPullFeed) Start

func (f *NotificationsPullFeed) Start()

func (*NotificationsPullFeed) Stop

func (f *NotificationsPullFeed) Stop()

type NotificationsPushFeed

type NotificationsPushFeed struct {
	// contains filtered or unexported fields
}

func (*NotificationsPushFeed) FeedName

func (f *NotificationsPushFeed) FeedName() string

func (*NotificationsPushFeed) FeedType

func (f *NotificationsPushFeed) FeedType() string

func (*NotificationsPushFeed) FeedURL

func (f *NotificationsPushFeed) FeedURL() string

func (*NotificationsPushFeed) IsConnected

func (f *NotificationsPushFeed) IsConnected() bool

func (*NotificationsPushFeed) NotificationsFor

func (f *NotificationsPushFeed) NotificationsFor(uuid string) []*Notification

func (*NotificationsPushFeed) SetCredentials

func (f *NotificationsPushFeed) SetCredentials(username string, password string)

func (*NotificationsPushFeed) SetHTTPCaller added in v1.0.4

func (f *NotificationsPushFeed) SetHTTPCaller(httpCaller httpcaller.Caller)

func (*NotificationsPushFeed) Start

func (f *NotificationsPushFeed) Start()

func (*NotificationsPushFeed) Stop

func (f *NotificationsPushFeed) Stop()

Jump to

Keyboard shortcuts

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