MongoDBServerResource.WithReplicaSet
Method
type MongoDBServerResource interface { // ... omitted for brevity WithReplicaSet(options ...*WithReplicaSetOptions) MongoDBServerResource}Signature
method
WithReplicaSet builderConfigures and initializes the MongoDB server as a single-member replica set for local development.
WithReplicaSet(options ...*WithReplicaSetOptions) MongoDBServerResourceParameters
options...*WithReplicaSetOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*WithReplicaSetOptions argument.
Name*stringThe replica set name. Defaults to the resource name, or the name previously configured by this method.Returns
MongoDBServerResource The resource builder.
Returns a handle; failures surface later via Err().
Defined on
This method is defined on the following type: