Documentation ¶
Index ¶
- Variables
- type Builder
- type Comment
- type CommentID
- type ID
- type List
- type Thread
- func (th *Thread) AddComment(c *Comment) error
- func (th *Thread) Clone() *Thread
- func (th *Thread) Comment(cid id.CommentID) *Comment
- func (th *Thread) Comments() []*Comment
- func (th *Thread) DeleteComment(cid id.CommentID) error
- func (th *Thread) HasComment(cid CommentID) bool
- func (th *Thread) ID() ID
- func (th *Thread) SetComments(comments ...*Comment)
- func (th *Thread) UpdateComment(cid id.CommentID, content string) error
- func (th *Thread) Workspace() accountdomain.WorkspaceID
- type UserID
- type WorkspaceID
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoWorkspaceID = rerror.NewE(i18n.T("workspace id is required")) ErrCommentAlreadyExist = rerror.NewE(i18n.T("comment already exist in this thread")) ErrCommentDoesNotExist = rerror.NewE(i18n.T("comment does not exist in this thread")) )
View Source
var CommentIDFrom = id.CommentIDFrom
View Source
var CommentIDFromRef = id.CommentIDFromRef
View Source
var ErrInvalidID = id.ErrInvalidID
View Source
var IDFrom = id.ThreadIDFrom
View Source
var IDFromRef = id.ThreadIDFromRef
View Source
var MustCommentID = id.MustCommentID
View Source
var MustID = id.MustThreadID
View Source
var MustUserID = id.MustUserID
View Source
var MustWorkspaceID = id.MustWorkspaceID
View Source
var NewCommentID = id.NewCommentID
View Source
var NewID = id.NewThreadID
View Source
var NewUserID = accountdomain.NewUserID
View Source
var NewWorkspaceID = accountdomain.NewWorkspaceID
View Source
var UserIDFrom = accountdomain.UserIDFrom
View Source
var UserIDFromRef = accountdomain.UserIDFromRef
View Source
var WorkspaceIDFrom = id.WorkspaceIDFrom
View Source
var WorkspaceIDFromRef = id.WorkspaceIDFromRef
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func (*Builder) Workspace ¶
func (b *Builder) Workspace(wid accountdomain.WorkspaceID) *Builder
type Comment ¶
type Comment struct {
// contains filtered or unexported fields
}
func (*Comment) SetContent ¶
type Thread ¶
type Thread struct {
// contains filtered or unexported fields
}
func (*Thread) AddComment ¶
func (*Thread) HasComment ¶
func (*Thread) SetComments ¶
func (*Thread) UpdateComment ¶
func (*Thread) Workspace ¶
func (th *Thread) Workspace() accountdomain.WorkspaceID
type UserID ¶
type UserID = accountdomain.UserID
type WorkspaceID ¶
type WorkspaceID = id.WorkspaceID
Click to show internal directories.
Click to hide internal directories.