service

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2019 License: GPL-3.0 Imports: 22 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      string
	CertFlag  string
	KeyFlag   string
	SlasherDb *db.Store
}

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() 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