libnotify

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

libnotify is a lightweight client for libnotify https://developer.gnome.org/notification-spec/. For now this just shells out to "notify-send". TODO: Move this into it's own repository as time permits.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Path string
}

func NewClient

func NewClient() *Client

func (Client) Notify

func (c Client) Notify(n Notification) error

type Notification

type Notification struct {
	Urgency string
	Expire  time.Duration
	Title   string
	Body    string
	Icon    string
}

Jump to

Keyboard shortcuts

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