controllers

package
v0.0.0-...-7a4b419 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BaseController

func BaseController(app *fiber.App, appServices services.BaseService, session *session.Store)

func EntrepreneurRoute

func EntrepreneurRoute(router fiber.Router, services service.BaseService, session *session.Store)

func EventRouter

func EventRouter(router fiber.Router, services service.BaseService, session *session.Store)

func InstituteRouter

func InstituteRouter(router fiber.Router, services service.BaseService, session *session.Store)

func RewardRouter

func RewardRouter(router fiber.Router, services service.BaseService, session *session.Store)

func SolutionRouter

func SolutionRouter(router fiber.Router, services service.BaseService, session *session.Store)

func TeamRouter

func TeamRouter(router fiber.Router, services service.BaseService, session *session.Store)

func TraineeRoute

func TraineeRoute(router fiber.Router, services service.BaseService, session *session.Store)

func UserRoute

func UserRoute(router fiber.Router, services service.BaseService, session *session.Store)

Types

type Centre

type Centre struct {
	Service service.InstituteService
	Session *session.Store
}

func InstituteConstructor

func InstituteConstructor(appInterface service.InstituteService, session *session.Store) *Centre

InstituteConstructor Supply constructor

func (*Centre) Create

func (i *Centre) Create(ctx *fiber.Ctx) error

func (*Centre) Get

func (i *Centre) Get(ctx *fiber.Ctx) error

func (*Centre) List

func (i *Centre) List(ctx *fiber.Ctx) error

func (*Centre) Update

func (i *Centre) Update(ctx *fiber.Ctx) error

type Entrepreneur

type Entrepreneur struct {
	Service service.EntrepreneurService
	Session *session.Store
}

func EntrepreneurConstructor

func EntrepreneurConstructor(service service.EntrepreneurService, session *session.Store) *Entrepreneur

func (*Entrepreneur) Add

func (t *Entrepreneur) Add(ctx *fiber.Ctx) error

func (*Entrepreneur) Get

func (t *Entrepreneur) Get(ctx *fiber.Ctx) error

func (*Entrepreneur) List

func (t *Entrepreneur) List(ctx *fiber.Ctx) error

type Event

type Event struct {
	Service service.EventService
	Session *session.Store
}

func EventConstructor

func EventConstructor(appInterface service.EventService, session *session.Store) *Event

EventConstructor event constructor

func (*Event) Create

func (e *Event) Create(ctx *fiber.Ctx) error

func (*Event) Get

func (e *Event) Get(ctx *fiber.Ctx) error

func (*Event) List

func (e *Event) List(ctx *fiber.Ctx) error

func (*Event) Update

func (e *Event) Update(ctx *fiber.Ctx) error

type Reward

type Reward struct {
	Service service.RewardService
	Session *session.Store
}

func RewardConstructor

func RewardConstructor(appInterface service.RewardService, session *session.Store) *Reward

RewardConstructor reward constructor

func (*Reward) Create

func (i *Reward) Create(ctx *fiber.Ctx) error

func (*Reward) Get

func (i *Reward) Get(ctx *fiber.Ctx) error

func (*Reward) List

func (i *Reward) List(ctx *fiber.Ctx) error

func (*Reward) Update

func (i *Reward) Update(ctx *fiber.Ctx) error

type Solution

type Solution struct {
	Service service.SolutionService
	Session *session.Store
}

func SolutionConstructor

func SolutionConstructor(appInterface service.SolutionService, session *session.Store) *Solution

SolutionConstructor solution constructor

func (*Solution) AddedReward

func (i *Solution) AddedReward(ctx *fiber.Ctx) error

func (*Solution) Create

func (i *Solution) Create(ctx *fiber.Ctx) error

func (*Solution) Get

func (i *Solution) Get(ctx *fiber.Ctx) error

func (*Solution) List

func (i *Solution) List(ctx *fiber.Ctx) error

type Team

type Team struct {
	Service service.TeamService
	Session *session.Store
}

func TeamConstructor

func TeamConstructor(appInterface service.TeamService, session *session.Store) *Team

func (*Team) Create

func (t *Team) Create(ctx *fiber.Ctx) error

func (*Team) List

func (t *Team) List(ctx *fiber.Ctx) error

type Trainee

type Trainee struct {
	Service service.TraineeService
	Session *session.Store
}

func TraineeConstructor

func TraineeConstructor(service service.TraineeService, session *session.Store) *Trainee

func (*Trainee) Add

func (t *Trainee) Add(ctx *fiber.Ctx) error

func (*Trainee) Get

func (t *Trainee) Get(ctx *fiber.Ctx) error

func (*Trainee) List

func (t *Trainee) List(ctx *fiber.Ctx) error

type User

type User struct {
	Service service.User
	Session *session.Store
}

func (*User) Add

func (u *User) Add(ctx *fiber.Ctx) error

func (*User) ChangePassword

func (u *User) ChangePassword(ctx *fiber.Ctx) error

func (*User) Edit

func (u *User) Edit(ctx *fiber.Ctx) error

func (*User) GetPassword

func (u *User) GetPassword(ctx *fiber.Ctx) error

func (*User) Login

func (u *User) Login(ctx *fiber.Ctx) error

func (*User) Logout

func (u *User) Logout(ctx *fiber.Ctx) error

func (*User) Me

func (u *User) Me(ctx *fiber.Ctx) error

func (*User) Remove

func (u *User) Remove(ctx *fiber.Ctx) error

func (*User) User

func (u *User) User(ctx *fiber.Ctx) error

func (*User) Users

func (u *User) Users(ctx *fiber.Ctx) error

Jump to

Keyboard shortcuts

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