endpoint

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

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

Directories

Path Synopsis
Package mock_endpoint is a generated GoMock package.
Package mock_endpoint is a generated GoMock package.

Jump to

Keyboard shortcuts

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