frostfs-api-go-pogpp/service/meta.go

14 lines
324 B
Go
Raw Normal View History

2019-11-18 16:22:08 +00:00
package service
// ResetMeta returns current value and sets RequestMetaHeader to empty value.
2020-05-04 11:37:14 +00:00
func (m *RequestMetaHeader) CutMeta() RequestMetaHeader {
cp := *m
m.Reset()
return cp
}
// RestoreMeta sets current RequestMetaHeader to passed value.
2020-05-04 11:37:14 +00:00
func (m *RequestMetaHeader) RestoreMeta(v RequestMetaHeader) {
*m = v
}