Documentation
¶
Overview ¶
templ: version: v0.2.778
Index ¶
- func Comment(comment *state.Comment, author *state.User, vote_value state.VoteValue) templ.Component
- func CommentNode(comment_node *PostCommentNode) templ.Component
- func Compare[T constraints.Ordered](a, b T) int
- func PostMain(post *state.Post, author *state.User, post_vote_value state.VoteValue, ...) templ.Component
- func PostPage(user *state.User, post *state.Post, author *state.User, ...) templ.Component
- type PostCommentNode
- type PostCommentVoteHandler
- type PostCommentsHandler
- type PostSubmitCommentHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommentNode ¶
func CommentNode(comment_node *PostCommentNode) templ.Component
func Compare ¶
func Compare[T constraints.Ordered](a, b T) int
Types ¶
type PostCommentNode ¶
type PostCommentNode struct { Comment *state.Comment Author *state.User VoteValue state.VoteValue Children []*PostCommentNode }
func BuildPostCommentTree ¶
func BuildPostCommentTree(comments_rows *[]state.CommentsForPostWithAuthorAndVotesForUserRow) []*PostCommentNode
func NewPostCommentNode ¶
func (*PostCommentNode) AddChild ¶
func (p *PostCommentNode) AddChild(child *PostCommentNode)
type PostCommentVoteHandler ¶
func NewPostCommentVoteHandler ¶
func NewPostCommentVoteHandler(queries *state.Queries, commands *commands.Commands) *PostCommentVoteHandler
func (*PostCommentVoteHandler) ServeHTTP ¶
func (p *PostCommentVoteHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type PostCommentsHandler ¶
func NewPostCommentsHandler ¶
func NewPostCommentsHandler(queries *state.Queries) *PostCommentsHandler
func (*PostCommentsHandler) ServeHTTP ¶
func (p *PostCommentsHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type PostSubmitCommentHandler ¶
func NewPostSubmitCommentHandler ¶
func NewPostSubmitCommentHandler(queries *state.Queries, commands *commands.Commands) *PostSubmitCommentHandler
func (*PostSubmitCommentHandler) ServeHTTP ¶
func (p *PostSubmitCommentHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.