grpc

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2025 License: MIT 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 Config

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

Config is the configuration for the gRPC server.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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