Documentation ¶
Index ¶
- Variables
- type AddHelper
- type AddHelperImpl
- type GRPCAddHelperClient
- type GRPCAddHelperServer
- type GRPCClient
- type GRPCServer
- func (m *GRPCServer) Decode(ctx context.Context, req *proto.DecodeRequest) (*proto.DecodeResponse, error)
- func (m *GRPCServer) Encode(ctx context.Context, req *proto.EncodeRequest) (*proto.EncodeResponse, error)
- func (m *GRPCServer) Get(ctx context.Context, req *proto.GetRequest) (*proto.GetResponse, error)
- func (m *GRPCServer) Info(ctx context.Context, req *proto.InfoRequest) (*proto.InfoResponse, error)
- func (m *GRPCServer) Put(ctx context.Context, req *proto.PutRequest) (*proto.Empty, error)
- type Protocol
Constants ¶
This section is empty.
Variables ¶
View Source
var Logger *zap.Logger
Functions ¶
This section is empty.
Types ¶
type AddHelperImpl ¶
type AddHelperImpl struct{}
type GRPCAddHelperClient ¶
type GRPCAddHelperClient struct {
// contains filtered or unexported fields
}
GRPCClient is an implementation of KV that talks over RPC.
type GRPCAddHelperServer ¶
type GRPCAddHelperServer struct { // This is the real implementation Impl AddHelper }
Here is the gRPC server that GRPCClient talks to.
func (*GRPCAddHelperServer) Sum ¶
func (m *GRPCAddHelperServer) Sum(ctx context.Context, req *proto.SumRequest) (resp *proto.SumResponse, err error)
type GRPCClient ¶
type GRPCClient struct { Broker *plugin.GRPCBroker Client proto.PluginClient Logger *zap.Logger }
GRPCClient is an implementation of KV that talks over RPC.
func (*GRPCClient) Info ¶
func (m *GRPCClient) Info(args string) model.PluginInfo
type GRPCServer ¶
type GRPCServer struct { // This is the real implementation Impl Protocol Broker *plugin.GRPCBroker }
Here is the gRPC server that GRPCClient talks to.
func (*GRPCServer) Decode ¶
func (m *GRPCServer) Decode(ctx context.Context, req *proto.DecodeRequest) (*proto.DecodeResponse, error)
func (*GRPCServer) Encode ¶
func (m *GRPCServer) Encode(ctx context.Context, req *proto.EncodeRequest) (*proto.EncodeResponse, error)
func (*GRPCServer) Get ¶
func (m *GRPCServer) Get(ctx context.Context, req *proto.GetRequest) (*proto.GetResponse, error)
func (*GRPCServer) Info ¶
func (m *GRPCServer) Info(ctx context.Context, req *proto.InfoRequest) (*proto.InfoResponse, error)
func (*GRPCServer) Put ¶
func (m *GRPCServer) Put(ctx context.Context, req *proto.PutRequest) (*proto.Empty, error)
Click to show internal directories.
Click to hide internal directories.