Documentation ¶
Overview ¶
clarkio implements the bottom layer for both sending and receiving messages to i3bar.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadClicks ¶
ReadClicks implements an event loop and will never return. We expect our reader to produce an infinite JSON stream as specified by the i3bar protocol. Each time we manage to unmarshal a Click into a protocol.Click struct we attempt to send said Click to the relevant channel. The relevant channel is found by examining Click.Name and Click.Instance. i.e
key := click.Name + "_" + click.Instance
If this key is found in our map then we write the click event to this channel.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.