grpc

package
v0.0.0-...-0c43097 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package grpc provides a gRPC client for the User service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeGRPCLoginResponse

func DecodeGRPCLoginResponse(_ context.Context, grpcReply interface{}) (interface{}, error)

DecodeGRPCLoginResponse is a transport/grpc.DecodeResponseFunc that converts a gRPC login reply to a user-domain login response. Primarily useful in a client.

func EncodeGRPCLoginRequest

func EncodeGRPCLoginRequest(_ context.Context, request interface{}) (interface{}, error)

EncodeGRPCLoginRequest is a transport/grpc.EncodeRequestFunc that converts a user-domain login request to a gRPC login request. Primarily useful in a client.

func New

func New(conn *grpc.ClientConn, options ...grpctransport.ClientOption) (svc.Endpoints, error)

New returns an service backed by a gRPC client connection. It is the responsibility of the caller to dial, and later close, the connection.

Types

This section is empty.

Jump to

Keyboard shortcuts

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