grpc

package
v0.0.0-...-b784633 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GRPCConfig

type GRPCConfig struct {
	Host            string
	Port            int
	CertificateFile string
	PrivateKeyFile  string
}

type GRPCConfigGetter

type GRPCConfigGetter interface {
	GetGRPCConfig() *GRPCConfig
}

type GRPCHandlerRegistry

type GRPCHandlerRegistry interface {
	RegisterServices(registrar grpc.ServiceRegistrar) error
}

type GRPCRunner

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

func NewGRPCRunner

func NewGRPCRunner(configGetter GRPCConfigGetter, options GRPCRunnerOptions) (*GRPCRunner, error)

func (GRPCRunner) AddHandlerRegistries

func (r GRPCRunner) AddHandlerRegistries(catalog *reflhelper.StructCatalog) error

func (GRPCRunner) Run

func (GRPCRunner) Stop

func (r GRPCRunner) Stop(ctx context.Context) error

type GRPCRunnerOptions

type GRPCRunnerOptions struct {
	Logger *zerolog.Logger
}

Jump to

Keyboard shortcuts

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