rootsrv

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2019 License: GPL-3.0 Imports: 7 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 interface {
	Start()
	StopAndJoin()
	GetRoot(addr common.Address) (merkletree.Hash, error)
	SetRoot(hash merkletree.Hash)
}

type ServiceImpl

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

func New

func New(rootcommits *eth.Contract) *ServiceImpl

func (*ServiceImpl) GetRoot

func (s *ServiceImpl) GetRoot(addr common.Address) (merkletree.Hash, error)

func (*ServiceImpl) SetRoot

func (s *ServiceImpl) SetRoot(hash merkletree.Hash)

func (*ServiceImpl) Start

func (s *ServiceImpl) Start()

func (*ServiceImpl) StopAndJoin

func (s *ServiceImpl) StopAndJoin()

Jump to

Keyboard shortcuts

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