Documentation ¶
Index ¶
- type Option
- type Orderer
- func (o *Orderer) AddExcludeWords(ctx reqContext.Context, in *orderer.ExcludedSymbol) error
- func (o *Orderer) AddSensitiveWords(ctx reqContext.Context, in *orderer.SensitiveWord) error
- func (o *Orderer) QueryExcludeWords(ctx reqContext.Context) ([]string, error)
- func (o *Orderer) QuerySensitiveWords(ctx reqContext.Context) ([]string, error)
- func (o *Orderer) SendBroadcast(ctx reqContext.Context, envelope *fab.SignedEnvelope) (*common.Status, error)
- func (o *Orderer) SendDeliver(ctx reqContext.Context, envelope *fab.SignedEnvelope) (chan *common.Block, chan error)
- func (o *Orderer) SetExcludeWords(ctx reqContext.Context, in *orderer.ExcludedSymbol) error
- func (o *Orderer) SetSensitiveWords(ctx reqContext.Context, in *orderer.SensitiveWord) error
- func (o *Orderer) URL() string
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 *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 ¶
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 ¶
func WithInsecure() Option
WithInsecure is a functional option for the orderer.New constructor that configures the orderer's grpc insecure option
func WithServerName ¶
WithServerName is a functional option for the orderer.New constructor that configures the orderer's server name
func WithTLSCert ¶
func WithTLSCert(tlsCACert *x509.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 New ¶
func New(config fab.EndpointConfig, opts ...Option) (*Orderer, error)
New Returns a Orderer instance
func (*Orderer) AddExcludeWords ¶
func (o *Orderer) AddExcludeWords(ctx reqContext.Context, in *orderer.ExcludedSymbol) error
func (*Orderer) AddSensitiveWords ¶
func (o *Orderer) AddSensitiveWords(ctx reqContext.Context, in *orderer.SensitiveWord) error
func (*Orderer) QueryExcludeWords ¶
func (o *Orderer) QueryExcludeWords(ctx reqContext.Context) ([]string, error)
func (*Orderer) QuerySensitiveWords ¶
func (o *Orderer) QuerySensitiveWords(ctx reqContext.Context) ([]string, error)
func (*Orderer) SendBroadcast ¶
func (o *Orderer) SendBroadcast(ctx reqContext.Context, envelope *fab.SignedEnvelope) (*common.Status, error)
SendBroadcast Send the created transaction to Orderer.
func (*Orderer) SendDeliver ¶
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) SetExcludeWords ¶
func (o *Orderer) SetExcludeWords(ctx reqContext.Context, in *orderer.ExcludedSymbol) error
func (*Orderer) SetSensitiveWords ¶
func (o *Orderer) SetSensitiveWords(ctx reqContext.Context, in *orderer.SensitiveWord) error