notifier

package module
v0.0.0-...-686adda Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2017 License: MIT Imports: 7 Imported by: 1

README

Google Home Notifier for Go

Send notifications to Google Home

Usage

Check example directory

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
}

Notifier is a google-home-notifier-go client

func NewClient

func NewClient(ctx context.Context, host string, port int) (*Notifier, error)

NewClient makes a connection and create a client

func (*Notifier) Close

func (n *Notifier) Close()

Close connection

func (*Notifier) Notify

func (n *Notifier) Notify(text string, language string) error

Notify sends a message to google home

func (*Notifier) Play

func (n *Notifier) Play(url string) error

Play sound via URL

func (*Notifier) Quit

func (n *Notifier) Quit() error

Quit

func (*Notifier) Stop

func (n *Notifier) Stop() error

Stop sound

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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