Documentation
¶
Index ¶
- type Cmd
- type Config
- type ConnDownEvent
- type HyParView
- func (h *HyParView) AddClientMsgHandler(msgType data.MessageType, handler func(msg []byte, sender Peer))
- func (h *HyParView) GetPeers(num int) []Peer
- func (h *HyParView) GetState() any
- func (h *HyParView) Join(contactNodeID string, contactNodeAddress string) error
- func (h *HyParView) Leave()
- func (h *HyParView) OnPeerDown(handler func(peer Peer))
- func (h *HyParView) OnPeerUp(handler func(peer Peer))
- func (h *HyParView) Self() data.Node
- type JoinCmd
- type LeaveCmd
- type MsgEvent
- type Peer
- type PeerDownEvent
- type PeerList
- type PeerUpEvent
- type ShuffleEvent
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnDownEvent ¶
type HyParView ¶
type HyParView struct {
AllowAny bool
// contains filtered or unexported fields
}
func NewHyParView ¶
func (*HyParView) AddClientMsgHandler ¶
func (h *HyParView) AddClientMsgHandler(msgType data.MessageType, handler func(msg []byte, sender Peer))
func (*HyParView) OnPeerDown ¶
type PeerDownEvent ¶
type PeerDownEvent struct {
Peer Peer
}
type PeerUpEvent ¶
type PeerUpEvent struct {
Peer Peer
}
type ShuffleEvent ¶
type ShuffleEvent struct{}
Click to show internal directories.
Click to hide internal directories.