grpc

package
v0.0.0-...-6a52fcc Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	GetGrpcConnection() *grpc.ClientConn
	Close() error
}

func NewGrpcClient

func NewGrpcClient(ctx context.Context, config *Config) (Client, error)

type Config

type Config struct {
	Port        int
	Host        string
	Development bool
}

type Server

type Server interface {
	RunGrpcServer(ctx context.Context, configGrpc func(grpcServer *googleGrpc.Server)) error
	GracefulShutdown()
	GetCurrentGrpcServer() *googleGrpc.Server
}

func NewGrpcServer

func NewGrpcServer(conf *Config) Server

Directories

Path Synopsis
interceptors

Jump to

Keyboard shortcuts

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