website

package
v0.0.0-...-5b45539 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Actions

type Actions struct {
	Configuration config.Configuration
	Accounter     accounts.Service
	Spacer        spaces.Service
}

Actions type

func (*Actions) DescribePage

func (actions *Actions) DescribePage(c *engine.Context, args *DescribePageArgs)

DescribePage describe page detail GET /docs/:id

func (*Actions) DescribeSpace

func (actions *Actions) DescribeSpace(c *engine.Context, args *DescribeSpaceArgs)

DescribeSpace describe docs GET /:lang/docs/:space

func (*Actions) Homepage

func (actions *Actions) Homepage(c *engine.Context)

Homepage website homepage GET /

func (*Actions) NotFound

func (actions *Actions) NotFound(c *engine.Context)

NotFound 404 page GET /

func (*Actions) Search

func (actions *Actions) Search(c *engine.Context, args *SearchArgs)

Search website homepage GET /:lang/search

func (*Actions) SetGlobal

func (actions *Actions) SetGlobal(c *engine.Context)

SetGlobal global middleware

func (*Actions) SetLang

func (actions *Actions) SetLang(c *engine.Context, args *SetLangArgs) (res interface{})

SetLang set lang middleware

func (*Actions) SetSpace

func (actions *Actions) SetSpace(c *engine.Context, args *SetSpaceArgs)

SetSpace describe docs match route: `/:lang/docs/:space`

type DescribePageArgs

type DescribePageArgs struct {
	SpaceKey string `uri:"space_key"`
	PageID   int64  `uri:"page_id"`
	Lang     string `uri:"lang"`
	Version  string `query:"version"`
}

DescribePageArgs describe page detail args

type DescribeSpaceArgs

type DescribeSpaceArgs struct {
	Lang     string `uri:"lang"`
	SpaceKey string `uri:"space_key"`
}

DescribeSpaceArgs describe space args

type SearchArgs

type SearchArgs struct {
	database.Pagination[*models.Page]
	Lang string `uri:"lang"`
	Q    string `query:"q"`
}

SearchArgs search args

type SetLangArgs

type SetLangArgs struct {
	Lang string `uri:"lang"`
}

SetLangArgs set lang middleware

type SetSpaceArgs

type SetSpaceArgs struct {
	Lang     string `uri:"lang"`
	SpaceKey string `uri:"space_key"`
	Version  string `query:"version"`
}

SetSpaceArgs describe space args

Jump to

Keyboard shortcuts

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