protocol

package
v0.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServerSide = "SERVER"
	ClientSide = "CLIENT"
)
View Source
const (
	OpReply        = 1    // Reply to a client request. responseTo is set.
	OpUpdate       = 2001 // Update document.
	OpInsert       = 2002 // Insert new document.
	Reserved       = 2003 // Formerly used for OP_GET_BY_OID.
	OpQuery        = 2004 // Query a collection.
	OpGetMore      = 2005 // Get more data from a query. See Cursors.
	OpDelete       = 2006 // Delete documents.
	OpKillCursors  = 2007 // Notify database that the client has finished with the cursor.
	OpCommand      = 2010 // Cluster internal protocol representing a command request.
	OpCommandreply = 2011 // Cluster internal protocol representing a reply to an OP_COMMAND.
	OpMsg          = 2013 // Send a message using the format introduced in MongoDB 3.6.
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Interop

type Interop interface {
	Dump(r io.Reader, source string, id int, quiet bool)
}

func CreateInterop

func CreateInterop(protocol string) Interop

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL