Documentation ¶
Index ¶
- type Config
- type Coordinator
- func (c *Coordinator) CoordinateExecutionNodeRecords(ctx context.Context, records []*xatu.CoordinatedNodeRecord) (*xatu.CoordinateExecutionNodeRecordsResponse, error)
- func (c *Coordinator) HandleExecutionNodeRecordStatus(ctx context.Context, status *xatu.ExecutionNodeStatus) error
- func (c *Coordinator) Start(ctx context.Context) error
- func (c *Coordinator) Stop(ctx context.Context) error
- type Metrics
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Address string `yaml:"address"` Headers map[string]string `yaml:"headers"` TLS bool `yaml:"tls" default:"false"` NetworkIds []uint64 `yaml:"networkIds"` ForkIDHashes []string `yaml:"forkIdHashes"` Capabilities []string `yaml:"capabilities"` MaxPeers uint32 `yaml:"maxPeers" default:"100"` }
type Coordinator ¶
type Coordinator struct {
// contains filtered or unexported fields
}
func NewCoordinator ¶
func NewCoordinator(name string, config *Config, log logrus.FieldLogger) (*Coordinator, error)
func (*Coordinator) CoordinateExecutionNodeRecords ¶
func (c *Coordinator) CoordinateExecutionNodeRecords(ctx context.Context, records []*xatu.CoordinatedNodeRecord) (*xatu.CoordinateExecutionNodeRecordsResponse, error)
func (*Coordinator) HandleExecutionNodeRecordStatus ¶
func (c *Coordinator) HandleExecutionNodeRecordStatus(ctx context.Context, status *xatu.ExecutionNodeStatus) error
Click to show internal directories.
Click to hide internal directories.