team

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

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

Go to latest
Published: Mar 28, 2024 License: ISC Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateNewTeamDTO

type CreateNewTeamDTO struct {
	Name string `json:"name"`
}

type Team

type Team struct {
	Id       string `json:"id"`
	TenantId string `json:"tenant_id"`
	Name     string `json:"name"`
}

type TeamConfiguration

type TeamConfiguration struct {
	Name string
}

type TeamGetAllDTO

type TeamGetAllDTO struct {
	Count int    `json:"count"`
	Data  []Team `json:"data"`
}

type TeamHandlers

type TeamHandlers struct {
	RabbitMqRouter *rabbitmq.RabbitMqRouter
	TeamRepository TeamRepository
}

func NewHandlers

func NewHandlers(rmq *rabbitmq.RabbitMqRouter, teamRepository TeamRepository) *TeamHandlers

func (*TeamHandlers) CreateNewTeamHandler

func (h *TeamHandlers) CreateNewTeamHandler(w http.ResponseWriter, r *http.Request)

func (*TeamHandlers) GetAllTeamsHandler

func (h *TeamHandlers) GetAllTeamsHandler(w http.ResponseWriter, r *http.Request)

func (*TeamHandlers) ProcessNewTenantMessageHandler

func (h *TeamHandlers) ProcessNewTenantMessageHandler(body rabbitmq.RabbitMqBody)

type TeamRepository

type TeamRepository interface {
	InsertTeams(teams []Team) error
	SelectAllTeamsByTenant(tenantId string) ([]Team, error)
}

type TeamRepositoryImpl

type TeamRepositoryImpl struct {
	DB *sql.DB
}

func NewTeamRepository

func NewTeamRepository(db *sql.DB) *TeamRepositoryImpl

func (*TeamRepositoryImpl) InsertTeams

func (r *TeamRepositoryImpl) InsertTeams(teams []Team) error

func (*TeamRepositoryImpl) SelectAllTeamsByTenant

func (r *TeamRepositoryImpl) SelectAllTeamsByTenant(tenantId string) ([]Team, error)

Jump to

Keyboard shortcuts

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