Help us shape the future of Go! Take the 2026 Go Developer Survey

system

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 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) ChainName added in v0.4.1

func (s *Service) ChainName() string

ChainName returns the chain name defined in genesis.json

func (*Service) ChainType added in v0.3.0

func (s *Service) ChainType() string

ChainType returns the system's chain type

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 (*Service) Start() error

Start implements Service interface

func (*Service) Stop

func (*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