Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CursorUpdater ¶
type CursorUpdater interface {
GetCursor() *envelopes.Cursor
AddSubscriber(clientID string, updateChan chan struct{})
RemoveSubscriber(clientID string)
Stop()
}
func NewCursorUpdater ¶
type DBBasedCursorUpdater ¶
type DBBasedCursorUpdater struct {
// contains filtered or unexported fields
}
func (*DBBasedCursorUpdater) AddSubscriber ¶
func (cu *DBBasedCursorUpdater) AddSubscriber(clientID string, updateChan chan struct{})
func (*DBBasedCursorUpdater) GetCursor ¶
func (cu *DBBasedCursorUpdater) GetCursor() *envelopes.Cursor
func (*DBBasedCursorUpdater) RemoveSubscriber ¶
func (cu *DBBasedCursorUpdater) RemoveSubscriber(clientID string)
func (*DBBasedCursorUpdater) Stop ¶
func (cu *DBBasedCursorUpdater) Stop()
type Service ¶
type Service struct {
metadata_api.UnimplementedMetadataApiServer
// contains filtered or unexported fields
}
func NewMetadataApiService ¶
func (*Service) GetSyncCursor ¶
func (s *Service) GetSyncCursor( _ context.Context, _ *metadata_api.GetSyncCursorRequest, ) (*metadata_api.GetSyncCursorResponse, error)
func (*Service) SubscribeSyncCursor ¶
func (s *Service) SubscribeSyncCursor( _ *metadata_api.GetSyncCursorRequest, stream metadata_api.MetadataApi_SubscribeSyncCursorServer, ) error
Click to show internal directories.
Click to hide internal directories.