Documentation ¶
Index ¶
- func NewPeerId() (string, error)
- func NewWorker(self *Self, peers *Peers, init chan<- struct{})
- type Client
- type Peers
- type Self
- type Server
- func (s Server) Handshake(ctx context.Context, req *api.HandshakeRequest) (*api.HandshakeResponse, error)
- func (s Server) SetSession(ctx context.Context, req *api.SetSessionRequest) (*api.SetSessionResponse, error)
- func (s Server) StreamSessions(req *api.StreamSessionsRequest, stream api.Replication_StreamSessionsServer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
func (Client) SetSession ¶
type Server ¶
type Server struct { api.UnimplementedReplicationServer Self *Self Peers *Peers }
func (Server) Handshake ¶
func (s Server) Handshake(ctx context.Context, req *api.HandshakeRequest) (*api.HandshakeResponse, error)
func (Server) SetSession ¶
func (s Server) SetSession(ctx context.Context, req *api.SetSessionRequest) (*api.SetSessionResponse, error)
func (Server) StreamSessions ¶
func (s Server) StreamSessions(req *api.StreamSessionsRequest, stream api.Replication_StreamSessionsServer) error
Click to show internal directories.
Click to hide internal directories.