blob: ea7a308d11a0eefe2eee789040e9fc648c200ac2 [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
7// Package command contains abstractions for operations that can be performed against a MongoDB
8// deployment. The types in this package are meant to provide a general set of commands that a
9// user can run against a MongoDB database without knowing the version of the database.
10//
11// Each type consists of two levels of interaction. The lowest level are the Encode and Decode
12// methods. These are meant to be symmetric eventually, but currently only support the driver
13// side of commands. The higher level is the RoundTrip method. This only makes sense from the
14// driver side of commands and this method handles the encoding of the request and decoding of
15// the response using the given wiremessage.ReadWriter.
16package command