grpc

package
v0.0.0-...-54005c8 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2017 License: Unlicense Imports: 8 Imported by: 1

Documentation

Overview

Package grpc provides a gRPC client for the Users service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeGRPCCreateUserResponse

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

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

func DecodeGRPCDeleteUserResponse

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

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

func DecodeGRPCReadUserResponse

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

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

func DecodeGRPCUpdateUserResponse

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

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

func EncodeGRPCCreateUserRequest

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

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

func EncodeGRPCDeleteUserRequest

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

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

func EncodeGRPCReadUserRequest

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

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

func EncodeGRPCUpdateUserRequest

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

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

func New

func New(conn *grpc.ClientConn, options ...ClientOption) (pb.UsersServer, 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

type ClientOption

type ClientOption func(*clientConfig) error

ClientOption is a function that modifies the client config

func CtxValuesToSend

func CtxValuesToSend(keys ...string) ClientOption

Jump to

Keyboard shortcuts

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