grpc

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package grpc provides user grpc server

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

NewServer returns new user server object

Types

type Adapter

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

Adapter is grpc server app adapter

func NewAdapter

func NewAdapter(address string, server *grpcmain.Server, healthServer *grpchealth.Server, userServer userproto.UserServiceServer) *Adapter

NewAdapter provides new primary adapter

func (*Adapter) Start

func (adapter *Adapter) Start(ctx context.Context) error

Start start grpc application adapter

func (*Adapter) Stop

func (adapter *Adapter) Stop(ctx context.Context) error

Stop stops grpc application adapter

Jump to

Keyboard shortcuts

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