Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidArgument = errors.New("invalid argument")
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface { CreateDepartment(ctx context.Context, command *pb.DepartmentCreateCommand) error AssignEmployee(ctx context.Context, command *pb.DepartmentAssignEmployeeCommand) error UnassignEmployee(ctx context.Context, command *pb.DepartmentUnassignEmployeeCommand) error }
Service is the interface that provides department methods.
func NewInstrumentingService ¶
NewInstrumentingService returns an instance of an instrumenting Service.
func NewLoggingService ¶
func NewLoggingService(logger watermill.LoggerAdapter, s Service) Service
NewLoggingService returns a new instance of a logging Service.
func NewService ¶
func NewService(departments staffing.DepartmentRepository) Service
NewService creates a new project service with the necessary dependencies.
Click to show internal directories.
Click to hide internal directories.