Documentation ¶
Index ¶
- type Config
- type Server
- func (s *Server) ActivateClient(ctx context.Context, req *api.ActivateClientRequest) (*api.ActivateClientResponse, error)
- func (s *Server) AttachDocument(ctx context.Context, req *api.AttachDocumentRequest) (*api.AttachDocumentResponse, error)
- func (s *Server) DeactivateClient(ctx context.Context, req *api.DeactivateClientRequest) (*api.DeactivateClientResponse, error)
- func (s *Server) DetachDocument(ctx context.Context, req *api.DetachDocumentRequest) (*api.DetachDocumentResponse, error)
- func (s *Server) PushPull(ctx context.Context, req *api.PushPullRequest) (*api.PushPullResponse, error)
- func (s *Server) Shutdown(graceful bool)
- func (s *Server) Start() error
- func (s *Server) WatchDocuments(req *api.WatchDocumentsRequest, stream api.Yorkie_WatchDocumentsServer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is a normal server that processes the logic requested by the client.
func (*Server) ActivateClient ¶
func (s *Server) ActivateClient( ctx context.Context, req *api.ActivateClientRequest, ) (*api.ActivateClientResponse, error)
ActivateClient activates the given client.
func (*Server) AttachDocument ¶
func (s *Server) AttachDocument( ctx context.Context, req *api.AttachDocumentRequest, ) (*api.AttachDocumentResponse, error)
AttachDocument attaches the given document to the client.
func (*Server) DeactivateClient ¶
func (s *Server) DeactivateClient( ctx context.Context, req *api.DeactivateClientRequest, ) (*api.DeactivateClientResponse, error)
DeactivateClient deactivates the given client.
func (*Server) DetachDocument ¶
func (s *Server) DetachDocument( ctx context.Context, req *api.DetachDocumentRequest, ) (*api.DetachDocumentResponse, error)
DetachDocument detaches the given document to the client.
func (*Server) PushPull ¶
func (s *Server) PushPull( ctx context.Context, req *api.PushPullRequest, ) (*api.PushPullResponse, error)
PushPull stores the changes sent by the client and delivers the changes accumulated in the agent to the client.
func (*Server) WatchDocuments ¶
func (s *Server) WatchDocuments( req *api.WatchDocumentsRequest, stream api.Yorkie_WatchDocumentsServer, ) error
WatchDocuments connects the stream to deliver events from the given documents to the requesting client.
Click to show internal directories.
Click to hide internal directories.