fabric-sdk-go: github.com/hyperledger/fabric-sdk-go/pkg/fab/orderer Index | Files

package orderer

import "github.com/hyperledger/fabric-sdk-go/pkg/fab/orderer"

Index

Package Files

orderer.go

type Option Uses

type Option func(*Orderer) error

Option describes a functional parameter for the New constructor

func FromOrdererConfig Uses

func FromOrdererConfig(ordererCfg *fab.OrdererConfig) Option

FromOrdererConfig is a functional option for the orderer.New constructor that configures a new orderer from a apiconfig.OrdererConfig struct

func FromOrdererName Uses

func FromOrdererName(name string) Option

FromOrdererName is a functional option for the orderer.New constructor that obtains an apiconfig.OrdererConfig by name from the apiconfig.Config supplied to the constructor, and then constructs a new orderer from it

func WithInsecure Uses

func WithInsecure() Option

WithInsecure is a functional option for the orderer.New constructor that configures the orderer's grpc insecure option

func WithServerName Uses

func WithServerName(serverName string) Option

WithServerName is a functional option for the orderer.New constructor that configures the orderer's server name

func WithTLSCert Uses

func WithTLSCert(tlsCACert *x509.Certificate) Option

WithTLSCert is a functional option for the orderer.New constructor that configures the orderer's TLS certificate

func WithURL Uses

func WithURL(url string) Option

WithURL is a functional option for the orderer.New constructor that configures the orderer's URL.

type Orderer Uses

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

Orderer allows a client to broadcast a transaction.

func New Uses

func New(config fab.EndpointConfig, opts ...Option) (*Orderer, error)

New Returns a Orderer instance

func (*Orderer) SendBroadcast Uses

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

SendBroadcast Send the created transaction to Orderer.

func (*Orderer) SendDeliver Uses

func (o *Orderer) SendDeliver(ctx reqContext.Context, 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 Uses

func (o *Orderer) URL() string

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

Package orderer imports 20 packages (graph) and is imported by 1 packages. Updated 2019-08-30. Refresh now. Tools for package owners.