srv

package
v0.0.0-...-cd2fe80 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2025 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name        = "lab.ethpandaops.io"
	ServiceName = "server"
)

Variables

View Source
var (
	QualifiedName = fmt.Sprintf("%s.%s", ServiceName, Name)
)

Functions

This section is empty.

Types

type Config

type Config struct {
	LogLevel      string                `yaml:"logLevel" default:"info"`
	Server        *grpc.Config          `yaml:"grpc"`
	Storage       *storage.Config       `yaml:"storage"`
	Cache         *cache.Config         `yaml:"cache"`
	Geolocation   *geolocation.Config   `yaml:"geolocation"`
	XatuCBT       *xatu_cbt.Config      `yaml:"xatu_cbt"`
	Cartographoor *cartographoor.Config `yaml:"cartographoor"`
	Experiments   *experiments.Config   `yaml:"experiments"`
}

func (*Config) Validate

func (x *Config) Validate() error

type NetworkDataAdapter

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

NetworkDataAdapter implements wallclock.NetworkDataProvider using cartographoor and xatu_cbt config

func NewNetworkDataAdapter

func NewNetworkDataAdapter(cartographoorService *cartographoor.Service, xatuCBTConfig *xatu_cbt.Config) *NetworkDataAdapter

NewNetworkDataAdapter creates a new NetworkDataAdapter

func (*NetworkDataAdapter) GetNetworkGenesis

func (a *NetworkDataAdapter) GetNetworkGenesis(networkName string) (time.Time, error)

GetNetworkGenesis returns the genesis time for a network from xatu_cbt config override or cartographoor

type Service

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

Service represents the srv service. It glues together all the sub-services and the gRPC server.

func New

func New(config *Config) (*Service, error)

New creates a new srv service

func (*Service) Start

func (s *Service) Start(ctx context.Context) error

Start starts the sRPC server and blocks until the context is canceled or an error occurs.

Directories

Path Synopsis
internal
proto
lab
xatu_cbt/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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