Documentation ¶
Index ¶
- func BroadcastReceive(broadcast Broadcast, addr string, responses chan common.Status, ...)
- func BroadcastSend(broadcast Broadcast, envelope *common.Envelope) error
- func BroadcastWaitForResponse(responses chan common.Status, errs chan error) (common.Status, error)
- type BFTBroadcaster
- type Broadcast
- type BroadcastFnc
- type CFTBroadcaster
- type Client
- type Connection
- type Network
- type OrdererClient
- type Service
- type Signer
- type Transaction
- type ViewManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BroadcastReceive ¶
func BroadcastReceive(broadcast Broadcast, addr string, responses chan common.Status, errs chan error)
BroadcastReceive waits until it receives the response from broadcast stream
func BroadcastSend ¶
BroadcastSend sends transaction envelope to orderer Service
Types ¶
type BFTBroadcaster ¶ added in v0.3.0
type BFTBroadcaster struct { Network Network // contains filtered or unexported fields }
func NewBFTBroadcaster ¶ added in v0.3.0
func NewBFTBroadcaster(network Network, poolSize int, metrics *metrics.Metrics) *BFTBroadcaster
type Broadcast ¶
type Broadcast interface { Send(m *common.Envelope) error Recv() (*ab.BroadcastResponse, error) CloseSend() error }
Broadcast defines the interface that abstracts grpc calls to broadcast transactions to orderer
type BroadcastFnc ¶ added in v0.3.0
type CFTBroadcaster ¶ added in v0.3.0
type CFTBroadcaster struct { Network Network // contains filtered or unexported fields }
func NewCFTBroadcaster ¶ added in v0.3.0
func NewCFTBroadcaster(network Network, poolSize int, metrics *metrics.Metrics) *CFTBroadcaster
type Client ¶ added in v0.3.0
type Client struct {
// contains filtered or unexported fields
}
Client implements OrdererClient interface
func (*Client) Certificate ¶ added in v0.3.0
func (oc *Client) Certificate() *tls.Certificate
func (*Client) NewBroadcast ¶ added in v0.3.0
NewBroadcast creates a Broadcast
type Connection ¶ added in v0.3.0
type Connection struct { Stream Broadcast Client *Client // contains filtered or unexported fields }
func (*Connection) Recv ¶ added in v0.3.0
func (c *Connection) Recv() (*ab.BroadcastResponse, error)
type Network ¶
type Network interface { Name() string PickOrderer() *grpc.ConnectionConfig Orderers() []*grpc.ConnectionConfig LocalMembership() driver.LocalMembership // Broadcast sends the passed blob to the ordering Service to be ordered Broadcast(context context2.Context, blob interface{}) error Channel(name string) (driver.Channel, error) SignerService() driver.SignerService Config() *config.Config }
type OrdererClient ¶
type OrdererClient interface { // NewBroadcast returns a Broadcast NewBroadcast(ctx context.Context, opts ...grpc.CallOption) (Broadcast, error) // Certificate returns tls certificate for the orderer client Certificate() *tls.Certificate Close() }
OrdererClient defines the interface to create a Broadcast
type Service ¶ added in v0.3.0
type Service struct { SP view2.ServiceProvider Network Network Metrics *metrics.Metrics Broadcasters map[string]BroadcastFnc BroadcastMutex sync.RWMutex Broadcaster BroadcastFnc }
func NewService ¶
func (*Service) SetConsensusType ¶ added in v0.3.0
type Transaction ¶
type ViewManager ¶
Click to show internal directories.
Click to hide internal directories.