core

package
v1.4.3-poc-rc3 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
}

type Node

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

Node defines a w3bstream node

func NewNode

func NewNode(cfg Config, ac access.Control, client web3.Client, rawDB storage.KVStore) (*Node, error)

NewNode creates a new w3bstream node

func (*Node) AccessControl

func (node *Node) AccessControl() access.Control

AccessControl returns the instance of access control

func (*Node) Put

func (node *Node) Put(msg types.Message) error

Put puts message into db after processing

Single node mode, without consensus module

func (*Node) Web3Client

func (node *Node) Web3Client() web3.Client

Web3Client returns the web3 client

type Processor

type Processor interface {
	Process(access.Authentication, storage.KVStore, string, uint8, []byte) error
}

Processor defines an interface which processes an input message with given authentication

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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