controllers

package
v0.0.0-...-a869338 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitializeAuthController

func InitializeAuthController(r *gin.Engine, authComponent auth.AuthComponent,
	eventBusComponent bus.EventBusComponent,
	authOutputComponent output.AuthOutputComponent,
	middlewareComponent middleware.MiddlewareComponent,
)

func InitializeCMSController

func InitializeCMSController(r *gin.Engine,
	authComponent auth.AuthComponent,
	peopleComponent people.PeopleManagementComponent,
	middlewareComponent middleware.MiddlewareComponent,
	emailClient infra.EmailClient,
)

BFF for IES Apps

func InitializeEventsController

func InitializeEventsController(
	r *gin.Engine,
	middlewareComponent middleware.MiddlewareComponent,
	peopleComponent events.ChurchEventComponent,
	eventBusComponent bus.EventBusComponent,
)

func InitializePeopleManagementController

func InitializePeopleManagementController(
	r *gin.Engine,
	middlewareComponent middleware.MiddlewareComponent,
	peopleComponent people.PeopleManagementComponent,
	eventBusComponent bus.EventBusComponent,
)

Types

type BasicProfile

type BasicProfile struct {
	ProfilePictureUrl string `json:"profile_picture"`
	FirstName         string `json:"first_name"`
	MiddleName        string `json:"middle_name"`
	LastName          string `json:"last_name"`
}

type ControllerConfig

type ControllerConfig struct {
	Port int    `env:"CONTROLLER_PORT" default:"3000"`
	Mode string `env:"CONTROLLER_MODE"`
}

type GeneratePasswordCodeInput

type GeneratePasswordCodeInput struct {
	EmailAddress string `json:"email"`
}

type LoginResult

type LoginResult struct {
	AccessToken string        `json:"token"`
	AuthData    dto.AuthData  `json:"auth_info"`
	Profile     *BasicProfile `json:"profile"`
}

Jump to

Keyboard shortcuts

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