servers

package
v0.0.0-...-211e212 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2021 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Overview

Package servers contains helper functions and types for dealing with gRPC servers and streams.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dial

func Dial(
	ctx context.Context,
	target string,
	opts ...grpcOption,
) (*grpc.ClientConn, error)

func NewServer

func NewServer(ctx context.Context, opts ...grpcOption) *grpc.Server

func StartSpanFromServer

func StartSpanFromServer(
	clientCtx context.Context,
	operationName string,
) (opentracing.Span, context.Context, error)

func WithDialOpts

func WithDialOpts(dialOptions ...grpc.DialOption) grpcOption

func WithServerOpts

func WithServerOpts(serverOptions ...grpc.ServerOption) grpcOption

func WithTLS

func WithTLS(tls bool) grpcOption

Types

type GRPCOptions

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

func (*GRPCOptions) Apply

func (o *GRPCOptions) Apply(opts ...grpcOption)

Jump to

Keyboard shortcuts

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