Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GossipObserverUnit ¶
type GossipObserverUnit struct {
// contains filtered or unexported fields
}
func NewGossipObserver ¶
func NewGossipObserver(config *PolicyObserverConfig) (*GossipObserverUnit, error)
func (*GossipObserverUnit) AddGossip ¶
func (p *GossipObserverUnit) AddGossip(msg *pb.GossipMessage) error
Inserts the gossip message into the log of observed gossips
func (*GossipObserverUnit) GossipIsObserved ¶
func (p *GossipObserverUnit) GossipIsObserved(msg *pb.GossipMessage) bool
Returns true if the gossip message has already been observed, returns false otherwise
func (*GossipObserverUnit) LatestGossip ¶
func (p *GossipObserverUnit) LatestGossip() *pb.GossipMessageID
hacky af...
type PolicyObserverConfig ¶
Click to show internal directories.
Click to hide internal directories.