Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrProjectNotFound = errors.New("project not found")
Functions ¶
This section is empty.
Types ¶
type Department ¶
type Department struct { ID DepartmentID `json:"id"` Name string `json:"name"` Employees []Employee `json:"employees"` }
type DepartmentID ¶
type DepartmentID string
type DepartmentRepository ¶
type DepartmentRepository interface { CreateDepartment(ctx context.Context, name string) error AssignEmployee(ctx context.Context, departmentID DepartmentID, employeeID EmployeeID) error UnassignEmployee(ctx context.Context, departmentID DepartmentID, employeeID EmployeeID) error Close() error }
type Employee ¶
type Employee struct { ID EmployeeID Name string }
type EmployeeID ¶
type EmployeeID string
type ProjectRepository ¶
Click to show internal directories.
Click to hide internal directories.