blocks

package
v0.0.0-...-bf74b40 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2019 License: GPL-2.0 Imports: 1 Imported by: 0

Documentation

Overview

blocks is the parent package to all block implementations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block struct {
	// Name and Instance uniquely identify this block
	Name     string
	Instance string

	// Run is called in it's own goroutine and should not return.
	// Each package must implement it's own version.
	Run RunFunc
}

Block is the structure used by clark/conf/conf.go to specify exactly one block on i3bar.

type RunFunc

type RunFunc func(*protocol.Block, <-chan *protocol.Click, chan<- *protocol.Block) error

RunFunc is the function signature which must be exported by individual packages. Implementations of RunFunc should not return and must do event looping themselves. Each instance of RunFunc is expected to take ownership and may freely modify the the variables passed to it.

Directories

Path Synopsis
battery implements a battery monitor.
battery implements a battery monitor.
clock is a package implementing a clock display on i3bar
clock is a package implementing a clock display on i3bar
wifibytes
wifibytes is a package for calculating the number of kilobits per seconds are going over a given network interface.
wifibytes is a package for calculating the number of kilobits per seconds are going over a given network interface.

Jump to

Keyboard shortcuts

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