Versions in this module Expand all Collapse all v0 v0.0.2 Mar 6, 2018 v0.0.1 Feb 13, 2018 Changes in this version + var ErrInconsistent = errors.New("a write concern cannot have both w=0 and j=true") + var ErrNegativeW = errors.New("write concern `w` field cannot be a negative number") + var ErrNegativeWTimeout = errors.New("write concern `wtimeout` field cannot be negative") + type Option func(concern *WriteConcern) + func J(j bool) Option + func W(w int) Option + func WMajority() Option + func WTagSet(tag string) Option + func WTimeout(d time.Duration) Option + type WriteConcern struct + func New(options ...Option) *WriteConcern + func (wc *WriteConcern) Acknowledged() bool + func (wc *WriteConcern) IsValid() bool + func (wc *WriteConcern) MarshalBSONElement() (*bson.Element, error)