coordinator

package
v0.0.169 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2024 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceType = "coordinator"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	xatu.UnimplementedCoordinatorServer
	// contains filtered or unexported fields
}

func NewClient

func NewClient(ctx context.Context, log logrus.FieldLogger, conf *Config, p *persistence.Client, geoipProvider geoip.Provider) (*Client, error)

func (*Client) CreateNodeRecords

func (*Client) GetCannonLocation

func (*Client) Start

func (c *Client) Start(ctx context.Context, grpcServer *grpc.Server) error

func (*Client) Stop

func (c *Client) Stop(ctx context.Context) error

type Config

type Config struct {
	Enabled    bool        `yaml:"enabled" default:"false"`
	NodeRecord node.Config `yaml:"nodeRecord"`
}

func (*Config) Validate

func (c *Config) Validate() error

type Metrics

type Metrics struct {
	// contains filtered or unexported fields
}

func NewMetrics

func NewMetrics(namespace string) *Metrics

func (*Metrics) AddExecutionNodeRecordStatusReceived

func (m *Metrics) AddExecutionNodeRecordStatusReceived(count int, sentryID, result, networkID, forkIDHash string)

func (*Metrics) AddNodeRecordReceived

func (m *Metrics) AddNodeRecordReceived(count int, sentryID string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL