Documentation ¶
Index ¶
- type Actions
- func (actions *Actions) DescribePage(c *engine.Context, args *DescribePageArgs)
- func (actions *Actions) DescribeSpace(c *engine.Context, args *DescribeSpaceArgs)
- func (actions *Actions) Homepage(c *engine.Context)
- func (actions *Actions) NotFound(c *engine.Context)
- func (actions *Actions) Search(c *engine.Context, args *SearchArgs)
- func (actions *Actions) SetGlobal(c *engine.Context)
- func (actions *Actions) SetLang(c *engine.Context, args *SetLangArgs) (res interface{})
- func (actions *Actions) SetSpace(c *engine.Context, args *SetSpaceArgs)
- type DescribePageArgs
- type DescribeSpaceArgs
- type SearchArgs
- type SetLangArgs
- type SetSpaceArgs
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) Search ¶
func (actions *Actions) Search(c *engine.Context, args *SearchArgs)
Search website homepage GET /:lang/search
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 ¶
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
Click to show internal directories.
Click to hide internal directories.