handlers

package
v0.0.0-...-4a018e9 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidCredentials = errors.New("invalid credentials")
	ErrNotFound           = errors.New("user not found")
)

Functions

This section is empty.

Types

type AdvertisingHandler

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

func NewAdvertisingHandler

func NewAdvertisingHandler(service services.AdvertisingService) *AdvertisingHandler

func (*AdvertisingHandler) Create

func (a *AdvertisingHandler) Create(c *fiber.Ctx) error

func (*AdvertisingHandler) GetByQuery

func (a *AdvertisingHandler) GetByQuery(c *fiber.Ctx) error

type PostHandler

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

func NewPostHandler

func NewPostHandler(service services.PostService) *PostHandler

func (*PostHandler) Get

func (p *PostHandler) Get(c *fiber.Ctx) error

type UserHandler

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

func NewUserHandler

func NewUserHandler(service services.AuthService) *UserHandler

func (*UserHandler) Login

func (u *UserHandler) Login(c *fiber.Ctx) error

func (*UserHandler) Register

func (u *UserHandler) Register(c *fiber.Ctx) error

Jump to

Keyboard shortcuts

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