Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SyncUpdate ¶
type SyncUpdate struct { // identifies the store this updates needs to be written to if Sync.Validate == false Store string // The received update Update *sdcpb.Notification // if true indicates the start of cache pruning Start bool // if true and start is true indicates first sync iteration, // it overrides any ongoing pruning in the cache. Force bool // if true indicates the end of a sync iteration. // triggers the pruning on the cache side. End bool }
type Target ¶
type Target interface { Get(ctx context.Context, req *sdcpb.GetDataRequest) (*sdcpb.GetDataResponse, error) Set(ctx context.Context, req *sdcpb.SetDataRequest) (*sdcpb.SetDataResponse, error) Sync(ctx context.Context, syncConfig *config.Sync, syncCh chan *SyncUpdate) Status() string Close() error }
func New ¶
func New(ctx context.Context, name string, cfg *config.SBI, schemaClient schemaClient.SchemaClientBound, opts ...grpc.DialOption) (Target, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.