Documentation
¶
Overview ¶
Package endpoint implements different endpoint services required by the project service
Package endpoint implements different endpoint services required by the project service
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EndpointCreatorContract ¶
type EndpointCreatorContract interface { // CreateProjectEndpoint creates Create Project endpoint // Returns the Create Project endpoint CreateProjectEndpoint() endpoint.Endpoint // ReadProjectEndpoint creates Read Project endpoint // Returns the Read Project endpoint ReadProjectEndpoint() endpoint.Endpoint // UpdateProjectEndpoint creates Update Project endpoint // Returns the Update Project endpoint UpdateProjectEndpoint() endpoint.Endpoint // DeleteProjectEndpoint creates Delete Project endpoint // Returns the Delete Project endpoint DeleteProjectEndpoint() endpoint.Endpoint // ListProjectsEndpoint creates ListProjects Project endpoint // Returns the ListProjects Project endpoint ListProjectsEndpoint() endpoint.Endpoint }
EndpointCreatorContract declares the contract that creates endpoints to create new project, read, update and delete existing projects.
func NewEndpointCreatorService ¶
func NewEndpointCreatorService( businessService business.BusinessContract) (EndpointCreatorContract, error)
NewEndpointCreatorService creates new instance of the EndpointCreatorService, setting up all dependencies and returns the instance businessService: Mandatory. Reference to the instance of the Project service Returns the new service or error if something goes wrong
Click to show internal directories.
Click to hide internal directories.