adapter

package
v0.0.0-...-2147667 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGRPCServer

func NewGRPCServer[Req, IReq, IResp, Resp any](
	endpoint endpoint.Endpoint,
	decodeRequest converter.ConvertFunc[Req, IReq],
	encodeResponse converter.ConvertFunc[IResp, Resp],
) grpc.Handler

func ServeGRPC

func ServeGRPC[Req any, Resp any](ctx context.Context, request *Req, handler grpc.Handler) (*Resp, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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