project

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2023 License: MIT Imports: 7 Imported by: 0

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

func NewInstrumentingService(counter metrics.Counter, latency metrics.Histogram, s Service) Service

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL