blob: d5773d6c411d0aefedd4f697b828bf06e3cf5005 [file] [log] [blame]
Don Newton379ae252019-04-01 12:17:06 -04001// 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
7package wiremessage
8
9import "github.com/mongodb/mongo-go-driver/bson"
10
11// CommandReply represents the OP_COMMANDREPLY message of the MongoDB wire protocol.
12type 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.
20func (cr CommandReply) MarshalWireMessage() ([]byte, error) {
21 panic("not implemented")
22}
23
24// ValidateWireMessage implements the Validator and WireMessage interfaces.
25func (cr CommandReply) ValidateWireMessage() error {
26 panic("not implemented")
27}
28
29// AppendWireMessage implements the Appender and WireMessage interfaces.
30func (cr CommandReply) AppendWireMessage([]byte) ([]byte, error) {
31 panic("not implemented")
32}
33
34// String implements the fmt.Stringer interface.
35func (cr CommandReply) String() string {
36 panic("not implemented")
37}
38
39// Len implements the WireMessage interface.
40func (cr CommandReply) Len() int {
41 panic("not implemented")
42}
43
44// UnmarshalWireMessage implements the Unmarshaler interface.
45func (cr *CommandReply) UnmarshalWireMessage([]byte) error {
46 panic("not implemented")
47}