controllers

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DucksController

type DucksController struct {
	application.BaseController
}

DucksController is the controller for the ducks

func Ducks

func Ducks() (string, *DucksController)

Ducks is a factory function with the prefix and instance

func (*DucksController) AllDucks

func (c *DucksController) AllDucks() ([]*models.Duck, error)

AllDucks is a function that can be called in views

func (DucksController) Handle

Handle is called when each request is handled

func (*DucksController) Setup

func (c *DucksController) Setup(app *application.App)

Setup is called when the application is started

Jump to

Keyboard shortcuts

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