grpc

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2024 License: GPL-3.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TranslateFromGRPCError

func TranslateFromGRPCError(_ context.Context, err error) error

TranslateFromGRPCError translates an error from a gRPC service to a errors. If no error is passed, it returns nil.

func TranslateToGRPCError

func TranslateToGRPCError(_ context.Context, err error) error

TranslateToGRPCError translates an error from errors to a gRPC service. If no error is passed, it returns nil.

Types

type GRPCServerConfig

type GRPCServerConfig struct {
	Port uint16 `env:"GRPC_SERVER_PORT" envDefault:"50051"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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