Documentation ¶
Index ¶
Constants ¶
View Source
const CName = "common.commonspace.sync"
Variables ¶
View Source
var ErrUnexpectedMessage = errors.New("unexpected message")
Functions ¶
This section is empty.
Types ¶
type HandleMessage ¶
type RequestManager ¶
type RequestManager interface { QueueRequest(rq syncdeps.Request) error SendRequest(ctx context.Context, rq syncdeps.Request, collector syncdeps.ResponseCollector) error HandleStreamRequest(ctx context.Context, rq syncdeps.Request, stream drpc.Stream) error Close() }
func NewRequestManager ¶
func NewRequestManager(handler syncdeps.SyncHandler, metric syncdeps.QueueSizeUpdater, requestPool syncqueues.ActionPool, limit *syncqueues.Limit) RequestManager
type SyncService ¶
type SyncService interface { app.Component BroadcastMessage(ctx context.Context, msg drpc.Message) error HandleStreamRequest(ctx context.Context, req syncdeps.Request, stream drpc.Stream) error HandleMessage(ctx context.Context, msg drpc.Message) error SendRequest(ctx context.Context, rq syncdeps.Request, collector syncdeps.ResponseCollector) error QueueRequest(ctx context.Context, rq syncdeps.Request) error CloseReceiveQueue(id string) error }
func NewSyncService ¶
func NewSyncService() SyncService
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
mock_syncdeps
Package mock_syncdeps is a generated GoMock package.
|
Package mock_syncdeps is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.