Don Newton | 379ae25 | 2019-04-01 12:17:06 -0400 | [diff] [blame^] | 1 | // Copyright (C) MongoDB, Inc. 2017-present. |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may |
| 4 | // not use this file except in compliance with the License. You may obtain |
| 5 | // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 |
| 6 | |
| 7 | package wiremessage |
| 8 | |
| 9 | import "github.com/mongodb/mongo-go-driver/bson" |
| 10 | |
| 11 | // CommandReply represents the OP_COMMANDREPLY message of the MongoDB wire protocol. |
| 12 | type CommandReply struct { |
| 13 | MsgHeader Header |
| 14 | Metadata bson.Raw |
| 15 | CommandReply bson.Raw |
| 16 | OutputDocs []bson.Raw |
| 17 | } |
| 18 | |
| 19 | // MarshalWireMessage implements the Marshaler and WireMessage interfaces. |
| 20 | func (cr CommandReply) MarshalWireMessage() ([]byte, error) { |
| 21 | panic("not implemented") |
| 22 | } |
| 23 | |
| 24 | // ValidateWireMessage implements the Validator and WireMessage interfaces. |
| 25 | func (cr CommandReply) ValidateWireMessage() error { |
| 26 | panic("not implemented") |
| 27 | } |
| 28 | |
| 29 | // AppendWireMessage implements the Appender and WireMessage interfaces. |
| 30 | func (cr CommandReply) AppendWireMessage([]byte) ([]byte, error) { |
| 31 | panic("not implemented") |
| 32 | } |
| 33 | |
| 34 | // String implements the fmt.Stringer interface. |
| 35 | func (cr CommandReply) String() string { |
| 36 | panic("not implemented") |
| 37 | } |
| 38 | |
| 39 | // Len implements the WireMessage interface. |
| 40 | func (cr CommandReply) Len() int { |
| 41 | panic("not implemented") |
| 42 | } |
| 43 | |
| 44 | // UnmarshalWireMessage implements the Unmarshaler interface. |
| 45 | func (cr *CommandReply) UnmarshalWireMessage([]byte) error { |
| 46 | panic("not implemented") |
| 47 | } |