notify

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2018 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TelegramNotifyMethod = "telegram"
	TestMockMethod       = "mock"
)

Variables

This section is empty.

Functions

func Init

func Init(conf config.Notify) error

func MotionDetectedStart

func MotionDetectedStart()

func MotionDetectedStop

func MotionDetectedStop()

func PhotoSaved

func PhotoSaved(filepath string)

func Shutdown

func Shutdown()

Types

type MockNotifyService

type MockNotifyService struct {
}

func (*MockNotifyService) Authenticate

func (b *MockNotifyService) Authenticate() error

func (*MockNotifyService) Notify

func (b *MockNotifyService) Notify(message, file string) error

func (*MockNotifyService) Stop

func (b *MockNotifyService) Stop() error

type NotifyService

type NotifyService interface {
	Authenticate() error
	Notify(string, string) error
	Stop() error
}

type State

type State string

type TelegramNotifyService

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

func (*TelegramNotifyService) Authenticate

func (n *TelegramNotifyService) Authenticate() error

func (*TelegramNotifyService) Notify

func (n *TelegramNotifyService) Notify(message, filename string) error

func (*TelegramNotifyService) Stop

func (n *TelegramNotifyService) Stop() error

Jump to

Keyboard shortcuts

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