transport

package
v0.0.0-...-2816995 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: MIT Imports: 14 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorBadRequest = errors.New("invalid request parameter")
)

Functions

func DecodeGRPCUserRequest

func DecodeGRPCUserRequest(ctx context.Context, r interface{}) (interface{}, error)

func DecodeGRPCUserResponse

func DecodeGRPCUserResponse(_ context.Context, r interface{}) (interface{}, error)

func EncodeGRPCUserRequest

func EncodeGRPCUserRequest(_ context.Context, r interface{}) (interface{}, error)

func EncodeGRPCUserResponse

func EncodeGRPCUserResponse(_ context.Context, r interface{}) (interface{}, error)

func MakeHttpHandler

func MakeHttpHandler(ctx context.Context, endpoints endpts.UserEndpoints, zipkinTracer *gozipkin.Tracer, logger log.Logger) http.Handler

MakeHttpHandler make http handler use mux

func NewGRPCServer

func NewGRPCServer(ctx context.Context, endpoints endpts.UserEndpoints, serverTracer grpc.ServerOption) pb.UserServiceServer

Types

This section is empty.

Jump to

Keyboard shortcuts

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