Documentation
¶
Overview ¶
Package hbucast implement a hb unicast driver
Example:
msgC := make(chan *hbtype.Msg) // a global *hbtype.Msg chan for received Msg n := clusterhb.New() registeredDataC := make([]chan []byte, 0) // list send data chan where tx can send data for _, h := range n.Hbs() { h.Configure(ctx) // configure tx and rx if err := h.Rx().Start(data.Cmd(), msgC); err != nil { return err } localDataC := make(chan []byte) // []byte chan dedicated to this tx if err := h.Tx().Start(data.Cmd(), localDataC); err != nil { return err } registeredDataC = append(registeredDataC, localDataC) }
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.