grpc_listener

package
v0.0.0-...-be915d5 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder[Dep dependencies.Locator] func(dep Dep, sr grpc.ServiceRegistrar) error

type Config

type Config struct {
	GRPCPort string `default:":50051"`
}

type GRPC

type GRPC[Conf dependencies.Config, Dep dependencies.Locator] struct {
	Swagger      []byte
	InitConfig   func(conf Conf) Config
	Builder      func(sr grpc.ServiceRegistrar, dep Dep) error
	HTTPHandlers []func(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) error
}

func (GRPC[Conf, Dep]) Server

func (m GRPC[Conf, Dep]) Server(ctx context.Context, log *zerolog.Logger, dep Dep, global Conf) error

Jump to

Keyboard shortcuts

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