func newOutMsgV0(hdr *rpc.Header, body interface{}) outMsgV0 {
	result := outMsgV0{
		RequestId: hdr.RequestId,
		Type:      hdr.Request.Type,
		Version:   hdr.Request.Version,
		Id:        hdr.Request.Id,
		Request:   hdr.Request.Action,
		Error:     hdr.Error,
		ErrorCode: hdr.ErrorCode,
	}
	if hdr.IsRequest() {
		result.Params = body
	} else {
		result.Response = body
	}
	return result
}
// newOutMsgV0 fills out a outMsgV0 with information from the given
// header and body.
newOutMsgV0 fills out a outMsgV0 with information from the given
header and body.
// newOutMsgV0 fills out a outMsgV0 with information from the given // header and body .
func newOutMsgV0(hdr *rpc.Header, body interface{}) outMsgV0 {
	result := outMsgV0{
		RequestId: hdr.RequestId,
		Type:      hdr.Request.Type,
		Version:   hdr.Request.Version,
		Id:        hdr.Request.Id,
		Request:   hdr.Request.Action,
		Error:     hdr.Error,
		ErrorCode: hdr.ErrorCode,
	}
	if hdr.IsRequest() {
		result.Params = body
	} else {
		result.Response = body
	}
	return result
}
func newOutMsgV0 ( hdr * rpc . Header , body interface { } ) outMsgV0 { result := outMsgV0 { RequestId : hdr . RequestId , Type : hdr . Request . Type , Version : hdr . Request . Version , Id : hdr . Request . Id , Request : hdr . Request . Action , Error : hdr . Error , ErrorCode : hdr . ErrorCode , } if hdr . IsRequest ( ) { result . Params = body } else { result . Response = body } return result }
newOutMsgV0 fills out a outMsgV0 with information from the given
header and body.
newOutMsgV0 fills out a outMsgV0 with information from the given header and body .