grpc

package
v0.0.0-...-f926043 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2020 License: MIT Imports: 14 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

func NewServer(server *server.Server, logger *log.Logger, secretKey string) proto.AuthenticationServiceServer

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 *grpc_main.Server, healthServer *grpc_health.Server, authServer auth_proto.AuthenticationServiceServer) *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