Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GRPCClient ¶
GRPCClient is an implementation of ZapInterface that talks over RPC.
type GRPCServer ¶
type GRPCServer struct { zapProto.UnimplementedZapServer Impl zapService.ZapInterface }
func (*GRPCServer) Get ¶
func (m *GRPCServer) Get(ctx context.Context, req *zapProto.GetRequest) (*zapProto.GetResponse, error)
func (*GRPCServer) Put ¶
func (m *GRPCServer) Put(ctx context.Context, req *zapProto.PutRequest) (*zapProto.Empty, error)
type ZapPlugin ¶
type ZapPlugin struct { // GRPCPlugin must still implement the Plugin interface plugin.Plugin // Concrete implementation, written in Go. This is only used for plugins that are written in Go. Impl zapService.ZapInterface }
This is the implementation of plugin.GRPCPlugin so we can serve/consume this.
func (*ZapPlugin) GRPCClient ¶
Click to show internal directories.
Click to hide internal directories.