notifier

package
v0.0.0-...-bd67cb2 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler func(tip, title, info string)

type Message

type Message struct {
	Tooltip string `json:"tooltip"`
	Title   string `json:"title"`
	Info    string `json:"info"`
}

type Notifier

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

func NewNotifier

func NewNotifier(icon string) (*Notifier, error)

NewNotifier creates notification popup wrapper with custom icon.

func (*Notifier) AddNotifyIcon

func (n *Notifier) AddNotifyIcon(tip, title, info string) error

AddNotifyIcon adds a notification balloon with passed tooltip, title and description.

func (*Notifier) Close

func (n *Notifier) Close()

Close closes notification balloon.

func (*Notifier) Init

func (n *Notifier) Init(icon string) error

Init connects notifier to DBus session.

func (*Notifier) SetIcon

func (n *Notifier) SetIcon(icon string) error

SetIcon replaces an icon for next balloon.

func (*Notifier) Update

func (n *Notifier) Update(tip, title, info string) error

Update updates existing notification balloon with passed tooltip, title and description.

type SocketTransport

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

func (*SocketTransport) Observe

func (st *SocketTransport) Observe(address string, handler Handler) error

func (*SocketTransport) Stop

func (st *SocketTransport) Stop() error

type Transport

type Transport interface {
	Observe(address string, handler Handler) error
	Stop() error
}

Jump to

Keyboard shortcuts

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