mirror of
https://gitee.com/WuKongDev/WuKongIM.git
synced 2025-12-06 14:59:08 +08:00
18 lines
291 B
Go
18 lines
291 B
Go
package clusterconfig
|
|
|
|
import "github.com/WuKongIM/WuKongIM/pkg/raft/types"
|
|
|
|
type raftTransport struct {
|
|
s *Server
|
|
}
|
|
|
|
func newRaftTransport(s *Server) *raftTransport {
|
|
return &raftTransport{
|
|
s: s,
|
|
}
|
|
}
|
|
|
|
func (t *raftTransport) Send(event types.Event) {
|
|
t.s.opts.Transport.Send(event)
|
|
}
|