Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGRPCMethod ¶
Types ¶
type ClientInterceptor ¶
type ClientInterceptor struct {
// contains filtered or unexported fields
}
func (*ClientInterceptor) UnaryInterceptor ¶
func (ci *ClientInterceptor) UnaryInterceptor(ctx context.Context, method string, req, reply interface{}, cc *grpc.ClientConn, invoker grpc.UnaryInvoker, opts ...grpc.CallOption) error
type GRPCClient ¶
type GRPCClient struct {
// contains filtered or unexported fields
}
func NewGRPCClient ¶
func (*GRPCClient) Close ¶
func (c *GRPCClient) Close()
func (*GRPCClient) GetChannelKey ¶
func (c *GRPCClient) GetChannelKey() string
func (*GRPCClient) GetConnection ¶
func (c *GRPCClient) GetConnection() *grpc.ClientConn
type GRPCServer ¶
type GRPCServer struct {
// contains filtered or unexported fields
}
func NewGRPCServer ¶
func NewGRPCServer(port int, maxConnections int) *GRPCServer
func (*GRPCServer) GetGRPCServer ¶
func (s *GRPCServer) GetGRPCServer() *grpc.Server
func (*GRPCServer) Run ¶
func (s *GRPCServer) Run() error
Click to show internal directories.
Click to hide internal directories.