Documentation
      ¶
    
    
  
    
  
    Index ¶
- func RegisterPluginMedianServer(server *grpc.Server, broker Broker, brokerCfg BrokerConfig, impl PluginMedian) error
 - func RegisterPluginRelayerServer(server *grpc.Server, broker Broker, brokerCfg BrokerConfig, impl PluginRelayer) error
 - type Broker
 - type BrokerConfig
 - type ErrConfigDigestLen
 - type ErrConnAccept
 - type ErrConnDial
 - type ErrUint8Bounds
 - type ErrorLog
 - type GRPCOpts
 - type Keystore
 - type PluginMedian
 - type PluginMedianClient
 - func (s PluginMedianClient) Close() error
 - func (s PluginMedianClient) HealthReport() map[string]error
 - func (s PluginMedianClient) Name() string
 - func (m *PluginMedianClient) NewMedianFactory(ctx context.Context, provider types.MedianProvider, ...) (ReportingPluginFactory, error)
 - func (s PluginMedianClient) Ready() error
 - func (p PluginMedianClient) Refresh(broker Broker, conn *grpc.ClientConn)
 - func (s PluginMedianClient) Start(ctx context.Context) error
 
- type PluginRelayer
 - type PluginRelayerClient
 - type Relayer
 - type ReportingPluginFactory
 
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterPluginMedianServer ¶
func RegisterPluginMedianServer(server *grpc.Server, broker Broker, brokerCfg BrokerConfig, impl PluginMedian) error
func RegisterPluginRelayerServer ¶
func RegisterPluginRelayerServer(server *grpc.Server, broker Broker, brokerCfg BrokerConfig, impl PluginRelayer) error
Types ¶
type Broker ¶
type Broker interface {
	Accept(id uint32) (net.Listener, error)
	DialWithOptions(id uint32, opts ...grpc.DialOption) (conn *grpc.ClientConn, err error)
	NextId() uint32
}
    Broker is a subset of the methods exported by *plugin.GRPCBroker.
type BrokerConfig ¶
BrokerConfig holds Broker configuration fields.
type ErrConfigDigestLen ¶
type ErrConfigDigestLen int
func (ErrConfigDigestLen) Error ¶
func (e ErrConfigDigestLen) Error() string
type ErrConnAccept ¶
func (ErrConnAccept) Error ¶
func (e ErrConnAccept) Error() string
func (ErrConnAccept) Unwrap ¶
func (e ErrConnAccept) Unwrap() error
type ErrConnDial ¶
func (ErrConnDial) Error ¶
func (e ErrConnDial) Error() string
func (ErrConnDial) Unwrap ¶
func (e ErrConnDial) Unwrap() error
type ErrUint8Bounds ¶
func (ErrUint8Bounds) Error ¶
func (e ErrUint8Bounds) Error() string
type GRPCOpts ¶
type GRPCOpts struct {
	// Optionally include additional options when dialing a client.
	// Normally aligned with [plugin.ClientConfig.GRPCDialOptions].
	DialOpts []grpc.DialOption
	// Optionally override the default *grpc.Server constructor.
	// Normally aligned with [plugin.ServeConfig.GRPCServer].
	NewServer func([]grpc.ServerOption) *grpc.Server
}
    GRPCOpts has GRPC client and server options.
type PluginMedian ¶
type PluginMedian interface {
	NewMedianFactory(ctx context.Context, provider types.MedianProvider, dataSource, juelsPerFeeCoin median.DataSource, errorLog ErrorLog) (ReportingPluginFactory, error)
}
    type PluginMedianClient ¶
type PluginMedianClient struct {
	// contains filtered or unexported fields
}
    func NewPluginMedianClient ¶
func NewPluginMedianClient(broker Broker, brokerCfg BrokerConfig, conn *grpc.ClientConn) *PluginMedianClient
func (PluginMedianClient) HealthReport ¶
func (*PluginMedianClient) NewMedianFactory ¶
func (m *PluginMedianClient) NewMedianFactory(ctx context.Context, provider types.MedianProvider, dataSource, juelsPerFeeCoin median.DataSource, errorLog ErrorLog) (ReportingPluginFactory, error)
func (PluginMedianClient) Refresh ¶
func (p PluginMedianClient) Refresh(broker Broker, conn *grpc.ClientConn)
type PluginRelayer ¶
type PluginRelayerClient ¶
type PluginRelayerClient struct {
	// contains filtered or unexported fields
}
    func NewPluginRelayerClient ¶
func NewPluginRelayerClient(broker Broker, brokerCfg BrokerConfig, conn *grpc.ClientConn) *PluginRelayerClient
func (*PluginRelayerClient) NewRelayer ¶
func (PluginRelayerClient) Refresh ¶
func (p PluginRelayerClient) Refresh(broker Broker, conn *grpc.ClientConn)
type Relayer ¶
type Relayer interface {
	types.Service
	NewConfigProvider(context.Context, types.RelayArgs) (types.ConfigProvider, error)
	NewMedianProvider(context.Context, types.RelayArgs, types.PluginArgs) (types.MedianProvider, error)
	NewMercuryProvider(context.Context, types.RelayArgs, types.PluginArgs) (types.MercuryProvider, error)
	ChainStatus(ctx context.Context, id string) (types.ChainStatus, error)
	ChainStatuses(ctx context.Context, offset, limit int) (chains []types.ChainStatus, count int, err error)
	NodeStatuses(ctx context.Context, offset, limit int, chainIDs ...string) (nodes []types.NodeStatus, count int, err error)
	SendTx(ctx context.Context, chainID, from, to string, amount *big.Int, balanceCheck bool) error
}
    Relayer extends [types.Relayer] and includes [context.Context]s.
type ReportingPluginFactory ¶
type ReportingPluginFactory interface {
	types.Service
	libocr.ReportingPluginFactory
}
    
      
      Source Files
      ¶
    
   Click to show internal directories. 
   Click to hide internal directories.