Function
NewCreateOp
(author identity.Interface, unixTime int64, title, message string, files []repository.Hash)
Source from the content-addressed store, hash-verified
| 84 | } |
| 85 | |
| 86 | func NewCreateOp(author identity.Interface, unixTime int64, title, message string, files []repository.Hash) *CreateOperation { |
| 87 | return &CreateOperation{ |
| 88 | OpBase: dag.NewOpBase(CreateOp, author, unixTime), |
| 89 | Title: title, |
| 90 | Message: message, |
| 91 | Files: files, |
| 92 | } |
| 93 | } |
| 94 | |
| 95 | // CreateTimelineItem replace a Create operation in the Timeline and hold its edition history |
| 96 | type CreateTimelineItem struct { |