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: 3 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址