grpckit

package
v0.0.0-...-6d8faf5 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodeGRPCBinaryFile

func EncodeGRPCBinaryFile(_ context.Context, response interface{}) (interface{}, error)

EncodeGRPCBinaryFile is an EncodeResponseFunc in the context of gokit that converts BinaryFile response

func MetadataToContext

func MetadataToContext(ctx context.Context, md metadata.MD) context.Context

MetadataToContext converts metadata of gRPC to context variables.

func ValidateRequest

func ValidateRequest(req interface{}) error

ValidateRequest validates the incoming request and returns error object that encodes the error details. The returned result is nil of no error is found.

Types

This section is empty.

Jump to

Keyboard shortcuts

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