Documentation
¶
Index ¶
- Variables
- func RPCMsg(msg rt.Message) rr.Message
- func RaftMsg(msg rr.Message) rt.Message
- type Config
- type Handler
- type HandlerFunc
- type Transport
- func (t *Transport) AddPeer(id int64, addr string)
- func (t *Transport) Do(ctx context.Context, req *rr.Message) (resp *rr.DummyResp, err error)
- func (t *Transport) Peers() int
- func (t *Transport) RemovePeer(id int64)
- func (t *Transport) Send(messages []rt.Message)
- func (t *Transport) Start() error
- func (t *Transport) Stop()
- type Transporter
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type HandlerFunc ¶
type Transport ¶
type Transport struct { Config // contains filtered or unexported fields }
func NewTransport ¶
func (*Transport) RemovePeer ¶
Click to show internal directories.
Click to hide internal directories.