Documentation ¶
Index ¶
- Constants
- Variables
- type ArchiveReader
- func (r *ArchiveReader) FindTraceIDs(ctx context.Context, query *spanstore.TraceQueryParameters) ([]model.TraceID, error)
- func (r *ArchiveReader) FindTraces(ctx context.Context, query *spanstore.TraceQueryParameters) ([]*model.Trace, error)
- func (r *ArchiveReader) GetOperations(ctx context.Context, query spanstore.OperationQueryParameters) ([]spanstore.Operation, error)
- func (r *ArchiveReader) GetServices(ctx context.Context) ([]string, error)
- func (r *ArchiveReader) GetTrace(ctx context.Context, traceID model.TraceID) (*model.Trace, error)
- type ArchiveStoragePlugin
- type ArchiveWriter
- type Capabilities
- type PluginCapabilities
- type StorageGRPCPlugin
- type StoragePlugin
Constants ¶
const StoragePluginIdentifier = "storage_plugin"
StoragePluginIdentifier is the identifier that is shared by plugin and host.
Variables ¶
var Handshake = plugin.HandshakeConfig{
MagicCookieKey: "STORAGE_PLUGIN",
MagicCookieValue: "jaeger",
}
Handshake is a common handshake that is shared by plugin and host.
var PluginMap = map[string]plugin.Plugin{ StoragePluginIdentifier: &StorageGRPCPlugin{}, }
PluginMap is the map of plugins we can dispense.
Functions ¶
This section is empty.
Types ¶
type ArchiveReader ¶
type ArchiveReader struct {
// contains filtered or unexported fields
}
ArchiveReader wraps storage_v1.ArchiveSpanReaderPluginClient into spanstore.Reader
func (*ArchiveReader) FindTraceIDs ¶
func (r *ArchiveReader) FindTraceIDs(ctx context.Context, query *spanstore.TraceQueryParameters) ([]model.TraceID, error)
FindTraceIDs not used in ArchiveReader
func (*ArchiveReader) FindTraces ¶
func (r *ArchiveReader) FindTraces(ctx context.Context, query *spanstore.TraceQueryParameters) ([]*model.Trace, error)
FindTraces not used in ArchiveReader
func (*ArchiveReader) GetOperations ¶
func (r *ArchiveReader) GetOperations(ctx context.Context, query spanstore.OperationQueryParameters) ([]spanstore.Operation, error)
GetOperations not used in ArchiveReader
func (*ArchiveReader) GetServices ¶
func (r *ArchiveReader) GetServices(ctx context.Context) ([]string, error)
GetServices not used in ArchiveReader
type ArchiveStoragePlugin ¶
type ArchiveStoragePlugin interface { ArchiveSpanReader() spanstore.Reader ArchiveSpanWriter() spanstore.Writer }
ArchiveStoragePlugin is the interface we're exposing as a plugin.
type ArchiveWriter ¶
type ArchiveWriter struct {
// contains filtered or unexported fields
}
ArchiveWriter wraps storage_v1.ArchiveSpanWriterPluginClient into spanstore.Writer
type Capabilities ¶
Capabilities contains information about plugin capabilities
type PluginCapabilities ¶
type PluginCapabilities interface {
Capabilities() (*Capabilities, error)
}
PluginCapabilities allow expose plugin its capabilities.
type StorageGRPCPlugin ¶
type StorageGRPCPlugin struct { plugin.Plugin // Concrete implementation, written in Go. This is only used for plugins // that are written in Go. Impl StoragePlugin ArchiveImpl ArchiveStoragePlugin }
StorageGRPCPlugin is the implementation of plugin.GRPCPlugin so we can serve/consume this.
func (*StorageGRPCPlugin) GRPCClient ¶
func (*StorageGRPCPlugin) GRPCClient(ctx context.Context, broker *plugin.GRPCBroker, c *grpc.ClientConn) (interface{}, error)
GRPCClient is used by go-plugin to create a grpc plugin client
func (*StorageGRPCPlugin) GRPCServer ¶
func (p *StorageGRPCPlugin) GRPCServer(broker *plugin.GRPCBroker, s *grpc.Server) error
GRPCServer is used by go-plugin to create a grpc plugin server
type StoragePlugin ¶
type StoragePlugin interface { SpanReader() spanstore.Reader SpanWriter() spanstore.Writer DependencyReader() dependencystore.Reader }
StoragePlugin is the interface we're exposing as a plugin.