pages

package
v0.0.0-...-531763a Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyPage

func ApplyPage(param string, page, pagecnt int) int

func PageSwitchBtns

func PageSwitchBtns(handler, params string) []sevcord.Component

Creates btns with name prevnext|<params>

Types

type Pages

type Pages struct {
	// contains filtered or unexported fields
}

func NewPages

func NewPages(base *base.Base, db *sqlx.DB, s *sevcord.Sevcord, categories *categories.Categories, elements *elements.Elements, queries *queries.Queries) *Pages

func (*Pages) Cat

func (p *Pages) Cat(c sevcord.Ctx, args []any)

func (*Pages) CatHandler

func (p *Pages) CatHandler(c sevcord.Ctx, params string)

Params: prevnext|user|sort|page|cat

func (*Pages) CatList

func (p *Pages) CatList(c sevcord.Ctx, opts []any)

func (*Pages) CatListHandler

func (p *Pages) CatListHandler(c sevcord.Ctx, params string)

Format: prevnext|user|sort|page

func (*Pages) CommandLb

func (p *Pages) CommandLb(c sevcord.Ctx, opts []any)

func (*Pages) CommandLbHandler

func (p *Pages) CommandLbHandler(c sevcord.Ctx, params string)

Format: prevnext|page

func (*Pages) ElemCatHandler

func (p *Pages) ElemCatHandler(c sevcord.Ctx, params string)

Params: prevnext|elem|page

func (*Pages) ElemCats

func (p *Pages) ElemCats(c sevcord.Ctx, args []any)

func (*Pages) ElemFound

func (p *Pages) ElemFound(c sevcord.Ctx, args []any)

func (*Pages) ElemFoundHandler

func (p *Pages) ElemFoundHandler(c sevcord.Ctx, params string)

Params: prevnext|elem|page

func (*Pages) Init

func (p *Pages) Init()

func (*Pages) Inv

func (p *Pages) Inv(c sevcord.Ctx, args []any)

func (*Pages) InvHandler

func (p *Pages) InvHandler(c sevcord.Ctx, params string)

Params: prevnext|user|sort|page

func (*Pages) Lb

func (p *Pages) Lb(c sevcord.Ctx, opts []any)

func (*Pages) LbHandler

func (p *Pages) LbHandler(c sevcord.Ctx, params string)

Format: prevnext|user|sort|page|query

func (*Pages) Query

func (p *Pages) Query(c sevcord.Ctx, args []any)

func (*Pages) QueryHandler

func (p *Pages) QueryHandler(c sevcord.Ctx, params string)

Params: prevnext|user|sort|page|query

func (*Pages) QueryList

func (p *Pages) QueryList(c sevcord.Ctx, opts []any)

func (*Pages) QueryListHandler

func (p *Pages) QueryListHandler(c sevcord.Ctx, params string)

Format: prevnext|sort|page

Jump to

Keyboard shortcuts

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