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 { CreateProject(ctx context.Context, command *pb.ProjectCreateCommand) error AssignEmployee(ctx context.Context, command *pb.ProjectAssignEmployeeCommand) error UnassignEmployee(ctx context.Context, command *pb.ProjectUnassignEmployeeCommand) error }
Service is the interface that provides project 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(projects staffing.ProjectRepository) Service
NewService creates a project service with the necessary dependencies.
Click to show internal directories.
Click to hide internal directories.