Versions in this module Expand all Collapse all v1 v1.0.2 Aug 29, 2019 Changes in this version + func Initialize() error + type Builtin string + const ClientSession + const ClusterClock + const Collection + const CommandMonitor + const Crypt + const Database + const Deployment + const ReadConcern + const ReadPreference + const Selector + const WriteConcern + func (b Builtin) Documentation() string + func (b Builtin) ExecuteName() string + func (b Builtin) ReferenceName() string + func (b Builtin) SetterName() string + func (b Builtin) Type() string + type BuiltinResponseType string + const BatchCursor + type Command struct + Database bool + Name string + Parameter string + type LegacyOperation string + const LegacyFind + const LegacyGetMore + const LegacyKillCursors + const LegacyListCollections + const LegacyListIndexes + type Operation struct + Command Command + Documentation string + DriverInternal bool + Name string + Properties Properties + Request map[string]RequestField + Response Response + Version int + func ParseFile(filename, packagename string) (Operation, error) + func (Operation) EscapeDocumentation(doc string) string + func (op Operation) CommandMethod() (string, error) + func (op Operation) ConstructorFields() []string + func (op Operation) ConstructorParameters() string + func (op Operation) Generate(w io.Writer) error + func (op Operation) PackageName() string + func (op Operation) ResultType() string + func (op Operation) ShortName() string + func (op Operation) Title(name string) string + type Properties struct + Batches string + Disabled []Builtin + Enabled []Builtin + Legacy LegacyOperation + MinimumReadConcernWireVersion int + MinimumWriteConcernWireVersion int + Retryable Retryable + func (p Properties) Builtins() []Builtin + func (p Properties) BuiltinsMap() map[Builtin]bool + func (p Properties) ExecuteBuiltins() []Builtin + func (p Properties) IsEnabled(builtin string) Builtin + func (p Properties) LegacyOperationKind() string + type RequestField struct + Constructor bool + Documentation string + KeyName string + MinWireVersion int + MinWireVersionRequired int + Skip bool + Slice bool + Type string + Variadic bool + func (rf RequestField) Command(name, accessor string) string + func (rf RequestField) DeclarationType() string + func (rf RequestField) ParameterType() string + func (rf RequestField) PointerType() bool + type Response struct + Field map[string]ResponseField + Name string + Type string + func (r Response) BuildMethod() (string, error) + func (r Response) ShortName() string + type ResponseField struct + Documentation string + Type string + func (rf ResponseField) DeclarationType() string + type Retryable struct + Mode RetryableMode + Type RetryableType + type RetryableMode string + const RetryableContext + const RetryableOnce + const RetryableOncePerCommand + type RetryableType string + const RetryableReads + const RetryableWrites