Documentation
¶
Index ¶
- func Mount(fn func(*App)) func(*App)
- func WithAdminOnlyAccess(admin bool) func(*Page)
- func WithInlineScript(content string) func(*App)
- func WithMeta(name, content string) func(*App)
- func WithPublicAccess(public bool) func(*Page)
- func WithScript(src string) func(*App)
- func WithStylesheet(href string) func(*App)
- type App
- type Context
- type GetProps
- type Page
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithAdminOnlyAccess ¶
WithAdminOnlyAccess configures the Page to only allow admin access
func WithInlineScript ¶
WithInlineScript will include <script></script> tag
func WithPublicAccess ¶
WithPublicAccess configures the Page to be public accessable
func WithScript ¶
WithScript will include <script src></script> tag
func WithStylesheet ¶
WithStylesheet will include <link rel="stylesheet" href> tag
Types ¶
type App ¶
type App struct {
*pocketbase.PocketBase
// contains filtered or unexported fields
}
App data structure encapsolates PocketBase app
type Context ¶
type Context interface {
Request() *http.Request
Response() *echo.Response
FormValue(string) string
FormValues() (url.Values, error)
PathParam(string) string
QueryParam(string) string
Admin() *models.Admin
User() *models.Record
Set(string, any)
Props() map[string]any
Refresh() error
Push(url string) error
Replace(url string) error
Render(string) error
}
type Page ¶
type Page struct {
// contains filtered or unexported fields
}
Page data structure for passing configuration state to pages
Click to show internal directories.
Click to hide internal directories.