server

package
v0.0.0-...-215cb89 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2020 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DataPathLack = errors.New("the parameter dataPath must be needed")

Functions

func LoadAcList

func LoadAcList(filePath string) (*acl.PolicyList, error)

Types

type DataServer

type DataServer struct {
	Acl  *acl.PolicyList
	Bc   *blockchain.Blockchain
	App  *iris.Application
	Port string
	// contains filtered or unexported fields
}

func InitDataServer

func InitDataServer(dataServerConfigPath string, bc *blockchain.Blockchain, logger *log.Logger) (*DataServer, error)

func (*DataServer) GetAttrsForKey

func (dt *DataServer) GetAttrsForKey(key []byte) []string

func (*DataServer) ProcessOperation

func (dt *DataServer) ProcessOperation(op *dataServerType.Operation) []byte

func (*DataServer) Start

func (dt *DataServer) Start()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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