Skip to content
Snippets Groups Projects
change.go 403 B
Newer Older
  • Learn to ignore specific revisions
  • package change
    
    import "github.com/google/uuid"
    
    // Change is an intended change to an OND. It is unique and immutable.
    // It has a cuid, a timestamp, and holds both the previous and the new
    // state. It keeps track if the state is committed and confirmed. A callback
    // exists to acess the proper transport for the changed OND
    type Change interface {
    	ID() uuid.UUID
    	Commit() error
    	Confirm() error
    }