handler

package
v0.0.0-...-ad783b1 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIHandler

type APIHandler interface {
	Login(c *fiber.Ctx) error
	Logout(c *fiber.Ctx) error
	Signup(c *fiber.Ctx) error
}

func NewAPIHandler

func NewAPIHandler(c *Config) APIHandler

type Config

type Config struct {
	UserSvc      user.Service
	SessionStore *session.Store
}

type PageHandler

type PageHandler interface {
	ShowHomePage(c *fiber.Ctx) error
	ShowAboutPage(c *fiber.Ctx) error
	ShowContactPage(c *fiber.Ctx) error
	ShowLoginPage(c *fiber.Ctx) error
}

func NewPageHandler

func NewPageHandler(c *Config) PageHandler

Jump to

Keyboard shortcuts

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