Member
typeMember defines a type for board members.
Value
hub.Member
Board
typeBoard defines a safe type for boards.
Value
hub.Board
NewSafeBoard
func(ref *boards.Board) hub.BoardNewSafeBoard creates a safe board.
- OID
- 008ef3…d59e:3
NewSafeBoard details
Comment
typeComment defines a type for threads comment/replies.
Value
hub.Comment
NewSafeComment
func(ref *boards.Post) hub.CommentNewSafeComment creates a safe comment.
- OID
- 008ef3…d59e:5
NewSafeComment details
timeToUnix
func(t time.Time) int64timeToUnix converts time to Unix epoch.
- OID
- 008ef3…d59e:7
timeToUnix details
GetBoard
func(id uint64) (hub.Board, bool)GetBoard returns a safe board.
- OID
- 008ef3…d59e:9
GetBoard details
GetThread
func(boardID uint64, threadID uint64) (hub.Thread, bool)GetThread returns a safe board thread.
- OID
- 008ef3…d59e:11
GetThread details
GetComment
func(boardID uint64, threadID uint64, commentID uint64) (hub.Comment, bool)GetComment returns a safe thread comment.
- OID
- 008ef3…d59e:12
GetComment details
GetBoards
func(start int, count int) []hub.BoardGetBoards returns a list with all boards. To reverse iterate use a negative count.
- OID
- 008ef3…d59e:13
GetBoards details
GetThreads
func(boardID uint64, start int, count int) []hub.ThreadGetThreads returns a list with threads of a board. To reverse iterate use a negative count.
- OID
- 008ef3…d59e:14
GetThreads details
GetMembers
func(boardID uint64, start int, count int) []boards.UserGetMembers returns a list with the members of a board. To reverse iterate use a negative count.
- OID
- 008ef3…d59e:15
GetMembers details
GetReposts
func(boardID uint64, threadID uint64, start int, count int) []hub.ThreadGetReposts returns a list with repost of a board thread. To reverse iterate use a negative count.
- OID
- 008ef3…d59e:16
GetReposts details
GetFlags
func(boardID uint64, threadID uint64, commentID uint64, start int, count int) []boards.FlagGetFlag returns a list with thread or comment moderation flags. To reverse iterate use a negative count. Thread flags are returned when \`commentID\` is zero, or comment flags are returned otherwise.
- OID
- 008ef3…d59e:17
GetFlags details
GetComments
func(boardID uint64, threadID uint64, start int, count int) []hub.CommentGetComments returns a list with all thread comments and replies. To reverse iterate use a negative count. Top level comments can be filtered by checking \`Comment.ParentID\`, replies always have a parent comment or reply, while comments have no parent.
- OID
- 008ef3…d59e:18
GetComments details
GetReplies
func(boardID uint64, threadID uint64, commentID uint64, start int, count int) []hub.CommentGetReplies returns a list with top level comment replies. To reverse iterate use a negative count.
- OID
- 008ef3…d59e:19
GetReplies details
getBoard
func(int, rlm .uverse.realm, boardID uint64) (*boards.Board, bool)getBoard fetches a raw \*boards.Board via boards2's protected GetBoard. Non-crossing helper: rlm is hub's own cur, threaded through from the enclosing crossing function.
- OID
- 008ef3…d59e:20
getBoard details
getThread
func(int, rlm .uverse.realm, boardID uint64, threadID uint64) (*boards.Post, bool)- OID
- 008ef3…d59e:21
getThread details
getComment
func(int, rlm .uverse.realm, boardID uint64, threadID uint64, commentID uint64) (*boards.Post, bool)- OID
- 008ef3…d59e:22
getComment details
Flag
typeFlag defines a type for thread and comment flags.
Value
hub.Flag
Thread
typeThread defines a type for board threads.
Value
hub.Thread
NewSafeThread
func(ref *boards.Post) hub.ThreadNewSafeThread creates a safe thread.
- OID
- 008ef3…d59e:23