endpoint

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package endpoint implements different endpoint services required by the tenant service

Package endpoint implements different endpoint services required by the tenant service

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EndpointCreatorContract

type EndpointCreatorContract interface {
	// CreateTenantEndpoint creates Create Tenant endpoint
	// Returns the Create Tenant endpoint
	CreateTenantEndpoint() endpoint.Endpoint

	// ReadTenantEndpoint creates Read Tenant endpoint
	// Returns the Read Tenant endpoint
	ReadTenantEndpoint() endpoint.Endpoint

	// UpdateTenantEndpoint creates Update Tenant endpoint
	// Returns the Update Tenant endpoint
	UpdateTenantEndpoint() endpoint.Endpoint

	// DeleteTenantEndpoint creates Delete Tenant endpoint
	// Returns the Delete Tenant endpoint
	DeleteTenantEndpoint() endpoint.Endpoint

	// SearchEndpoint creates Search Tenant endpoint
	// Returns the Search Tenant endpoint
	SearchEndpoint() endpoint.Endpoint
}

EndpointCreatorContract declares the contract that creates endpoints to create new tenant, read, update and delete existing tenants.

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 Tenant 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