Documentation ¶
Index ¶
Constants ¶
View Source
const PluginName = "filter_grpc"
Variables ¶
View Source
var ( HandshakeConfig = hplugin.HandshakeConfig{ ProtocolVersion: 1, MagicCookieKey: "BASIC_PLUGIN", MagicCookieValue: "hello", } PluginMap = map[string]hplugin.Plugin{ PluginName: &FilterGRPCPlugin{}, } )
Functions ¶
This section is empty.
Types ¶
type FilterGRPCPlugin ¶
func (*FilterGRPCPlugin) GRPCClient ¶
func (p *FilterGRPCPlugin) GRPCClient(ctx context.Context, broker *hplugin.GRPCBroker, c *grpc.ClientConn) (interface{}, error)
func (*FilterGRPCPlugin) GRPCServer ¶
func (p *FilterGRPCPlugin) GRPCServer(broker *hplugin.GRPCBroker, s *grpc.Server) error
type GRPCClient ¶
type GRPCClient struct {
// contains filtered or unexported fields
}
func (*GRPCClient) Close ¶
func (m *GRPCClient) Close() error
func (*GRPCClient) Configure ¶
func (m *GRPCClient) Configure(data map[string]interface{}) error
type GRPCServer ¶
func (*GRPCServer) Configure ¶
func (m *GRPCServer) Configure(ctx context.Context, req *msgpb.ConfigureRequest) (*msgpb.ConfigureResponse, error)
func (*GRPCServer) Filter ¶
func (m *GRPCServer) Filter(ctx context.Context, req *msgpb.FilterRequest) (*msgpb.FilterResponse, error)
Click to show internal directories.
Click to hide internal directories.