rpcserver

package
v0.0.0-...-75585be Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGrpcServer

func NewGrpcServer() *grpc.Server

Types

type LogursWrapper

type LogursWrapper struct {
	logrus.Entry
	// contains filtered or unexported fields
}

LogursWrapper implemented the gRPC LoggerV2 interface

func (*LogursWrapper) V

func (l *LogursWrapper) V(i int) bool

V reports whether verbosity level l is at least the requested verbose level.

type Product

type Product struct {
	Name  string
	Price float64
}

type Server

type Server struct{}

func (*Server) Chat

func (s *Server) Chat(stream pb.Warehouse_ChatServer) error

func (*Server) CreateProducts

func (s *Server) CreateProducts(server pb.Warehouse_CreateProductsServer) error

func (*Server) GetProduct

func (s *Server) GetProduct(ctx context.Context, in *pb.GetProductRequest) (*pb.Product, error)

func (*Server) ListProducts

func (s *Server) ListProducts(in *pb.ListProductsRequest, stream pb.Warehouse_ListProductsServer) error

Jump to

Keyboard shortcuts

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