contract

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2019 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package contract defines the contracts that provides endpoint to be used by the transport layer

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
}

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

Jump to

Keyboard shortcuts

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