controller

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

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

func New

func New(name string) *Base

func (*Base) AddMiddleware

func (b *Base) AddMiddleware(mw fiber.Handler) *Base

func (*Base) Middlewares

func (b *Base) Middlewares() []fiber.Handler

func (*Base) Name

func (b *Base) Name() string

func (*Base) Prefix

func (b *Base) Prefix() string

func (*Base) Routes

func (b *Base) Routes() []route.Route

func (*Base) SetPrefix

func (b *Base) SetPrefix(p string) *Base

type Controller

type Controller interface {
	Routes() []route.Route
	Prefix() string
	Middlewares() []fiber.Handler
	Name() string
}

Jump to

Keyboard shortcuts

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