Documentation ¶
Index ¶
- Variables
- func DecodeGRPCUserRequest(ctx context.Context, r interface{}) (interface{}, error)
- func DecodeGRPCUserResponse(_ context.Context, r interface{}) (interface{}, error)
- func EncodeGRPCUserRequest(_ context.Context, r interface{}) (interface{}, error)
- func EncodeGRPCUserResponse(_ context.Context, r interface{}) (interface{}, error)
- func MakeHttpHandler(ctx context.Context, endpoints endpts.UserEndpoints, ...) http.Handler
- func NewGRPCServer(ctx context.Context, endpoints endpts.UserEndpoints, ...) pb.UserServiceServer
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrorBadRequest = errors.New("invalid request parameter")
)
Functions ¶
func DecodeGRPCUserRequest ¶
func DecodeGRPCUserResponse ¶
func EncodeGRPCUserRequest ¶
func EncodeGRPCUserResponse ¶
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.
Click to show internal directories.
Click to hide internal directories.