service

package
v0.0.0-...-ff78b6e Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: GPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartSentinelService

func StartSentinelService(cfg *sentinel.SentinelConfig, db persistence.RawBeaconBlockChain, srvCfg *ServerConfig, creds credentials.TransportCredentials, initialStatus *cltypes.Status, 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) GetPeersStatistics

func (s *SentinelServer) GetPeersStatistics() map[string]*diagnostics.PeerStatistics

func (*SentinelServer) ListenToGossip

func (s *SentinelServer) ListenToGossip()

func (*SentinelServer) PublishGossip

func (*SentinelServer) SendRequest

func (*SentinelServer) SetStatus

func (*SentinelServer) SubscribeGossip

type ServerConfig

type ServerConfig struct {
	Network string
	Addr    string
}

Jump to

Keyboard shortcuts

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