endpoint

package
v0.4.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 user service

Package endpoint implements different endpoint services required by the user service

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EndpointCreatorContract

type EndpointCreatorContract interface {
	// CreateUserEndpoint creates Create User endpoint
	// Returns the Create User endpoint
	CreateUserEndpoint() endpoint.Endpoint

	// ReadUserEndpoint creates Read User endpoint
	// Returns the Read User endpoint
	ReadUserEndpoint() endpoint.Endpoint

	// UpdateUserEndpoint creates Update User endpoint
	// Returns the Update User endpoint
	UpdateUserEndpoint() endpoint.Endpoint

	// DeleteUserEndpoint creates Delete User endpoint
	// Returns the Delete User endpoint
	DeleteUserEndpoint() endpoint.Endpoint
}

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

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