grpc

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2020 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// DialContext func-alias
	DialContext = grpc.DialContext

	// WithBlock func-alias
	WithBlock = grpc.WithBlock

	// WithInsecure func-alias
	WithInsecure = grpc.WithInsecure
)
View Source
var Module = module.Module{
	{Constructor: routing},
}

Module is a gRPC layer module.

Functions

This section is empty.

Types

type CallOption

type CallOption = grpc.CallOption

CallOption type-alias

type ClientConn

type ClientConn = grpc.ClientConn

ClientConn type-alias

type Server

type Server = grpc.Server

Server type-alias

func NewServer

func NewServer(opts ...ServerOption) *Server

NewServer creates a gRPC server which has no service registered and has not started to accept requests yet.

type ServerOption

type ServerOption = grpc.ServerOption

ServerOption type-alias

type ServerParams

type ServerParams struct {
	dig.In

	Services []Service
	Logger   *zap.Logger
	Viper    *viper.Viper
}

ServerParams to create gRPC-server and provide service-handlers

type Service

type Service = libgrpc.Service

type ServicesResult

type ServicesResult struct {
	dig.Out

	Services []Service
}

ServicesResult ...

Jump to

Keyboard shortcuts

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