Documentation ¶
Index ¶
- func GetAssigneeFromId(id int, teamMembers []model.TeamMember) model.Assignee
- func LoggerRequest(l *slog.Logger, r *http.Request, err error)
- func New(logger *slog.Logger, client Client, templates map[string]*template.Template, ...) http.Handler
- func RenameErrors(errors sirius.ValidationErrors, deputyType string) sirius.ValidationErrors
- func RetainFormData(task model.Task, assignees []model.TeamMember, dueDate string, notes string, ...) (model.Task, bool)
- type AddAssuranceClient
- type AddAssuranceVars
- type AddDocumentClient
- type AddDocumentVars
- type AddGcmIssue
- type AddGcmIssueVars
- type AddTaskVars
- type AddTasksClient
- type AppVars
- type AppVarsClient
- type AssurancesVars
- type ChangeECMInformation
- type Client
- type CompleteTask
- type DeleteContact
- type DeleteContactVars
- type DeleteDeputy
- type DeleteDeputyVars
- type DeputyChangeFirmInformation
- type DeputyContactDetailsInformation
- type DeputyHubClient
- type DeputyHubClientInformation
- type DeputyHubContactInformation
- type DeputyHubEventInformation
- type DeputyHubInformation
- type DeputyHubNotesInformation
- type DocumentsClient
- type DocumentsVars
- type EditDeputyHubInformation
- type EnvironmentVars
- type ErrorVars
- type ExpandedError
- type FilterByAccommodation
- type FilterByOrderStatus
- type FilterBySupervisionLevel
- type FirmInformation
- type GcmIssuesVars
- type GetAssurancesClient
- type GetGcmIssues
- type Handler
- type ListClientsVars
- type ListContactsVars
- type ListPage
- type ManageAssuranceClient
- type ManageAssuranceVars
- type ManageContact
- type ManageContactVars
- type ManageProDeputyImportantInformation
- type ManageTasks
- type Redirect
- type ReplaceDocumentClient
- type ReplaceDocumentVars
- type StatusError
- type TasksClient
- type TasksVars
- type Template
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAssigneeFromId ¶ added in v1.153.0
func GetAssigneeFromId(id int, teamMembers []model.TeamMember) model.Assignee
func LoggerRequest ¶ added in v1.209.0
func RenameErrors ¶ added in v1.127.0
func RenameErrors(errors sirius.ValidationErrors, deputyType string) sirius.ValidationErrors
Types ¶
type AddAssuranceClient ¶ added in v1.157.0
type AddAssuranceVars ¶ added in v1.157.0
type AddAssuranceVars struct {
AppVars
}
type AddDocumentClient ¶ added in v1.211.0
type AddDocumentClient interface { AddDocument(ctx sirius.Context, file multipart.File, filename string, documentType string, direction string, date string, notes string, deputyId int) error GetDocumentDirections(ctx sirius.Context) ([]model.RefData, error) GetDocumentTypes(ctx sirius.Context, deputyType string) ([]model.RefData, error) }
type AddDocumentVars ¶ added in v1.211.0
type AddGcmIssue ¶ added in v1.217.0
type AddGcmIssueVars ¶ added in v1.217.0
type AddTaskVars ¶ added in v1.118.0
type AddTasksClient ¶ added in v1.118.0
type AddTasksClient interface { AddTask(ctx sirius.Context, deputyId int, taskType string, typeName string, dueDate string, notes string, assigneeId int) error GetTaskTypesForDeputyType(ctx sirius.Context, deputyType string) ([]model.TaskType, error) GetDeputyTeamMembers(ctx sirius.Context, defaultPATeam int, deputy sirius.DeputyDetails) ([]model.TeamMember, error) }
type AppVars ¶ added in v1.137.0
type AppVars struct { Path string XSRFToken string UserDetails sirius.UserDetails DeputyDetails sirius.DeputyDetails PageName string Error string Errors sirius.ValidationErrors EnvironmentVars }
func NewAppVars ¶ added in v1.137.0
func NewAppVars(client AppVarsClient, r *http.Request, envVars EnvironmentVars) (*AppVars, error)
func (AppVars) DeputyType ¶ added in v1.146.0
type AppVarsClient ¶ added in v1.137.0
type AssurancesVars ¶ added in v1.157.0
type ChangeECMInformation ¶ added in v1.25.0
type ChangeECMInformation interface { GetDeputyTeamMembers(sirius.Context, int, sirius.DeputyDetails) ([]model.TeamMember, error) ChangeECM(sirius.Context, sirius.ExecutiveCaseManagerOutgoing, sirius.DeputyDetails) error }
type Client ¶
type Client interface { DeputyHubClient DeputyHubInformation DeputyHubClientInformation DeputyHubContactInformation DeputyHubEventInformation DeputyHubNotesInformation EditDeputyHubInformation ChangeECMInformation FirmInformation DeputyContactDetailsInformation ManageProDeputyImportantInformation DeputyChangeFirmInformation AddAssuranceClient GetAssurancesClient ManageAssuranceClient ManageContact DeleteContact DeleteDeputy AddTasksClient TasksClient DocumentsClient ReplaceDocumentClient AddDocumentClient ManageTasks CompleteTask AddGcmIssue GetGcmIssues }
type CompleteTask ¶ added in v1.129.0
type DeleteContact ¶ added in v1.140.0
type DeleteContactVars ¶ added in v1.140.0
Could just use ErrorVars?
type DeleteDeputy ¶ added in v1.151.0
type DeleteDeputyVars ¶ added in v1.151.0
type DeputyChangeFirmInformation ¶ added in v1.41.0
type DeputyContactDetailsInformation ¶ added in v1.33.0
type DeputyHubClient ¶ added in v1.137.0
type DeputyHubContactInformation ¶ added in v1.126.0
type DeputyHubInformation ¶
type DeputyHubInformation interface {
GetDeputyClients(sirius.Context, sirius.ClientListParams) (sirius.ClientList, error)
}
type DocumentsClient ¶ added in v1.211.0
type DocumentsVars ¶ added in v1.211.0
type DocumentsVars struct { DocumentList sirius.DocumentList SuccessMessage string AppVars Sort string }
type EditDeputyHubInformation ¶
type EditDeputyHubInformation interface {
EditDeputyDetails(sirius.Context, sirius.DeputyDetails) error
}
type EnvironmentVars ¶ added in v1.137.0
type EnvironmentVars struct { Port string WebDir string SiriusURL string SiriusPublicURL string FirmHubURL string Prefix string DefaultPaTeam int DefaultProTeam int Features []string }
func NewEnvironmentVars ¶ added in v1.137.0
func NewEnvironmentVars() (EnvironmentVars, error)
type ErrorVars ¶ added in v1.137.0
type ErrorVars struct { Code int Error string EnvironmentVars }
type ExpandedError ¶ added in v1.209.0
type ExpandedError interface { Title() string Data() interface{} }
type FilterByAccommodation ¶ added in v1.167.0
type FilterByOrderStatus ¶ added in v1.155.0
type FilterBySupervisionLevel ¶ added in v1.169.0
type FirmInformation ¶ added in v1.33.0
type GcmIssuesVars ¶ added in v1.217.0
type GcmIssuesVars struct { ErrorMessage string SuccessMessage string GcmIssues []sirius.GcmIssue Sort urlbuilder.Sort AppVars UrlBuilder urlbuilder.UrlBuilder GCMIssueStatus string }
func (GcmIssuesVars) CreateUrlBuilder ¶ added in v1.217.0
func (gv GcmIssuesVars) CreateUrlBuilder() urlbuilder.UrlBuilder
type GetAssurancesClient ¶ added in v1.157.0
type GetGcmIssues ¶ added in v1.217.0
type ListClientsVars ¶ added in v1.114.0
type ListClientsVars struct { Clients sirius.ClientList ListPage FilterByOrderStatus FilterByAccommodation FilterBySupervisionLevel }
func (ListClientsVars) CreateUrlBuilder ¶ added in v1.155.0
func (lcv ListClientsVars) CreateUrlBuilder() urlbuilder.UrlBuilder
func (ListClientsVars) GetAppliedFilters ¶ added in v1.155.0
func (lcv ListClientsVars) GetAppliedFilters() []string
func (ListClientsVars) ValidateSelectedOrderStatuses ¶ added in v1.155.0
func (lcv ListClientsVars) ValidateSelectedOrderStatuses(selectedOrderStatuses []string, orderStatuses []model.OrderStatus) []string
type ListContactsVars ¶ added in v1.125.0
type ListContactsVars struct { SuccessMessage string ContactList sirius.ContactList AppVars }
type ListPage ¶ added in v1.167.0
type ListPage struct { AppVars AppliedFilters []string Sort urlbuilder.Sort Error string Pagination paginate.Pagination PerPage int UrlBuilder urlbuilder.UrlBuilder }
func (ListPage) HasFilterBy ¶ added in v1.167.0
type ManageAssuranceClient ¶ added in v1.157.0
type ManageAssuranceClient interface { UpdateAssurance(ctx sirius.Context, manageAssuranceForm sirius.UpdateAssuranceDetails, deputyId, visitId int) error GetVisitors(ctx sirius.Context) ([]model.Visitor, error) GetRagRatingTypes(ctx sirius.Context) ([]model.RAGRating, error) GetVisitOutcomeTypes(ctx sirius.Context) ([]model.RefData, error) GetPdrOutcomeTypes(ctx sirius.Context) ([]model.RefData, error) GetAssuranceById(ctx sirius.Context, deputyId int, visitId int) (model.Assurance, error) }
type ManageAssuranceVars ¶ added in v1.157.0
type ManageContact ¶ added in v1.130.0
type ManageContactVars ¶ added in v1.130.0
type ManageProDeputyImportantInformation ¶ added in v1.36.0
type ManageProDeputyImportantInformation interface { UpdateImportantInformation(sirius.Context, int, sirius.ImportantInformationDetails) error GetDeputyAnnualInvoiceBillingTypes(ctx sirius.Context) ([]model.RefData, error) GetDeputyBooleanTypes(ctx sirius.Context) ([]model.RefData, error) GetDeputyReportSystemTypes(ctx sirius.Context) ([]model.RefData, error) }
type ManageTasks ¶ added in v1.127.0
type ManageTasks interface { GetTask(sirius.Context, int) (model.Task, error) GetDeputyTeamMembers(ctx sirius.Context, defaultPATeam int, deputy sirius.DeputyDetails) ([]model.TeamMember, error) UpdateTask(ctx sirius.Context, deputyId, taskId int, dueDate, notes string, assigneeId int) error GetTaskTypesForDeputyType(ctx sirius.Context, deputyType string) ([]model.TaskType, error) }
type ReplaceDocumentClient ¶ added in v1.215.0
type ReplaceDocumentClient interface { ReplaceDocument(ctx sirius.Context, file multipart.File, filename, documentType, direction, date, notes string, deputyId, documentId int) error GetDocumentDirections(ctx sirius.Context) ([]model.RefData, error) GetDocumentTypes(ctx sirius.Context, deputyType string) ([]model.RefData, error) GetDocumentById(ctx sirius.Context, deputyId, documentId int) (model.Document, error) }
type ReplaceDocumentVars ¶ added in v1.215.0
type StatusError ¶
type StatusError int
func (StatusError) Code ¶
func (e StatusError) Code() int
func (StatusError) Error ¶
func (e StatusError) Error() string
type TasksClient ¶ added in v1.118.0
Source Files ¶
- add_assurance.go
- add_document.go
- add_firm.go
- add_gcm_issue.go
- add_task.go
- app_vars.go
- assurances.go
- change_ecm.go
- change_firm.go
- complete_task.go
- delete_contact.go
- delete_deputy.go
- deputy_events.go
- deputy_hub.go
- deputy_notes.go
- edit_deputy_hub.go
- env_vars.go
- health_check.go
- list_clients.go
- list_contacts.go
- list_documents.go
- list_gcm_issues.go
- manage_assurance.go
- manage_contact.go
- manage_deputy_contact_details.go
- manage_important_information.go
- manage_task.go
- page_vars.go
- replace_document.go
- server.go
- tasks.go
- wrap_handler.go
Click to show internal directories.
Click to hide internal directories.