Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (20 sloc) 629 Bytes
package ravendb
import "time"
// BatchOptions describes options for batch operations
type BatchOptions struct {
waitForReplicas bool
numberOfReplicasToWaitFor int
waitForReplicasTimeout time.Duration
majority bool
throwOnTimeoutInWaitForReplicas bool
waitForIndexes bool
waitForIndexesTimeout time.Duration
throwOnTimeoutInWaitForIndexes bool
waitForSpecificIndexes []string
}
// NewBatchOptions returns new BatchOptions
func NewBatchOptions() *BatchOptions {
return &BatchOptions{
throwOnTimeoutInWaitForReplicas: true,
}
}
You can’t perform that action at this time.