views

package
v0.0.7-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Code generated by "jade.go"; DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommentList

func CommentList(paginate *entities.Paginate[entities.Comment]) func(meta *entities.Meta, wr *bufio.Writer)

func Error

func Error(msg string) func(meta *entities.Meta, wr *bufio.Writer)

func FileList

func FileList(paginate *entities.Paginate[entities.File]) func(meta *entities.Meta, wr *bufio.Writer)

func Inactive

func Inactive() func(meta *entities.Meta, wr *bufio.Writer)

func Index

func Index(topics []*entities.Topic, paginate *entities.Paginate[entities.Post], topPosts []*entities.Post) func(meta *entities.Meta, wr *bufio.Writer)

func Login

func Login() func(meta *entities.Meta, wr *bufio.Writer)

func Manage

func Manage() func(meta *entities.Meta, wr *bufio.Writer)

func ManageCommentIndex

func ManageCommentIndex(paginate *entities.Paginate[entities.Comment], search string, userID, postID int) func(meta *entities.Meta, wr *bufio.Writer)

func ManageFileIndex

func ManageFileIndex(paginate *entities.Paginate[entities.File]) func(meta *entities.Meta, wr *bufio.Writer)

func ManagePageCompose

func ManagePageCompose(page *entities.Page, featuredImage *entities.File) func(meta *entities.Meta, wr *bufio.Writer)

func ManagePageIndex

func ManagePageIndex(data *entities.Paginate[entities.Page], search, publish string) func(meta *entities.Meta, wr *bufio.Writer)

func ManagePostIndex

func ManagePostIndex(data *entities.Paginate[entities.Post], topics []*entities.Topic, topicIDs []int, search, publish, approve string) func(meta *entities.Meta, wr *bufio.Writer)

func ManageRoleCompose

func ManageRoleCompose(ID int, role *entities.RoleMutation, permissions []*entities.PermissionValue) func(meta *entities.Meta, wr *bufio.Writer)

func ManageRoleIndex

func ManageRoleIndex(roles []*entities.Role) func(meta *entities.Meta, wr *bufio.Writer)

func ManageSettings

func ManageSettings(settings []*config.SettingItem) func(meta *entities.Meta, wr *bufio.Writer)

func ManageTopicCompose

func ManageTopicCompose(topics []*entities.Topic, topic *entities.TopicMutation) func(meta *entities.Meta, wr *bufio.Writer)

func ManageTopicIndex

func ManageTopicIndex(topics []*entities.Topic) func(meta *entities.Meta, wr *bufio.Writer)

func ManageUserCompose

func ManageUserCompose(ID int, user *entities.User, roles []*entities.Role, providers []server.AuthProvider) func(meta *entities.Meta, wr *bufio.Writer)

func ManageUserIndex

func ManageUserIndex(data *entities.Paginate[entities.User], search string) func(meta *entities.Meta, wr *bufio.Writer)

func Message

func Message(title, content, redirectUrl string, timeout int) func(meta *entities.Meta, wr *bufio.Writer)

func PageView

func PageView(page *entities.Page) func(meta *entities.Meta, wr *bufio.Writer)

func PostCompose

func PostCompose(topics []*entities.Topic, post *entities.PostMutation, featuredImage *entities.File) func(meta *entities.Meta, wr *bufio.Writer)

func PostList

func PostList(paginate *entities.Paginate[entities.Post]) func(meta *entities.Meta, wr *bufio.Writer)

func PostView

func PostView(post *entities.Post, relatedPosts []*entities.Post, comments []*entities.Comment) func(meta *entities.Meta, wr *bufio.Writer)

func Profile

func Profile(user *entities.User, paginate *entities.Paginate[entities.Post], comments []*entities.Comment) func(meta *entities.Meta, wr *bufio.Writer)

func Register

func Register(username, email string) func(meta *entities.Meta, wr *bufio.Writer)
func Search(topics []*entities.Topic, paginate *entities.Paginate[entities.Post]) func(meta *entities.Meta, wr *bufio.Writer)

func TopicView

func TopicView(topics []*entities.Topic, topic *entities.Topic, paginate *entities.Paginate[entities.Post], topPosts []*entities.Post) func(meta *entities.Meta, wr *bufio.Writer)

func UserSetting

func UserSetting(user *entities.User) func(meta *entities.Meta, wr *bufio.Writer)

func WriteAll

func WriteAll(a interface{}, escape bool, buffer *WriterAsBuffer)

func WriteBool

func WriteBool(b bool, buffer *WriterAsBuffer)

func WriteEscString

func WriteEscString(st string, buffer *WriterAsBuffer)

func WriteInt

func WriteInt(i int64, buffer *WriterAsBuffer)

func WriteUint

func WriteUint(u uint64, buffer *WriterAsBuffer)

Used part of go source: https://github.com/golang/go/blob/master/src/strconv/itoa.go

Types

type WriterAsBuffer

type WriterAsBuffer struct {
	*bufio.Writer
}

func (*WriterAsBuffer) WriteByte

func (w *WriterAsBuffer) WriteByte(b byte) (err error)

func (*WriterAsBuffer) WriteString

func (w *WriterAsBuffer) WriteString(s string) (n int, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL