grpctransport

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2019 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Overview

Package grpctransport implements functions to expose Tenant service endpoint using GRPC protocol.

Package grpctransport implements functions to expose Tenant service endpoint using GRPC protocol.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server provides function to start GRPC server to serve tenant requests

func (*Server) CreateTenant

CreateTenant creates a new tenant context: Mandatory. The reference to the context request: mandatory. The request to create a new tenant Returns the result of creating new tenant

func (*Server) DeleteTenant

DeleteTenant delete an existing tenant context: Mandatory. The reference to the context request: Mandatory. The request to delete an esiting tenant Returns the result of deleting an exiting tenant

func (*Server) ListenAndServe

func (server *Server) ListenAndServe()

ListenAndServe creates a new GRPC server instance, listens on a port and start serving GRPC requests

func (*Server) ReadTenant

ReadTenant read an existing tenant context: Mandatory. The reference to the context request: Mandatory. The request to read an esiting tenant Returns the result of reading an exiting tenant

func (*Server) UpdateTenant

UpdateTenant update an existing tenant context: Mandatory. The reference to the context request: Mandatory. The request to update an esiting tenant Returns the result of updateing an exiting tenant

Jump to

Keyboard shortcuts

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