client

package
v0.0.0-...-8220f0d Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2019 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	AddTransaction(nodes []uint64, t *sbac.Transaction, evidences map[uint64][]byte) ([]*sbac.Object, error)
	Query(key []byte) ([]*sbac.Object, error)
	Create(obj []byte) ([][]byte, error)
	CreateObjects([][]byte) ([][][]byte, error)
	States(nodeID uint64) (*sbac.StatesReportResponse, error)
	Close()
}

func New

func New(cfg *Config) Client

type Config

type Config struct {
	Top        *network.Topology
	MaxPayload config.ByteSize
	NodeID     uint64
	Key        signature.KeyPair
}

Config represent the configuration required to send messages using the sbac

Jump to

Keyboard shortcuts

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