{"modulePath":"github.com/get-eventually/go-eventually/core","version":"v0.2.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package version\n\nPackage version contains types and utilites to deal with Optimistic Concurrency.\n\n## Variables\n\n```go\nvar Any = CheckAny{}\n```\nAny avoids optimistic concurrency checks when requiring a version.Check instance.\n\n```go\nvar SelectFromBeginning = Selector{From: 0}\n```\nSelectFromBeginning is a Selector value that will return all Domain Events in an Event Stream.\n\n## Types\n\n```go\ntype Check interface {\n\t// contains filtered or unexported methods\n}\n```\nCheck can be used to perform optimistic concurrency checks when writing to the Event Store using the event.Appender interface.\n\n```go\ntype CheckAny struct{}\n```\nCheckAny is a Check variant that will avoid optimistic concurrency checks when used.\n\n```go\ntype CheckExact Version\n```\nCheckExact is a Check variant that will ensure the specified version is the current one (typically used when needing to check the version of an Event Stream).\n\n```go\ntype ConflictError struct {\n\tExpected Version\n\tActual   Version\n}\n```\nConflictError is an error returned by an Event Store when appending some events using an expected Event Stream version that does not match the current state of the Event Stream.\n\n```go\nfunc (err ConflictError) Error() string\n```\n\n```go\ntype Selector struct {\n\tFrom Version\n}\n```\nSelector specifies which slice of the Event Stream to select when streaming Domain Events from the Event Store.\n\n```go\ntype Version uint32\n```\nVersion is the type to specify Event Stream versions. Versions should be starting from 1, as they represent the length of a single Event Stream.\n\n","path":"github.com/get-eventually/go-eventually/core/version","name":"version","synopsis":"Package version contains types and utilites to deal with Optimistic Concurrency.","isRedistributable":true}
