2022-07-21 11:54:19 +02:00

20 lines
589 B
Go

package syncpb
func WrapHeadUpdate(update *SyncHeadUpdate) *SyncContent {
return &SyncContent{Message: &SyncContentValue{
Value: &SyncContentValueValueOfHeadUpdate{HeadUpdate: update},
}}
}
func WrapFullRequest(request *SyncFullRequest) *SyncContent {
return &SyncContent{Message: &SyncContentValue{
Value: &SyncContentValueValueOfFullSyncRequest{FullSyncRequest: request},
}}
}
func WrapFullResponse(response *SyncFullResponse) *SyncContent {
return &SyncContent{Message: &SyncContentValue{
Value: &SyncContentValueValueOfFullSyncResponse{FullSyncResponse: response},
}}
}