orderer

package
v0.0.0-...-e171dc0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Orderer

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

Orderer allows a client to broadcast a transaction.

func NewOrderer

func NewOrderer(url string, certificate string, serverHostOverride string, config apiconfig.Config) (*Orderer, error)

NewOrderer Returns a Orderer instance

func (*Orderer) SendBroadcast

func (o *Orderer) SendBroadcast(envelope *fab.SignedEnvelope) (*common.Status, error)

SendBroadcast Send the created transaction to Orderer.

func (*Orderer) SendDeliver

func (o *Orderer) SendDeliver(envelope *fab.SignedEnvelope) (chan *common.Block,
	chan error)

SendDeliver sends a deliver request to the ordering service and returns the blocks requested envelope: contains the seek request for blocks

func (*Orderer) URL

func (o *Orderer) URL() string

URL Get the Orderer url. Required property for the instance objects. Returns the address of the Orderer.

Jump to

Keyboard shortcuts

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