Versions in this module Expand all Collapse all v0 v0.0.3 Jun 13, 2017 v0.0.2 Jun 13, 2017 Changes in this version + type Comment struct + Body string + CreatedBy uuid.UUID + ID uuid.UUID + Markup string + ParentID string + func (m Comment) GetETagData() []interface{} + func (m Comment) GetLastModified() time.Time + type GormCommentRepository struct + func (m *GormCommentRepository) Count(ctx context.Context, parent string) (int, error) + func (m *GormCommentRepository) Create(ctx context.Context, comment *Comment, creatorID uuid.UUID) error + func (m *GormCommentRepository) Delete(ctx context.Context, commentID uuid.UUID, suppressorID uuid.UUID) error + func (m *GormCommentRepository) List(ctx context.Context, parent string, start *int, limit *int) ([]Comment, uint64, error) + func (m *GormCommentRepository) Load(ctx context.Context, id uuid.UUID) (*Comment, error) + func (m *GormCommentRepository) Save(ctx context.Context, comment *Comment, modifierID uuid.UUID) error + func (m *GormCommentRepository) TableName() string + type GormCommentRevisionRepository struct + func NewRevisionRepository(db *gorm.DB) *GormCommentRevisionRepository + func (r *GormCommentRevisionRepository) Create(ctx context.Context, modifierID uuid.UUID, revisionType RevisionType, ...) error + func (r *GormCommentRevisionRepository) List(ctx context.Context, commentID uuid.UUID) ([]Revision, error) + type Repository interface + Count func(ctx context.Context, parent string) (int, error) + Create func(ctx context.Context, comment *Comment, creator uuid.UUID) error + Delete func(ctx context.Context, commentID uuid.UUID, suppressor uuid.UUID) error + List func(ctx context.Context, parent string, start *int, limit *int) ([]Comment, uint64, error) + Load func(ctx context.Context, id uuid.UUID) (*Comment, error) + Save func(ctx context.Context, comment *Comment, modifier uuid.UUID) error + func NewRepository(db *gorm.DB) Repository + type Revision struct + CommentBody *string + CommentID uuid.UUID + CommentMarkup *string + CommentParentID string + ID uuid.UUID + ModifierIdentity uuid.UUID + Time time.Time + Type RevisionType + func (w Revision) TableName() string + type RevisionRepository interface + Create func(ctx context.Context, modifierID uuid.UUID, revisionType RevisionType, ...) error + List func(ctx context.Context, workitemID uuid.UUID) ([]Revision, error) + type RevisionType int + const RevisionTypeCreate + const RevisionTypeDelete + const RevisionTypeUpdate