service

package
v3.0.0-alpha5.0...-c974331 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: LGPL-3.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const AttestationSubnetSubscriptions = 2

Variables

This section is empty.

Functions

func StartSentinelService

func StartSentinelService(
	cfg *sentinel.SentinelConfig,
	blockReader freezeblocks.BeaconSnapshotReader,
	blobStorage blob_storage.BlobStorage,
	indiciesDB kv.RwDB,
	srvCfg *ServerConfig,
	ethClock eth_clock.EthereumClock,
	forkChoiceReader forkchoice.ForkChoiceStorageReader,
	logger log.Logger) (sentinelrpc.SentinelClient, error)

func StartServe

func StartServe(
	server *SentinelServer,
	srvCfg *ServerConfig,
	creds credentials.TransportCredentials,
)

Types

type SentinelServer

type SentinelServer struct {
	sentinelrpc.UnimplementedSentinelServer
	// contains filtered or unexported fields
}

func NewSentinelServer

func NewSentinelServer(ctx context.Context, sentinel *sentinel.Sentinel, logger log.Logger) *SentinelServer

func (*SentinelServer) BanPeer

func (*SentinelServer) GetPeers

func (*SentinelServer) Identity

func (*SentinelServer) ListenToGossip

func (s *SentinelServer) ListenToGossip()

func (*SentinelServer) PeersInfo

func (*SentinelServer) PublishGossip

func (*SentinelServer) SendRequest

func (*SentinelServer) SetStatus

func (*SentinelServer) SetSubscribeExpiry

func (*SentinelServer) SubscribeGossip

type ServerConfig

type ServerConfig struct {
	Network       string
	Addr          string
	Creds         credentials.TransportCredentials
	InitialStatus *cltypes.Status
}

Jump to

Keyboard shortcuts

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