services

package
v0.0.0-...-ad0e884 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type IMessageService

type IMessageService interface {
	PostMessage(ctx *fiber.Ctx) error
	ListMessages(ctx *fiber.Ctx) error
}

type IUserService

type IUserService interface {
	Signup(ctx *fiber.Ctx) error
	AuthenticateUser(ctx *fiber.Ctx) error
}

type MessageService

type MessageService struct {
	MessageRepository repositories.IMessageRepository
	UserRepository    repositories.IUserRepository
}

func (*MessageService) ListMessages

func (s *MessageService) ListMessages(ctx *fiber.Ctx) error

func (*MessageService) PostMessage

func (s *MessageService) PostMessage(ctx *fiber.Ctx) error

type UserService

type UserService struct {
	UserRepository repositories.IUserRepository
}

func (*UserService) AuthenticateUser

func (s *UserService) AuthenticateUser(ctx *fiber.Ctx) error

func (*UserService) Signup

func (s *UserService) Signup(ctx *fiber.Ctx) error

Jump to

Keyboard shortcuts

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