Documentation
¶
Index ¶
- type Cron
- type HTTPServer
- type Notifier
- type NotifierFactory
- type Paper
- type Repository
- type ResultRepository
- type SearchResults
- type Service
- func (s *Service) GetForUser(ctx context.Context, userID int) ([]Cron, error)
- func (s *Service) Insert(ctx context.Context, cron *Cron) error
- func (s *Service) RegisterHTTP(srv HTTPServer, jwtKey []byte, authClient *auth.Client)
- func (s *Service) RunCrons(ctx context.Context) error
- func (s *Service) StartCron(ctx context.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPServer ¶
Server defines the interface to register the http handlers.
type NotifierFactory ¶
type Paper ¶
type Paper struct { ID int `json:"id"` Source string `json:"source"` Reference string `json:"reference"` Title string `json:"title"` Summary string `json:"summary"` Tags []string `json:"tags"` Authors []string `json:"authors"` References []string `json:"references"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` }
type Repository ¶
type ResultRepository ¶
type SearchResults ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService( repo Repository, resultRepo ResultRepository, notifierFactory NotifierFactory, importsClient *imports.Client, logger log.Logger, ) *Service
func (*Service) GetForUser ¶
func (*Service) RegisterHTTP ¶
func (s *Service) RegisterHTTP(srv HTTPServer, jwtKey []byte, authClient *auth.Client)
Click to show internal directories.
Click to hide internal directories.