mirror of
https://github.com/anyproto/any-sync.git
synced 2025-06-10 10:00:49 +09:00
19 lines
550 B
Go
19 lines
550 B
Go
package syncproto
|
|
|
|
func WrapHeadUpdate(update *SyncHeadUpdate) *Sync {
|
|
return &Sync{Message: &SyncContentValue{
|
|
Value: &SyncContentValueValueOfHeadUpdate{HeadUpdate: update},
|
|
}}
|
|
}
|
|
|
|
func WrapFullRequest(request *SyncFullRequest) *Sync {
|
|
return &Sync{Message: &SyncContentValue{
|
|
Value: &SyncContentValueValueOfFullSyncRequest{FullSyncRequest: request},
|
|
}}
|
|
}
|
|
|
|
func WrapFullResponse(response *SyncFullResponse) *Sync {
|
|
return &Sync{Message: &SyncContentValue{
|
|
Value: &SyncContentValueValueOfFullSyncResponse{FullSyncResponse: response},
|
|
}}
|
|
}
|