services

package
v0.0.0-...-c4e9093 Latest Latest
Warning

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

Go to latest
Published: May 19, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterServices

func RegisterServices(cs *context.ServiceContext) error

RegisterServices register services to chain context

Types

type ContractService

type ContractService struct {
	common.ServiceLifecycle
	// contains filtered or unexported fields
}

func NewContractService

func NewContractService(cfgFile string) (*ContractService, error)

func (*ContractService) Init

func (cs *ContractService) Init() error

func (*ContractService) Start

func (cs *ContractService) Start() error

func (*ContractService) Status

func (cs *ContractService) Status() int32

func (*ContractService) Stop

func (cs *ContractService) Stop() error

type LogService

type LogService struct {
	common.ServiceLifecycle
	// contains filtered or unexported fields
}

func NewLogService

func NewLogService(cfgFile string) *LogService

func (*LogService) Init

func (ls *LogService) Init() error

func (*LogService) Start

func (ls *LogService) Start() error

func (*LogService) Status

func (ls *LogService) Status() int32

func (*LogService) Stop

func (ls *LogService) Stop() error

type RPCService

type RPCService struct {
	common.ServiceLifecycle
	// contains filtered or unexported fields
}

func NewRPCService

func NewRPCService(cfgFile string, cs *ContractService) (*RPCService, error)

func (*RPCService) Init

func (rs *RPCService) Init() error

func (*RPCService) RPC

func (rs *RPCService) RPC() *rpc.RPC

func (*RPCService) Start

func (rs *RPCService) Start() error

func (*RPCService) Status

func (rs *RPCService) Status() int32

func (*RPCService) Stop

func (rs *RPCService) Stop() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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