Search Apps Documentation Source Content File Folder Download Copy Actions Download

hub package

Functions

GetFlags

func GetFlags(boardID, threadID, commentID uint64, start, count int) []boards.Flag

GetFlag 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.

Params

Command

gnokey query vm/qeval -remote "https://api.gno.berty.io:443" -data "gno.land/r/gnoland/boards2/v1/hub.GetFlags(,,,,)"

Result

GetMembers

func GetMembers(boardID uint64, start, count int) []boards.User

GetMembers returns a list with the members of a board. To reverse iterate use a negative count.

Params

Command

gnokey query vm/qeval -remote "https://api.gno.berty.io:443" -data "gno.land/r/gnoland/boards2/v1/hub.GetMembers(,,)"

Result

GetBoard

func GetBoard(id uint64) (Board, bool)

GetBoard returns a safe board.

Param

Command

gnokey query vm/qeval -remote "https://api.gno.berty.io:443" -data "gno.land/r/gnoland/boards2/v1/hub.GetBoard()"

Result

GetBoards

func GetBoards(start, count int) []Board

GetBoards returns a list with all boards. To reverse iterate use a negative count.

Params

Command

gnokey query vm/qeval -remote "https://api.gno.berty.io:443" -data "gno.land/r/gnoland/boards2/v1/hub.GetBoards(,)"

Result

NewSafeBoard

func NewSafeBoard(ref *boards.Board) Board

NewSafeBoard creates a safe board.

Param

Command

gnokey query vm/qeval -remote "https://api.gno.berty.io:443" -data "gno.land/r/gnoland/boards2/v1/hub.NewSafeBoard()"

Result

GetComment

func GetComment(boardID, threadID, commentID uint64) (Comment, bool)

GetComment returns a safe thread comment.

Params

Command

gnokey query vm/qeval -remote "https://api.gno.berty.io:443" -data "gno.land/r/gnoland/boards2/v1/hub.GetComment(,,)"

Result

GetComments

func GetComments(boardID, threadID uint64, start, count int) []Comment

GetComments 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.

Params

Command

gnokey query vm/qeval -remote "https://api.gno.berty.io:443" -data "gno.land/r/gnoland/boards2/v1/hub.GetComments(,,,)"

Result

GetReplies

func GetReplies(boardID, threadID, commentID uint64, start, count int) []Comment

GetReplies returns a list with top level comment replies. To reverse iterate use a negative count.

Params

Command

gnokey query vm/qeval -remote "https://api.gno.berty.io:443" -data "gno.land/r/gnoland/boards2/v1/hub.GetReplies(,,,,)"

Result

NewSafeComment

func NewSafeComment(ref *boards.Post) Comment

NewSafeComment creates a safe comment.

Param

Command

gnokey query vm/qeval -remote "https://api.gno.berty.io:443" -data "gno.land/r/gnoland/boards2/v1/hub.NewSafeComment()"

Result

GetReposts

func GetReposts(boardID, threadID uint64, start, count int) []Thread

GetReposts returns a list with repost of a board thread. To reverse iterate use a negative count.

Params

Command

gnokey query vm/qeval -remote "https://api.gno.berty.io:443" -data "gno.land/r/gnoland/boards2/v1/hub.GetReposts(,,,)"

Result

GetThread

func GetThread(boardID, threadID uint64) (Thread, bool)

GetThread returns a safe board thread.

Params

Command

gnokey query vm/qeval -remote "https://api.gno.berty.io:443" -data "gno.land/r/gnoland/boards2/v1/hub.GetThread(,)"

Result

GetThreads

func GetThreads(boardID uint64, start, count int) []Thread

GetThreads returns a list with threads of a board. To reverse iterate use a negative count.

Params

Command

gnokey query vm/qeval -remote "https://api.gno.berty.io:443" -data "gno.land/r/gnoland/boards2/v1/hub.GetThreads(,,)"

Result

NewSafeThread

func NewSafeThread(ref *boards.Post) Thread

NewSafeThread creates a safe thread.

Param

Command

gnokey query vm/qeval -remote "https://api.gno.berty.io:443" -data "gno.land/r/gnoland/boards2/v1/hub.NewSafeThread()"

Result