rules

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FeedStore

type FeedStore interface {
	Get(ctx context.Context, id uuid.UUID) (models.Feed, error)
}

type RuleStore

type RuleStore interface {
	List(ctx context.Context) ([]*models.Rule, error)
	Save(ctx context.Context, rule *models.Rule) error
	Get(ctx context.Context, ruleID uuid.UUID) (*models.Rule, error)
	Delete(ctx context.Context, ruleID uuid.UUID) error
}

type Service

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

func NewService

func NewService(store RuleStore, feedStore FeedStore) *Service

func (*Service) Delete

func (s *Service) Delete(ctx context.Context, ruleID uuid.UUID) error

func (*Service) Get

func (s *Service) Get(ctx context.Context, ruleID uuid.UUID) (*models.Rule, error)

func (*Service) List

func (*Service) Save

func (s *Service) Save(ctx context.Context, rule *models.Rule) error

Jump to

Keyboard shortcuts

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