Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
Channel is a simple interface between the notifying component and the notificaiton impl
func NewServiceChannel ¶
func NewServiceChannel(config ServiceConfiguration) (Channel, error)
NewServiceChannel sends notification messages to the fabric8-notification service
type DevNullChannel ¶
type DevNullChannel struct{}
DevNullChannel is the default configured channel. It does nothing.
type Message ¶
type Message struct { MessageID uuid.UUID // unique ID per event UserID *string TargetID string MessageType string }
Message represents a new event of a Type for a Target performed by a User See helper constructors like NewWorkItemCreated, NewCommentUpdated
func NewCommentCreated ¶
NewCommentCreated creates a new message instance for the newly created CommentID
func NewCommentUpdated ¶
NewCommentUpdated creates a new message instance for the updated CommentID
func NewWorkItemCreated ¶
NewWorkItemCreated creates a new message instance for the newly created WorkItemID
func NewWorkItemUpdated ¶
NewWorkItemUpdated creates a new message instance for the updated WorkItemID
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is a simple client Channel to the fabric8-notification service
type ServiceConfiguration ¶
type ServiceConfiguration interface {
GetNotificationServiceURL() string
}
ServiceConfiguration holds configuration options required to interact with the fabric8-notification API