barista.run: barista.run/group/cycling Index | Files

package cycling

import "barista.run/group/cycling"

Package cycling provides a group that continuously cycles between all modules at a fixed interval.

Index

Package Files

cycling.go

type Controller Uses

type Controller interface {
    SetInterval(time.Duration)
}

Controller provides an interface to control a collapsing group.

func Group Uses

func Group(interval time.Duration, m ...bar.Module) (bar.Module, Controller)

Group returns a new cycling group with the given interval, and a linked Controller.

Package cycling imports 7 packages (graph). Updated 2018-11-25. Refresh now. Tools for package owners.