recipe

package
v0.0.0-...-8de1c96 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterViewerRoutes

func RegisterViewerRoutes(v Viewer, r gin.IRouter)

Types

type TemplateViewer

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

func NewTemplateViewer

func NewTemplateViewer(api api.RecipeAPI) *TemplateViewer

func (*TemplateViewer) ShowComments

func (t *TemplateViewer) ShowComments(c *gin.Context)

func (*TemplateViewer) ShowErrorPage

func (t *TemplateViewer) ShowErrorPage(c *gin.Context, ctx errorContext)

func (*TemplateViewer) ShowInspirations

func (t *TemplateViewer) ShowInspirations(c *gin.Context)

func (*TemplateViewer) ShowRecipe

func (t *TemplateViewer) ShowRecipe(c *gin.Context)

func (*TemplateViewer) ShowSearchResults

func (t *TemplateViewer) ShowSearchResults(c *gin.Context)

type Viewer

type Viewer interface {
	ShowSearchResults(c *gin.Context)
	ShowRecipe(c *gin.Context)
	ShowComments(c *gin.Context)
	ShowInspirations(c *gin.Context)
}

Jump to

Keyboard shortcuts

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