Server

package
v0.0.0-...-6235a54 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ZipFiles

func ZipFiles(filesMap map[string]*bytes.Buffer) []byte

Types

type Handler

type Handler struct {
	DB                  *gorm.DB
	TokenKey            string
	UniversalRoutes     []string
	UserUniversalRoutes []string
	DBKey               string
}

func (*Handler) AddClientsToProcess

func (h *Handler) AddClientsToProcess(c echo.Context) error

Add clients to process

func (*Handler) AddUsersToProcess

func (h *Handler) AddUsersToProcess(c echo.Context) error

Add users to process, and if the user doesn't is in the organization, add it

func (*Handler) CheckDBState

func (h *Handler) CheckDBState() echo.MiddlewareFunc

func (*Handler) CheckRoleMiddleware

func (h *Handler) CheckRoleMiddleware() echo.MiddlewareFunc

func (*Handler) CreateOrganization

func (h *Handler) CreateOrganization(c echo.Context) error

func (*Handler) CreateUpdateOrganizationClient

func (h *Handler) CreateUpdateOrganizationClient(c echo.Context) error

func (*Handler) CreateUser

func (h *Handler) CreateUser(c echo.Context) error

func (*Handler) DeleteClientsFromProcess

func (h *Handler) DeleteClientsFromProcess(c echo.Context) error

Remove clients from process

func (*Handler) DeleteOrganization

func (h *Handler) DeleteOrganization(c echo.Context) error

func (*Handler) DeleteOrganizationClient

func (h *Handler) DeleteOrganizationClient(c echo.Context) error

func (*Handler) DeleteUser

func (h *Handler) DeleteUser(c echo.Context) error

func (*Handler) DeleteUsersFromProcess

func (h *Handler) DeleteUsersFromProcess(c echo.Context) error

Remove users from process

func (*Handler) ForgotPassword

func (h *Handler) ForgotPassword(c echo.Context) error

func (*Handler) GetAllRoles

func (h *Handler) GetAllRoles(c echo.Context) error

func (*Handler) GetClientTicket

func (h *Handler) GetClientTicket(c echo.Context) error

GetClientTicket

func (*Handler) GetOrgData

func (h *Handler) GetOrgData(c echo.Context) error

func (*Handler) GetOrganizations

func (h *Handler) GetOrganizations(c echo.Context) error

func (*Handler) GetOrgs

func (h *Handler) GetOrgs(c echo.Context) error

GetOrgs

func (*Handler) GetPossibleClients

func (h *Handler) GetPossibleClients(c echo.Context) error

GetPossibleClients returns all clients that can be added to a process, excluding the clients that are already in the process

func (*Handler) GetPossibleUsers

func (h *Handler) GetPossibleUsers(c echo.Context) error

GetPossibleUsers returns all users that can be added to a process, excluding the users that are already in the process

func (*Handler) GetProcess

func (h *Handler) GetProcess(c echo.Context) error

func (*Handler) GetProcessData

func (h *Handler) GetProcessData(c echo.Context) error

func (*Handler) GetProcesses

func (h *Handler) GetProcesses(c echo.Context) error

func (*Handler) GetProfile

func (h *Handler) GetProfile(c echo.Context) error

func (*Handler) GetTicketSettings

func (h *Handler) GetTicketSettings(c echo.Context) error

func (*Handler) GetTicketsType

func (h *Handler) GetTicketsType(c echo.Context) error

func (*Handler) GetTime

func (h *Handler) GetTime(c echo.Context) error

GetTime

func (*Handler) GetUserData

func (h *Handler) GetUserData(c echo.Context) error

GetUserData returns an excel file with the user data if there's more than 1 id in id query param separated by coma, it will return a zip with excel files of users requested

func (*Handler) GetUserJWT

func (h *Handler) GetUserJWT(c echo.Context) (*ORM.Usuario, error)

func (*Handler) GetUserOrganizations

func (h *Handler) GetUserOrganizations(c echo.Context) error

func (*Handler) GetUserProcesses

func (h *Handler) GetUserProcesses(c echo.Context) error

func (*Handler) GetUserTickets

func (h *Handler) GetUserTickets(c echo.Context) error

func (*Handler) GetUsers

func (h *Handler) GetUsers(c echo.Context) error

func (*Handler) Login

func (h *Handler) Login(c echo.Context) error

func (*Handler) NewTicket

func (h *Handler) NewTicket(c echo.Context) error

NewTicket

func (*Handler) PatchJobHistory

func (h *Handler) PatchJobHistory(c echo.Context) error

PatchJobHistory

func (*Handler) PingAuth

func (h *Handler) PingAuth(c echo.Context) error

func (*Handler) PostIncidentDetails

func (h *Handler) PostIncidentDetails(c echo.Context) error

func (*Handler) RefreshDataBase

func (h *Handler) RefreshDataBase(e *echo.Echo)

func (*Handler) UpdateExceptionJob

func (h *Handler) UpdateExceptionJob(c echo.Context) error

UpdateExceptionJob

func (*Handler) UpdateOrganization

func (h *Handler) UpdateOrganization(c echo.Context) error

func (*Handler) UpdateOrganizationUser

func (h *Handler) UpdateOrganizationUser(c echo.Context) error

func (*Handler) UpdateProcess

func (h *Handler) UpdateProcess(c echo.Context) error

Update process (and check if the user has the role "processes_administration" or if the user is the owner of the process)

func (*Handler) UpdateProcessAlias

func (h *Handler) UpdateProcessAlias(c echo.Context) error

func (*Handler) UpdateProfile

func (h *Handler) UpdateProfile(c echo.Context) error

func (*Handler) UpdateUipathProcess

func (h *Handler) UpdateUipathProcess(c echo.Context) error

func (*Handler) UpdateUser

func (h *Handler) UpdateUser(c echo.Context) error

Jump to

Keyboard shortcuts

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