Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Events ¶
type Events struct {
// Fired when a tip is added.
TipAdded *events.Event
// Fired when a tip is removed.
TipRemoved *events.Event
}
Events represents event happening on the tip-selector.
type TipSelector ¶
type TipSelector struct {
Events Events
// contains filtered or unexported fields
}
TipSelector manages a map of tips and emits events for their removal and addition.
func (*TipSelector) AddTip ¶
func (tipSelector *TipSelector) AddTip(msg *message.Message)
AddTip adds the given message as a tip.
func (*TipSelector) Set ¶ added in v0.2.2
func (tipSelector *TipSelector) Set(tips ...message.Id)
Set adds the given messageIDs as tips.
func (*TipSelector) TipCount ¶
func (tipSelector *TipSelector) TipCount() int
TipCount the amount of current tips.
func (*TipSelector) Tips ¶
func (tipSelector *TipSelector) Tips() (trunkMessageId, branchMessageId message.Id)
Tips returns two tips.
Click to show internal directories.
Click to hide internal directories.