service

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeHandler

func MakeHandler(s Service) http.Handler

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

New returns an implementation of the Service interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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