api

package
v0.0.0-...-9a1dd84 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateStruct

func ValidateStruct(data interface{}) error

Types

type AuthHandler

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

func NewAuthHandler

func NewAuthHandler(authService security.Service) *AuthHandler

func (*AuthHandler) SetUpRoutes

func (handler *AuthHandler) SetUpRoutes(app *fiber.App)

type MemberHandler

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

MemberHandler is a REST controller

func NewMemberHandler

func NewMemberHandler(service member.Service) *MemberHandler

NewMemberHandler builds a new MemberHandler

func (*MemberHandler) SetUpRoutes

func (handler *MemberHandler) SetUpRoutes(app *fiber.App)

type ReportHandler

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

ReportHandler is a REST controller

func NewReportHandler

func NewReportHandler(reportGenerator report.Service) *ReportHandler

NewReportHandler builds a new ReportHandler

func (*ReportHandler) SetUpRoutes

func (handler *ReportHandler) SetUpRoutes(app *fiber.App)

type Routable

type Routable interface {
	//SetUpRoutes build the REST controller routes
	SetUpRoutes(app *fiber.App)
}

Routable defines a way to builds a REST Controller routes

type UserHandler

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

func NewUserHandler

func NewUserHandler(service user.Service) *UserHandler

func (*UserHandler) PostUser

func (handler *UserHandler) PostUser(ctx *fiber.Ctx) error

func (*UserHandler) SetUpRoutes

func (handler *UserHandler) SetUpRoutes(app *fiber.App)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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