grpc

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnableValidate

func EnableValidate() *grpcOptions

func MaxConcurrentStreams

func MaxConcurrentStreams(maxConcurrentStreams uint32) *grpcOptions

func NewApp

func NewApp(options ...options.Options) tfx.Application

Types

type Application

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

func (*Application) RegisterService

func (app *Application) RegisterService(constructors ...any)

func (*Application) Run

func (app *Application) Run()

func (*Application) WithLogger

func (app *Application) WithLogger(constructor any) tfx.Application

type Service

type Service interface {
	Register(srv *grpc.Server)
}

Jump to

Keyboard shortcuts

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