services

package
v0.0.0-...-1f4d271 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Notifier

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

func NewNotifier

func NewNotifier(c config.Config, l *zap.Logger, s SmsClient) Notifier

func (Notifier) Notify

func (n Notifier) Notify(results []stores.StockCheckResult)

type SmsClient

type SmsClient interface {
	Send(body string) error
}

type StoresChecker

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

func NewStoresChecker

func NewStoresChecker(c config.Config, l *zap.Logger) StoresChecker

func (StoresChecker) CheckStores

func (s StoresChecker) CheckStores(storesSlice []stores.Store) []stores.StockCheckResult

type TwilioClient

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

func NewTwilioClient

func NewTwilioClient(c config.Config) TwilioClient

func (TwilioClient) Send

func (c TwilioClient) Send(body string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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