service

package
v0.0.0-...-92d349b Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartSentinelService

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

func (*SentinelServer) BanPeer

func (*SentinelServer) GetPeers

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