service

package
v0.0.0-...-ab12051 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2020 License: GPL-3.0 Imports: 38 Imported by: 0

Documentation

Overview

Package service defines the service used to retrieve slashings proofs and feed attestations and block headers into the slasher db.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Port           int
	CertFlag       string
	KeyFlag        string
	SlasherDb      *kv.Store
	BeaconProvider string
	BeaconCert     string
}

Config options for the slasher server.

type Service

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

Service defining an RPC server for the slasher service.

func NewRPCService

func NewRPCService(cfg *Config, ctx *cli.Context) (*Service, error)

NewRPCService creates a new instance of a struct implementing the SlasherService interface.

func (*Service) Close

func (s *Service) Close()

Close handles graceful shutdown of the system.

func (*Service) Start

func (s *Service) Start()

Start the gRPC server.

func (*Service) Status

func (s *Service) Status() (bool, error)

Status returns nil, credentialError or fail status.

func (*Service) Stop

func (s *Service) Stop() error

Stop the service.

Jump to

Keyboard shortcuts

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