system

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2021 License: LGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service struct to hold rpc service data

func NewService

func NewService(si *types.SystemInfo, gd *genesis.Data) *Service

NewService create a new instance of Service

func (*Service) ChainType added in v0.3.0

func (s *Service) ChainType() string

ChainType returns the system's chain type

func (*Service) NodeName

func (s *Service) NodeName() string

NodeName returns the nodeName (chain name)

func (*Service) Properties

func (s *Service) Properties() map[string]interface{}

Properties Get a custom set of properties as a JSON object, defined in the chain spec.

func (*Service) Start

func (s *Service) Start() error

Start implements Service interface

func (*Service) Stop

func (s *Service) Stop() error

Stop implements Service interface

func (*Service) SystemName

func (s *Service) SystemName() string

SystemName returns the app name

func (*Service) SystemVersion

func (s *Service) SystemVersion() string

SystemVersion returns the app version

Jump to

Keyboard shortcuts

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