Documentation
ΒΆ
Index ΒΆ
- Constants
- Variables
- func HCLogLogger(l logger.Logger) hclog.Logger
- func ManagedGRPCClientConfig(clientConfig *plugin.ClientConfig, c BrokerConfig) *plugin.ClientConfig
- func NewLogger() (logger.Logger, error)
- func PluginCCIPCommitHandshakeConfig() plugin.HandshakeConfig
- func PluginCCIPExecutionHandshakeConfig() plugin.HandshakeConfig
- func PluginKeystoreHandshakeConfig() plugin.HandshakeConfig
- func PluginMedianHandshakeConfig() plugin.HandshakeConfig
- func PluginMercuryHandshakeConfig() plugin.HandshakeConfig
- func PluginRelayerHandshakeConfig() plugin.HandshakeConfig
- func SetupTracing(config TracingConfig) error
- func StandardCapabilitiesHandshakeConfig() plugin.HandshakeConfig
- type BrokerConfig
- type CommitFactoryService
- type CommitLoop
- type ContextValues
- type EnvConfig
- type ErrorLog
- type ExecutionFactoryService
- type ExecutionLoop
- type GRPCOpts
- type GRPCPluginKeystore
- type GRPCPluginMedian
- type GRPCPluginMercury
- type GRPCPluginRelayer
- type Keystore
- type KeystoreService
- type LogMessageExtraArgs
- type MedianService
- type MercuryV1Service
- type MercuryV2Service
- type MercuryV3Service
- type MercuryV4Service
- type OtelAttributes
- type Plugin
- type PluginMedian
- type PluginRelayer
- type PromServer
- type PromServerOpts
- type ProviderServer
- type Relayer
- type RelayerService
- func (r *RelayerService) GetChainStatus(ctx context.Context) (types.ChainStatus, error)
- func (r *RelayerService) LatestHead(ctx context.Context) (types.Head, error)
- func (r *RelayerService) ListNodeStatuses(ctx context.Context, pageSize int32, pageToken string) (nodes []types.NodeStatus, nextPageToken string, total int, err error)
- func (r *RelayerService) NewConfigProvider(ctx context.Context, args types.RelayArgs) (types.ConfigProvider, error)
- func (r *RelayerService) NewContractReader(ctx context.Context, contractReaderConfig []byte) (types.ContractReader, error)
- func (r *RelayerService) NewContractWriter(ctx context.Context, contractWriterConfig []byte) (types.ContractWriter, error)
- func (r *RelayerService) NewLLOProvider(ctx context.Context, rargs types.RelayArgs, pargs types.PluginArgs) (types.LLOProvider, error)
- func (r *RelayerService) NewPluginProvider(ctx context.Context, rargs types.RelayArgs, pargs types.PluginArgs) (types.PluginProvider, error)
- func (r *RelayerService) Transact(ctx context.Context, from, to string, amount *big.Int, balanceCheck bool) error
- type ReportingPluginFactory
- type Server
- type StandardCapabilities
- type StandardCapabilitiesLoop
- func (p *StandardCapabilitiesLoop) ClientConfig() *plugin.ClientConfig
- func (p *StandardCapabilitiesLoop) GRPCClient(_ context.Context, broker *plugin.GRPCBroker, conn *grpc.ClientConn) (interface{}, error)
- func (p *StandardCapabilitiesLoop) GRPCServer(broker *plugin.GRPCBroker, server *grpc.Server) error
- type StandardCapabilitiesService
- type TracingConfig
Constants ΒΆ
const CCIPCommitLOOPName = "ccip_commit"
CCIPCommitLOOPName is the name for types.CCIPCommitFactoryGenerator/[NewCommitLOOP].
const CCIPExecutionLOOPName = "ccip_execution"
CCIPExecutionLOOPName is the name for types.CCIPExecutionFactoryGenerator/[NewExecutionLOOP].
const PluginKeystoreName = "keystore"
PluginKeystoreName is the name for keystore.Keystore
const PluginMedianName = "median"
PluginMedianName is the name for types.PluginMedian/[NewGRPCPluginMedian].
const PluginMercuryName = "mercury"
PluginMercurynName is the name for types.PluginMercury/[NewGRPCPluginMercury].
const PluginRelayerName = "relayer"
PluginRelayerName is the name for types.PluginRelayer/[NewGRPCPluginRelayer].
const PluginStandardCapabilitiesName = "standardcapabilities"
Variables ΒΆ
Functions ΒΆ
func HCLogLogger ΒΆ
HCLogLogger returns an hclog.Logger backed by the given logger.Logger.
func ManagedGRPCClientConfig ΒΆ
func ManagedGRPCClientConfig(clientConfig *plugin.ClientConfig, c BrokerConfig) *plugin.ClientConfig
ManagedGRPCClientConfig return a Managed plugin and set grpc config values from the BrokerConfig. Note: managed plugins shutdown when the parent process exits. We may want to change this behavior in the future to enable host process restarts without restarting the plugin. To do that we would also need supply the appropriate ReattachConfig to the plugin.ClientConfig.
func NewLogger ΒΆ
NewLogger returns a new logger.Logger configured to encode hclog compatible JSON.
func PluginCCIPCommitHandshakeConfig ΒΆ
func PluginCCIPCommitHandshakeConfig() plugin.HandshakeConfig
func PluginCCIPExecutionHandshakeConfig ΒΆ
func PluginCCIPExecutionHandshakeConfig() plugin.HandshakeConfig
func PluginKeystoreHandshakeConfig ΒΆ added in v0.4.0
func PluginKeystoreHandshakeConfig() plugin.HandshakeConfig
func PluginMedianHandshakeConfig ΒΆ
func PluginMedianHandshakeConfig() plugin.HandshakeConfig
func PluginMercuryHandshakeConfig ΒΆ
func PluginMercuryHandshakeConfig() plugin.HandshakeConfig
func PluginRelayerHandshakeConfig ΒΆ
func PluginRelayerHandshakeConfig() plugin.HandshakeConfig
func SetupTracing ΒΆ
func SetupTracing(config TracingConfig) error
SetupTracing initializes open telemetry with the provided config. It sets the global trace provider and opens a connection to the configured collector.
func StandardCapabilitiesHandshakeConfig ΒΆ
func StandardCapabilitiesHandshakeConfig() plugin.HandshakeConfig
Types ΒΆ
type BrokerConfig ΒΆ
type BrokerConfig = net.BrokerConfig
type CommitFactoryService ΒΆ
type CommitFactoryService struct {
goplugin.PluginService[*CommitLoop, types.ReportingPluginFactory]
}
CommitFactoryService is a types.Service that maintains an internal types.CCIPCommitFactoryGenerator.
func NewCommitService ΒΆ
func NewCommitService(lggr logger.Logger, grpcOpts GRPCOpts, cmd func() *exec.Cmd, provider types.CCIPCommitProvider) *CommitFactoryService
NewCommitService returns a new *CommitFactoryService. cmd must return a new exec.Cmd each time it is called.
func (*CommitFactoryService) NewReportingPlugin ΒΆ
func (m *CommitFactoryService) NewReportingPlugin(ctx context.Context, config ocrtypes.ReportingPluginConfig) (ocrtypes.ReportingPlugin, ocrtypes.ReportingPluginInfo, error)
type CommitLoop ΒΆ
type CommitLoop struct {
plugin.NetRPCUnsupportedPlugin
BrokerConfig
PluginServer types.CCIPCommitFactoryGenerator
// contains filtered or unexported fields
}
func (*CommitLoop) ClientConfig ΒΆ
func (p *CommitLoop) ClientConfig() *plugin.ClientConfig
func (*CommitLoop) GRPCClient ΒΆ
func (p *CommitLoop) GRPCClient(_ context.Context, broker *plugin.GRPCBroker, conn *grpc.ClientConn) (interface{}, error)
GRPCClient implements plugin.GRPCPlugin and returns the pluginClient types.CCIPCommitFactoryGenerator, updated with the new broker and conn.
func (*CommitLoop) GRPCServer ΒΆ
func (p *CommitLoop) GRPCServer(broker *plugin.GRPCBroker, server *grpc.Server) error
type ContextValues ΒΆ
ContextValues is a helper for passing values via a context.Context.
func (*ContextValues) Args ΒΆ
func (v *ContextValues) Args() (a []any)
Args returns a slice of args to pass to logger.Logger.With.
func (*ContextValues) ContextWithValues ΒΆ
func (v *ContextValues) ContextWithValues(ctx context.Context) context.Context
ContextWithValues returns a context.Context with values set from v.
func (*ContextValues) SetValues ΒΆ
func (v *ContextValues) SetValues(ctx context.Context)
SetValues sets v to values from the ctx.
type EnvConfig ΒΆ
type EnvConfig struct {
DatabaseURL *url.URL
PrometheusPort int
TracingEnabled bool
TracingCollectorTarget string
TracingSamplingRatio float64
TracingTLSCertPath string
TracingAttributes map[string]string
TelemetryEnabled bool
TelemetryEndpoint string
TelemetryInsecureConnection bool
TelemetryCACertFile string
TelemetryAttributes OtelAttributes
TelemetryTraceSampleRatio float64
TelemetryAuthHeaders map[string]string
TelemetryAuthPubKeyHex string
TelemetryEmitterBatchProcessor bool
TelemetryEmitterExportTimeout time.Duration
}
EnvConfig is the configuration between the application and the LOOP executable. The values are fully resolved and static and passed via the environment.
type ExecutionFactoryService ΒΆ
type ExecutionFactoryService struct {
goplugin.PluginService[*ExecutionLoop, types.ReportingPluginFactory]
}
ExecutionFactoryService is a types.Service that maintains an internal types.CCIPExecutionFactoryGenerator.
func NewExecutionService ΒΆ
func NewExecutionService(lggr logger.Logger, grpcOpts GRPCOpts, cmd func() *exec.Cmd, srcProvider types.CCIPExecProvider, dstProvider types.CCIPExecProvider, srcChain uint32, dstChain uint32, sourceTokenAddress string) *ExecutionFactoryService
NewExecutionService returns a new *ExecutionFactoryService. cmd must return a new exec.Cmd each time it is called.
func (*ExecutionFactoryService) NewReportingPlugin ΒΆ
func (m *ExecutionFactoryService) NewReportingPlugin(ctx context.Context, config ocrtypes.ReportingPluginConfig) (ocrtypes.ReportingPlugin, ocrtypes.ReportingPluginInfo, error)
type ExecutionLoop ΒΆ
type ExecutionLoop struct {
plugin.NetRPCUnsupportedPlugin
BrokerConfig
PluginServer types.CCIPExecutionFactoryGenerator
// contains filtered or unexported fields
}
func (*ExecutionLoop) ClientConfig ΒΆ
func (p *ExecutionLoop) ClientConfig() *plugin.ClientConfig
func (*ExecutionLoop) GRPCClient ΒΆ
func (p *ExecutionLoop) GRPCClient(_ context.Context, broker *plugin.GRPCBroker, conn *grpc.ClientConn) (interface{}, error)
GRPCClient implements plugin.GRPCPlugin and returns the pluginClient types.CCIPExecutionFactoryGenerator, updated with the new broker and conn.
func (*ExecutionLoop) GRPCServer ΒΆ
func (p *ExecutionLoop) GRPCServer(broker *plugin.GRPCBroker, server *grpc.Server) error
type GRPCOpts ΒΆ
func NewGRPCOpts ΒΆ
func NewGRPCOpts(registerer prometheus.Registerer) GRPCOpts
NewGRPCOpts initializes open telemetry and returns GRPCOpts with telemetry interceptors. It is called from the host and each plugin - intended as there is bidirectional communication
type GRPCPluginKeystore ΒΆ added in v0.4.0
type GRPCPluginKeystore struct {
plugin.NetRPCUnsupportedPlugin
BrokerConfig
PluginServer keystorepb.GRPCService
// contains filtered or unexported fields
}
func (*GRPCPluginKeystore) ClientConfig ΒΆ added in v0.4.0
func (p *GRPCPluginKeystore) ClientConfig() *plugin.ClientConfig
func (*GRPCPluginKeystore) GRPCClient ΒΆ added in v0.4.0
func (p *GRPCPluginKeystore) GRPCClient(_ context.Context, broker *plugin.GRPCBroker, conn *grpc.ClientConn) (interface{}, error)
func (*GRPCPluginKeystore) GRPCServer ΒΆ added in v0.4.0
func (p *GRPCPluginKeystore) GRPCServer(broker *plugin.GRPCBroker, server *grpc.Server) error
type GRPCPluginMedian ΒΆ
type GRPCPluginMedian struct {
plugin.NetRPCUnsupportedPlugin
BrokerConfig
PluginServer core.PluginMedian
// contains filtered or unexported fields
}
func (*GRPCPluginMedian) ClientConfig ΒΆ
func (p *GRPCPluginMedian) ClientConfig() *plugin.ClientConfig
func (*GRPCPluginMedian) GRPCClient ΒΆ
func (p *GRPCPluginMedian) GRPCClient(_ context.Context, broker *plugin.GRPCBroker, conn *grpc.ClientConn) (interface{}, error)
GRPCClient implements plugin.GRPCPlugin and returns the pluginClient types.PluginMedian, updated with the new broker and conn.
func (*GRPCPluginMedian) GRPCServer ΒΆ
func (p *GRPCPluginMedian) GRPCServer(broker *plugin.GRPCBroker, server *grpc.Server) error
type GRPCPluginMercury ΒΆ
type GRPCPluginMercury struct {
plugin.NetRPCUnsupportedPlugin
BrokerConfig
PluginServer types.PluginMercury
// contains filtered or unexported fields
}
func (*GRPCPluginMercury) ClientConfig ΒΆ
func (p *GRPCPluginMercury) ClientConfig() *plugin.ClientConfig
func (*GRPCPluginMercury) GRPCClient ΒΆ
func (p *GRPCPluginMercury) GRPCClient(_ context.Context, broker *plugin.GRPCBroker, conn *grpc.ClientConn) (interface{}, error)
GRPCClient implements plugin.GRPCPlugin and returns the pluginClient types.PluginMercury, updated with the new broker and conn.
func (*GRPCPluginMercury) GRPCServer ΒΆ
func (p *GRPCPluginMercury) GRPCServer(broker *plugin.GRPCBroker, server *grpc.Server) error
type GRPCPluginRelayer ΒΆ
type GRPCPluginRelayer struct {
plugin.NetRPCUnsupportedPlugin
BrokerConfig
PluginServer PluginRelayer
// contains filtered or unexported fields
}
GRPCPluginRelayer implements plugin.GRPCPlugin for types.PluginRelayer.
func (*GRPCPluginRelayer) ClientConfig ΒΆ
func (p *GRPCPluginRelayer) ClientConfig() *plugin.ClientConfig
func (*GRPCPluginRelayer) GRPCClient ΒΆ
func (p *GRPCPluginRelayer) GRPCClient(_ context.Context, broker *plugin.GRPCBroker, conn *grpc.ClientConn) (interface{}, error)
func (*GRPCPluginRelayer) GRPCServer ΒΆ
func (p *GRPCPluginRelayer) GRPCServer(broker *plugin.GRPCBroker, server *grpc.Server) error
type KeystoreService ΒΆ added in v0.4.0
type KeystoreService struct {
goplugin.PluginService[*GRPCPluginKeystore, keystore.GRPCService]
}
KeystoreService is a types.Service that maintains an internal [keystore.Keystore].
func NewKeystoreService ΒΆ added in v0.4.0
type LogMessageExtraArgs ΒΆ
type LogMessageExtraArgs struct {
Key string `json:"key"`
Value interface{} `json:"value"`
}
LogMessageExtraArgs is a key value pair within the Output payload
type MedianService ΒΆ
type MedianService struct {
goplugin.PluginService[*GRPCPluginMedian, types.ReportingPluginFactory]
}
MedianService is a types.Service that maintains an internal types.PluginMedian.
func NewMedianService ΒΆ
func NewMedianService(lggr logger.Logger, grpcOpts GRPCOpts, cmd func() *exec.Cmd, provider types.MedianProvider, contractAddress string, dataSource, juelsPerFeeCoin, gasPriceSubunits median.DataSource, errorLog core.ErrorLog) *MedianService
NewMedianService returns a new *MedianService. cmd must return a new exec.Cmd each time it is called.
func (*MedianService) NewReportingPlugin ΒΆ
func (m *MedianService) NewReportingPlugin(ctx context.Context, config ocrtypes.ReportingPluginConfig) (ocrtypes.ReportingPlugin, ocrtypes.ReportingPluginInfo, error)
type MercuryV1Service ΒΆ
type MercuryV1Service struct {
goplugin.PluginService[*GRPCPluginMercury, types.MercuryPluginFactory]
}
MercuryV1Service is a types.Service that maintains an internal types.PluginMedian.
func NewMercuryV1Service ΒΆ
func NewMercuryV1Service(lggr logger.Logger, grpcOpts GRPCOpts, cmd func() *exec.Cmd, provider types.MercuryProvider, dataSource mercury_v1_types.DataSource) *MercuryV1Service
NewMercuryV1Service returns a new *MercuryV1Service. cmd must return a new exec.Cmd each time it is called.
func (*MercuryV1Service) NewMercuryPlugin ΒΆ
func (m *MercuryV1Service) NewMercuryPlugin(ctx context.Context, config ocr3types.MercuryPluginConfig) (ocr3types.MercuryPlugin, ocr3types.MercuryPluginInfo, error)
type MercuryV2Service ΒΆ
type MercuryV2Service struct {
goplugin.PluginService[*GRPCPluginMercury, types.MercuryPluginFactory]
}
MercuryV2Service is a types.Service that maintains an internal types.PluginMedian.
func NewMercuryV2Service ΒΆ
func NewMercuryV2Service(lggr logger.Logger, grpcOpts GRPCOpts, cmd func() *exec.Cmd, provider types.MercuryProvider, dataSource mercury_v2_types.DataSource) *MercuryV2Service
NewMercuryV2Service returns a new *MercuryV2Service. cmd must return a new exec.Cmd each time it is called.
func (*MercuryV2Service) NewMercuryPlugin ΒΆ
func (m *MercuryV2Service) NewMercuryPlugin(ctx context.Context, config ocr3types.MercuryPluginConfig) (ocr3types.MercuryPlugin, ocr3types.MercuryPluginInfo, error)
type MercuryV3Service ΒΆ
type MercuryV3Service struct {
goplugin.PluginService[*GRPCPluginMercury, types.MercuryPluginFactory]
}
MercuryV3Service is a types.Service that maintains an internal types.PluginMedian.
func NewMercuryV3Service ΒΆ
func NewMercuryV3Service(lggr logger.Logger, grpcOpts GRPCOpts, cmd func() *exec.Cmd, provider types.MercuryProvider, dataSource mercury_v3_types.DataSource) *MercuryV3Service
NewMercuryV3Service returns a new *MercuryV3Service. cmd must return a new exec.Cmd each time it is called.
func (*MercuryV3Service) NewMercuryPlugin ΒΆ
func (m *MercuryV3Service) NewMercuryPlugin(ctx context.Context, config ocr3types.MercuryPluginConfig) (ocr3types.MercuryPlugin, ocr3types.MercuryPluginInfo, error)
type MercuryV4Service ΒΆ added in v0.2.2
type MercuryV4Service struct {
goplugin.PluginService[*GRPCPluginMercury, types.MercuryPluginFactory]
}
MercuryV4Service is a types.Service that maintains an internal types.PluginMedian.
func NewMercuryV4Service ΒΆ added in v0.2.2
func NewMercuryV4Service(lggr logger.Logger, grpcOpts GRPCOpts, cmd func() *exec.Cmd, provider types.MercuryProvider, dataSource mercury_v4_types.DataSource) *MercuryV4Service
NewMercuryV4Service returns a new *MercuryV4Service. cmd must return a new exec.Cmd each time it is called.
func (*MercuryV4Service) NewMercuryPlugin ΒΆ added in v0.2.2
func (m *MercuryV4Service) NewMercuryPlugin(ctx context.Context, config ocr3types.MercuryPluginConfig) (ocr3types.MercuryPlugin, ocr3types.MercuryPluginInfo, error)
type OtelAttributes ΒΆ added in v0.2.2
func (OtelAttributes) AsStringAttributes ΒΆ added in v0.2.2
func (a OtelAttributes) AsStringAttributes() (attributes []attribute.KeyValue)
type Plugin ΒΆ
Plugin is a base layer for plugins to easily manage sub-[types.Service]s. Useful for implementing PluginRelayer and PluginMedian.
func (*Plugin) HealthReport ΒΆ
func (*Plugin) SubService ΒΆ
type PluginRelayer ΒΆ
type PluginRelayer = looptypes.PluginRelayer
type PromServer ΒΆ
type PromServer struct {
// contains filtered or unexported fields
}
func NewPromServer ΒΆ
func NewPromServer(port int, lggr logger.Logger) *PromServer
func (*PromServer) Close ΒΆ
func (p *PromServer) Close() error
Close shuts down the underlying HTTP server. See http.Server.Close for details
func (*PromServer) Start ΒΆ
func (p *PromServer) Start() error
Start starts HTTP server on specified port to handle metrics requests
type PromServerOpts ΒΆ
func (PromServerOpts) New ΒΆ
func (o PromServerOpts) New(port int, lggr logger.Logger) *PromServer
type ProviderServer ΒΆ
type ProviderServer interface {
Start(context.Context) error
Close() error
GetConn() (grpc.ClientConnInterface, error)
}
func NewProviderServer ΒΆ
func NewProviderServer(p types.PluginProvider, pType types.OCR2PluginType, lggr logger.Logger) (ProviderServer, error)
type RelayerService ΒΆ
type RelayerService struct {
goplugin.PluginService[*GRPCPluginRelayer, Relayer]
}
RelayerService is a types.Service that maintains an internal Relayer.
func NewRelayerService ΒΆ
func NewRelayerService(lggr logger.Logger, grpcOpts GRPCOpts, cmd func() *exec.Cmd, config string, keystore core.Keystore, capabilityRegistry core.CapabilitiesRegistry) *RelayerService
NewRelayerService returns a new *RelayerService. cmd must return a new exec.Cmd each time it is called.
func (*RelayerService) GetChainStatus ΒΆ
func (r *RelayerService) GetChainStatus(ctx context.Context) (types.ChainStatus, error)
func (*RelayerService) LatestHead ΒΆ added in v0.2.2
func (*RelayerService) ListNodeStatuses ΒΆ
func (r *RelayerService) ListNodeStatuses(ctx context.Context, pageSize int32, pageToken string) (nodes []types.NodeStatus, nextPageToken string, total int, err error)
func (*RelayerService) NewConfigProvider ΒΆ
func (r *RelayerService) NewConfigProvider(ctx context.Context, args types.RelayArgs) (types.ConfigProvider, error)
func (*RelayerService) NewContractReader ΒΆ
func (r *RelayerService) NewContractReader(ctx context.Context, contractReaderConfig []byte) (types.ContractReader, error)
func (*RelayerService) NewContractWriter ΒΆ added in v0.4.0
func (r *RelayerService) NewContractWriter(ctx context.Context, contractWriterConfig []byte) (types.ContractWriter, error)
func (*RelayerService) NewLLOProvider ΒΆ
func (r *RelayerService) NewLLOProvider(ctx context.Context, rargs types.RelayArgs, pargs types.PluginArgs) (types.LLOProvider, error)
func (*RelayerService) NewPluginProvider ΒΆ
func (r *RelayerService) NewPluginProvider(ctx context.Context, rargs types.RelayArgs, pargs types.PluginArgs) (types.PluginProvider, error)
type ReportingPluginFactory ΒΆ
type ReportingPluginFactory = types.ReportingPluginFactory
Deprecated
type Server ΒΆ
type Server struct {
GRPCOpts GRPCOpts
Logger logger.SugaredLogger
// contains filtered or unexported fields
}
Server holds common plugin server fields.
func MustNewStartedServer ΒΆ
MustNewStartedServer returns a new started Server like NewStartedServer, but logs and exits in the event of error. The caller is responsible for calling Server.Stop().
func NewStartedServer ΒΆ
NewStartedServer returns a started Server. The caller is responsible for calling Server.Stop().
func (*Server) MustRegister ΒΆ
func (s *Server) MustRegister(c services.HealthReporter)
MustRegister registers the HealthReporter with services.HealthChecker, or exits upon failure.
type StandardCapabilities ΒΆ
type StandardCapabilities interface {
services.Service
Initialise(
ctx context.Context,
config string,
telemetryService core.TelemetryService,
store core.KeyValueStore,
capabilityRegistry core.CapabilitiesRegistry,
errorLog core.ErrorLog,
pipelineRunner core.PipelineRunnerService,
relayerSet core.RelayerSet,
oracleFactory core.OracleFactory,
) error
Infos(ctx context.Context) ([]capabilities.CapabilityInfo, error)
}
type StandardCapabilitiesLoop ΒΆ
type StandardCapabilitiesLoop struct {
Logger logger.Logger
plugin.NetRPCUnsupportedPlugin
BrokerConfig
PluginServer StandardCapabilities
// contains filtered or unexported fields
}
func (*StandardCapabilitiesLoop) ClientConfig ΒΆ
func (p *StandardCapabilitiesLoop) ClientConfig() *plugin.ClientConfig
func (*StandardCapabilitiesLoop) GRPCClient ΒΆ
func (p *StandardCapabilitiesLoop) GRPCClient(_ context.Context, broker *plugin.GRPCBroker, conn *grpc.ClientConn) (interface{}, error)
func (*StandardCapabilitiesLoop) GRPCServer ΒΆ
func (p *StandardCapabilitiesLoop) GRPCServer(broker *plugin.GRPCBroker, server *grpc.Server) error
type StandardCapabilitiesService ΒΆ
type StandardCapabilitiesService struct {
goplugin.PluginService[*StandardCapabilitiesLoop, StandardCapabilities]
}
type TracingConfig ΒΆ
type TracingConfig struct {
// NodeAttributes are the attributes to attach to traces.
NodeAttributes OtelAttributes
// Enables tracing; requires a collector to be provided
Enabled bool
// Collector is the address of the OTEL collector to send traces to.
CollectorTarget string
// SamplingRatio is the ratio of traces to sample. 1.0 means sample all traces.
SamplingRatio float64
// TLSCertPath is the path to the TLS certificate to use when connecting to the collector.
TLSCertPath string
// OnDialError is called when the dialer fails, providing an opportunity to log.
OnDialError func(error)
// Auth
AuthHeaders map[string]string
}
func (TracingConfig) Attributes ΒΆ added in v0.2.2
func (config TracingConfig) Attributes() []attribute.KeyValue
func (TracingConfig) NewSpanExporter ΒΆ added in v0.2.2
func (config TracingConfig) NewSpanExporter() (sdktrace.SpanExporter, error)
Source Files
ΒΆ
Directories
ΒΆ
| Path | Synopsis |
|---|---|
|
adapters
|
|
|
internal
|
|
|
pb/mercury/v2
NOTE: the relative paths in the proto_path are to ensure we find common utilities, like BigInt
|
NOTE: the relative paths in the proto_path are to ensure we find common utilities, like BigInt |
|
test/cmd
command
|
|