Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
Option describes a functional parameter for the New constructor
func FromOrdererConfig ¶
func FromOrdererConfig(ordererCfg *apiconfig.OrdererConfig) Option
FromOrdererConfig is a functional option for the orderer.New constructor that configures a new orderer from a apiconfig.OrdererConfig struct
func FromOrdererName ¶
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 WithServerName ¶
WithServerName is a functional option for the orderer.New constructor that configures the peer's server name
func WithTLSCert ¶
func WithTLSCert(tlsCACert *sm2.Certificate) Option
WithTLSCert is a functional option for the orderer.New constructor that configures the orderer's TLS certificate
type Orderer ¶
type Orderer struct {
// contains filtered or unexported fields
}
Orderer allows a client to broadcast a transaction.
func NewOrderer ¶
func NewOrderer(url string, certPath string, serverHostOverride string, config apiconfig.Config, kap keepalive.ClientParameters) (*Orderer, error)
NewOrderer Returns a Orderer instance Deprecated: use orderer.New() instead
func NewOrdererFromConfig ¶
func NewOrdererFromConfig(ordererCfg *apiconfig.OrdererConfig, config apiconfig.Config) (*Orderer, error)
NewOrdererFromConfig returns an Orderer instance constructed from orderer config Deprecated: use orderer.New() instead
func (*Orderer) SendBroadcast ¶
SendBroadcast Send the created transaction to Orderer.
func (*Orderer) SendDeliver ¶
SendDeliver sends a deliver request to the ordering service and returns the blocks requested envelope: contains the seek request for blocks