manager

package
v0.0.0-...-f069fcf Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

func NewManager

func NewManager(addr string, pm peermgr.PeerManager, Mgr appchainmgr.AppchainMgr, rule *rulemgr.RuleMgr, logger logrus.FieldLogger) (*Manager, error)

func (*Manager) Start

func (mgr *Manager) Start() error

func (*Manager) Stop

func (mgr *Manager) Stop() error

type Persister

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

func NewPersister

func NewPersister(add string, store storage.Storage, logger logrus.FieldLogger) Persister

func (Persister) Caller

func (m Persister) Caller() string

func (Persister) Delete

func (m Persister) Delete(key string)

func (Persister) Get

func (m Persister) Get(key string) (bool, []byte)

func (Persister) GetAccount

func (m Persister) GetAccount(_ string) (bool, interface{})

func (Persister) GetObject

func (m Persister) GetObject(key string, ret interface{}) bool

func (Persister) Has

func (m Persister) Has(key string) bool

func (Persister) Logger

func (m Persister) Logger() logrus.FieldLogger

func (Persister) Query

func (m Persister) Query(prefix string) (bool, [][]byte)

func (Persister) Set

func (m Persister) Set(key string, value []byte)

func (Persister) SetObject

func (m Persister) SetObject(key string, value interface{})

Jump to

Keyboard shortcuts

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