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()
Click to show internal directories.
Click to hide internal directories.