Documentation
¶
Index ¶
- Variables
- func NewManifest() *contributor.Manifest
- type Contributor
- func (c *Contributor) Manifest() *contributor.Manifest
- func (c *Contributor) RenderPage(ctx context.Context, route string, params contributor.Params) (templ.Component, error)
- func (c *Contributor) RenderSettings(_ context.Context, settingID string) (templ.Component, error)
- func (c *Contributor) RenderWidget(ctx context.Context, widgetID string) (templ.Component, error)
- type PaginationMeta
Constants ¶
This section is empty.
Variables ¶
View Source
var NewPaginationMeta = shared.NewPaginationMeta
NewPaginationMeta is a convenience re-export.
Functions ¶
func NewManifest ¶
func NewManifest() *contributor.Manifest
NewManifest builds a contributor.Manifest for the dispatch dashboard.
Types ¶
type Contributor ¶
type Contributor struct {
// contains filtered or unexported fields
}
Contributor implements the dashboard LocalContributor interface for dispatch.
func New ¶
func New(manifest *contributor.Manifest, eng *engine.Engine, apiBasePath string) *Contributor
New creates a new dispatch dashboard contributor. apiBasePath is the URL prefix for the dispatch API routes (e.g. "/dispatch").
func (*Contributor) Manifest ¶
func (c *Contributor) Manifest() *contributor.Manifest
Manifest returns the contributor manifest.
func (*Contributor) RenderPage ¶
func (c *Contributor) RenderPage(ctx context.Context, route string, params contributor.Params) (templ.Component, error)
RenderPage renders a page for the given route.
func (*Contributor) RenderSettings ¶
RenderSettings renders a settings panel by ID.
func (*Contributor) RenderWidget ¶
RenderWidget renders a widget by ID.
type PaginationMeta ¶
type PaginationMeta = shared.PaginationMeta
PaginationMeta is an alias for shared.PaginationMeta.
Directories
¶
| Path | Synopsis |
|---|---|
|
templ: version: v0.3.1001
|
templ: version: v0.3.1001 |
|
templ: version: v0.3.1001
|
templ: version: v0.3.1001 |
|
templ: version: v0.3.1001
|
templ: version: v0.3.1001 |
|
Package shared provides types used across dashboard sub-packages.
|
Package shared provides types used across dashboard sub-packages. |
|
templ: version: v0.3.1001
|
templ: version: v0.3.1001 |
Click to show internal directories.
Click to hide internal directories.