blockchain

package
v0.6.3-beta01 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotRunning = errors.New("substrate api is not running")

Functions

func New

func New() (controller.Controller, error)

Types

type BlockchainController

type BlockchainController struct {
	sync.Mutex
	state.StateMachine
	// contains filtered or unexported fields
}

Blockchain controller. To be implemented in future

func (*BlockchainController) Close

func (bc *BlockchainController) Close() error

func (*BlockchainController) Recv

func (bc *BlockchainController) Recv() ([]byte, error)

func (*BlockchainController) Write

func (bc *BlockchainController) Write(b []byte) (n int, err error)

type BlockchainMsg

type BlockchainMsg struct {
	Url string `json:"url"`
	Cid string `json:"cid"`
}

type Commodity

type Commodity struct {
	ID      types.Hash
	Payload []byte
}

type CommodityInfo

type CommodityInfo struct {
	Info []byte
}

Jump to

Keyboard shortcuts

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