iserver

package
v0.0.0-...-376a440 Latest Latest
Warning

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

Go to latest
Published: May 10, 2020 License: LGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DebugServer

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

DebugServer is a http server for debug

func NewDebugServer

func NewDebugServer(conf *config.DebugConfig, p2p *p2p.NetService, blkCache blockcache.BlockCache, blkChain block.Chain) *DebugServer

NewDebugServer returns new debug server

func (*DebugServer) Start

func (d *DebugServer) Start() error

Start starts debug server

func (*DebugServer) Stop

func (d *DebugServer) Stop()

Stop stops debug server

type IServer

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

IServer is application for AIOU.

func New

func New(conf *config.Config) *IServer

New returns a iserver application

func (*IServer) Start

func (s *IServer) Start() error

Start starts iserver application.

func (*IServer) Stop

func (s *IServer) Stop()

Stop stops iserver application.

type Service

type Service interface {
	Start() error
	Stop()
}

Service defines APIs of resident goroutines.

Jump to

Keyboard shortcuts

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