Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DeleteApplication ¶
type JobList ¶
func InitJobList ¶
func InitJobList(jobs []model.StoredJobApplication, save ...SaveApplication) JobList
The optional save callback keeps persistence outside the view model.
func (*JobList) SetMutationHandlers ¶
func (jobList *JobList) SetMutationHandlers(update UpdateApplication, remove DeleteApplication)
SetMutationHandlers enables editing and deletion using the caller's repository.
type SaveApplication ¶
type SaveApplication func(model.JobApplication) (model.StoredJobApplication, error)
type UpdateApplication ¶
type UpdateApplication func(model.StoredJobApplication) error
Click to show internal directories.
Click to hide internal directories.