Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option represents a RunCommand option.
func ReadPreference ¶
ReadPreference sets the read preference.
type RunCmdBundle ¶
type RunCmdBundle struct {
// contains filtered or unexported fields
}
RunCmdBundle is a bundle of RunCommand options.
func BundleRunCmd ¶
func BundleRunCmd(opts ...Option) *RunCmdBundle
BundleRunCmd bundles RunCommand options
func (*RunCmdBundle) ReadPreference ¶
func (rcb *RunCmdBundle) ReadPreference(rp *readpref.ReadPref) *RunCmdBundle
ReadPreference sets the read preference.
func (*RunCmdBundle) String ¶
func (rcb *RunCmdBundle) String() string
String implements the Stringer interface
func (*RunCmdBundle) Unbundle ¶
func (rcb *RunCmdBundle) Unbundle() (*RunCmd, error)
Unbundle unbundles the options, returning a RunCmd instance.
Click to show internal directories.
Click to hide internal directories.