Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
Option is a closure that updates Options.
func WithAnyVersion ¶
func WithAnyVersion() Option
Use WithAnyVersion to update documents without caring what their version is.
func WithDestination ¶
WithDestination provides an interface for receiving data when getting a nosql.
func WithDestinationList ¶
WithDestinationList provides a interface list for receiving data when getting a nosql.
func WithMultipleSource ¶
func WithSource ¶
WithSource provides an interface to source data when updating a nosql.
func WithVersion ¶
WithVersion provides a Version value option. This is optionally used when updating documents to ensure the user has the correct version before updating.
type Options ¶
type Options struct { Version Version AnyVersion bool TTL time.Duration Source any Sources map[string]any Destination any DestinationList []any }
Options contains all the various options that the provided WithXyz functions construct.
func NewOptions ¶
NewOptions constructs an Options struct from the provided Option closures and returns it.