Documentation ¶
Index ¶
Constants ¶
View Source
const ( Unchanged = 0 Insert = 1 Update = 2 Delete = 3 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Syncer ¶
type Syncer[T any, V comparable] struct { // contains filtered or unexported fields }
func New ¶
func New[T any, V comparable]( insert func(ctx context.Context, value T) error, delete func(ctx context.Context, value T) error, update func(ctx context.Context, server T, local T) error, uuid func(value T) V, equal func(a T, b T) bool, notice func(ctx context.Context, state int, server, local T) error, ) *Syncer[T, V]
Click to show internal directories.
Click to hide internal directories.