synctester

package
v1.16.13 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2026 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const ELSyncActiveKey = "el_sync_active"

Variables

View Source
var ErrInvalidParams = errors.New("invalid param")
View Source
var ErrInvalidSessionIDFormat = errors.New("invalid UUID")

Functions

func IsValidSessionID

func IsValidSessionID(sessionID string) error

func Main

func Main(version string, fn MainFn) cliapp.LifecycleAction

Main is the entrypoint into the service. This method returns a cliapp.LifecycleAction, to create an op-service CLI-lifecycle-managed service with.

Types

type MainFn

type MainFn func(ctx context.Context, cfg *config.Config, logger log.Logger) (cliapp.Lifecycle, error)

type Service

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

func FromConfig

func FromConfig(ctx context.Context, cfg *config.Config, logger log.Logger) (*Service, error)

func (*Service) RPC

func (s *Service) RPC() string

func (*Service) Start

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

func (*Service) Stop

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

func (*Service) Stopped

func (s *Service) Stopped() bool

func (*Service) SyncTesterRPC

func (s *Service) SyncTesterRPC(chainID eth.ChainID, withSessionID bool) string

func (*Service) SyncTesterRPCPath

func (s *Service) SyncTesterRPCPath(chainID eth.ChainID, withSessionID bool) string

func (*Service) SyncTesters

func (s *Service) SyncTesters() map[sttypes.SyncTesterID]eth.ChainID

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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