Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeHandler ¶
MakeHandler returns an http.Handler for the s
Types ¶
type Service ¶
type Service interface {
// GetSources returns a list of all the configured source.Source
GetSources(ctx context.Context) ([]source.Source, error)
// GetSourceNotifications returns all the notifications of the srcID
GetSourceNotifications(ctx context.Context, srcID string) ([]*notification.Notification, error)
}
Service it's the public interface for the Notigator Service
func New ¶
func New(srcs source.Repository, nots map[string]notification.Repository) Service
New returns an implementation of the Service interface
Click to show internal directories.
Click to hide internal directories.