frostfs-api-go/service/meta.go

14 lines
322 B
Go
Raw Normal View History

2019-11-18 16:22:08 +00:00
package service
2020-05-06 12:32:13 +00:00
// CutMeta 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
}