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 {
|
2019-11-19 16:03:42 +00:00
|
|
|
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
|
|
|
|
}
|