detection

package
v0.0.0-...-56d0f0e Latest Latest
Warning

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

Go to latest
Published: May 11, 2023 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 DetectionRepository

type DetectionRepository struct{}

func NewDetectionRepository

func NewDetectionRepository() *DetectionRepository

func (*DetectionRepository) EndDetection

func (r *DetectionRepository) EndDetection(ctx context.Context, temporalClient client.Client, alarmScheduleID string, userEmail string) error

func (*DetectionRepository) StartDetection

func (r *DetectionRepository) StartDetection(ctx context.Context, temporalClient client.Client, alarmScheduleID string, userEmail string) error

type DetectionService

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

func NewDetectionService

func NewDetectionService(repository Repository) *DetectionService

func (*DetectionService) End

func (s *DetectionService) End(ctx context.Context, temporalClient client.Client, alarmScheduleID string, userEmail string) error

func (*DetectionService) Start

func (s *DetectionService) Start(ctx context.Context, temporalClient client.Client, alarmScheduleID string, userEmail string) error

type Repository

type Repository interface {
	StartDetection(ctx context.Context, temporalClient client.Client, alarmScheduleID string, userEmail string) error
	EndDetection(ctx context.Context, temporalClient client.Client, alarmScheduleID string, userEmail string) error
}

type Service

type Service interface {
	Start(ctx context.Context, temporalClient client.Client, alarmScheduleID string, userEmail string) error
	End(ctx context.Context, temporalClient client.Client, alarmScheduleID string, userEmail string) error
}

Jump to

Keyboard shortcuts

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