Documentation ¶
Index ¶
- func New(logger *zap.SugaredLogger, client ApiClient, ...) http.Handler
- type ApiClient
- type CaseloadClient
- type CaseloadPage
- type ClientTasksClient
- type ClientTasksPage
- type DeputiesClient
- type DeputiesPage
- type DeputyTasksClient
- type DeputyTasksPage
- type EnvironmentVars
- type ErrorVars
- type FilterByAssignee
- type FilterByCaseType
- type FilterByDeputyType
- type FilterByDueDate
- type FilterByECM
- type FilterByStatus
- type FilterBySupervisionLevel
- type FilterByTaskType
- type Handler
- type ListPage
- type RedirectError
- type StatusError
- type Tab
- type Template
- type WorkflowVars
- type WorkflowVarsClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ApiClient ¶
type ApiClient interface { WorkflowVarsClient ClientTasksClient CaseloadClient DeputiesClient }
type CaseloadClient ¶
type CaseloadClient interface { GetClientList(sirius.Context, sirius.ClientListParams) (sirius.ClientList, error) GetClosedClientList(sirius.Context, sirius.ClientListParams) (sirius.ClientList, error) ReassignClients(sirius.Context, sirius.ReassignClientsParams) (string, error) }
type CaseloadPage ¶
type CaseloadPage struct { ListPage FilterByAssignee FilterByStatus FilterByDeputyType FilterByCaseType FilterBySupervisionLevel ClientList sirius.ClientList }
func (CaseloadPage) CreateUrlBuilder ¶
func (cv CaseloadPage) CreateUrlBuilder() urlbuilder.UrlBuilder
func (CaseloadPage) GetAppliedFilters ¶
func (cv CaseloadPage) GetAppliedFilters() []string
type ClientTasksClient ¶
type ClientTasksPage ¶
type ClientTasksPage struct { ListPage FilterByAssignee FilterByDueDate FilterByTaskType TaskList sirius.TaskList MyTeamId string }
func (ClientTasksPage) CreateUrlBuilder ¶
func (ctp ClientTasksPage) CreateUrlBuilder() urlbuilder.UrlBuilder
func (ClientTasksPage) GetAppliedFilters ¶
type DeputiesClient ¶
type DeputiesClient interface { GetDeputyList(sirius.Context, sirius.DeputyListParams) (sirius.DeputyList, error) ReassignDeputies(ctx sirius.Context, params sirius.ReassignDeputiesParams) (string, error) }
type DeputiesPage ¶
type DeputiesPage struct { DeputyList sirius.DeputyList ListPage FilterByECM }
func (DeputiesPage) CreateUrlBuilder ¶
func (dp DeputiesPage) CreateUrlBuilder() urlbuilder.UrlBuilder
func (DeputiesPage) GetAppliedFilters ¶
func (dp DeputiesPage) GetAppliedFilters() []string
type DeputyTasksClient ¶
type DeputyTasksPage ¶
type DeputyTasksPage struct { ListPage FilterByAssignee FilterByTaskType TaskList sirius.TaskList }
func (DeputyTasksPage) CreateUrlBuilder ¶
func (dt DeputyTasksPage) CreateUrlBuilder() urlbuilder.UrlBuilder
func (DeputyTasksPage) GetAppliedFilters ¶
func (dt DeputyTasksPage) GetAppliedFilters() []string
type EnvironmentVars ¶
type EnvironmentVars struct { Port string WebDir string SiriusURL string SiriusPublicURL string Prefix string DefaultWorkflowTeamID int DefaultPaTeamID string DefaultProTeamID string }
func NewEnvironmentVars ¶
func NewEnvironmentVars() (EnvironmentVars, error)
type ErrorVars ¶
type ErrorVars struct { Code int Error string EnvironmentVars }
type FilterByAssignee ¶
type FilterByCaseType ¶
type FilterByDeputyType ¶
type FilterByDueDate ¶
type FilterByECM ¶
type FilterByStatus ¶
type FilterBySupervisionLevel ¶ added in v1.161.0
type FilterByTaskType ¶
func (FilterByTaskType) ValidateSelectedTaskTypes ¶
func (ftp FilterByTaskType) ValidateSelectedTaskTypes(selectedTaskTypes []string, taskTypes []model.TaskType) []string
type Handler ¶
type Handler func(app WorkflowVars, w http.ResponseWriter, r *http.Request) error
type ListPage ¶
type ListPage struct { App WorkflowVars Error string AppliedFilters []string Pagination paginate.Pagination PerPage int Sort urlbuilder.Sort UrlBuilder urlbuilder.UrlBuilder }
func (ListPage) HasFilterBy ¶
type RedirectError ¶
type RedirectError string
func (RedirectError) Error ¶
func (e RedirectError) Error() string
func (RedirectError) To ¶
func (e RedirectError) To() string
type StatusError ¶
type StatusError int
func (StatusError) Code ¶
func (e StatusError) Code() int
func (StatusError) Error ¶
func (e StatusError) Error() string
type Tab ¶
func (Tab) IsSelected ¶
func (t Tab) IsSelected(app WorkflowVars) bool
type WorkflowVars ¶
type WorkflowVars struct { Path string XSRFToken string MyDetails model.Assignee Teams []model.Team SelectedTeam model.Team Tabs []Tab SuccessMessage string Errors sirius.ValidationErrors EnvironmentVars EnvironmentVars }
func NewWorkflowVars ¶
func NewWorkflowVars(client WorkflowVarsClient, r *http.Request, envVars EnvironmentVars) (*WorkflowVars, error)
Click to show internal directories.
Click to hide internal directories.