grpcapp

package
v0.0.0-...-b48969e Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InterceptorLogger

func InterceptorLogger(l *slog.Logger) logging.Logger

InterceptorLogger adapts slog logger to interceptor logger. This code is simple enough to be copied and not imported.

Types

type App

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

func New

func New(log *slog.Logger, authService authgrpc.Auth, port int) *App

New creates new gRPC server app.

func (*App) MustRun

func (a *App) MustRun()

MustRun runs gRPC server and panics if any error occurs.

func (*App) Run

func (a *App) Run() error

Run runs gRPC server.

func (*App) Stop

func (a *App) Stop()

Stop stops gRPC server.

Jump to

Keyboard shortcuts

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