Documentation ¶
Index ¶
- type Orderer
- func (o *Orderer) APIPort() int
- func (o *Orderer) APIURL() *url.URL
- func (o *Orderer) Broadcast(envelope *common.Envelope) error
- func (o *Orderer) Close() error
- func (o *Orderer) Connect(mspID string, identity *identity.Identity) error
- func (o *Orderer) Connected() bool
- func (o *Orderer) ConnectionIdentity() *identity.Identity
- func (o *Orderer) ConnectionMSPID() string
- func (p *Orderer) Deliver(envelope *common.Envelope, callback blocks.DeliverCallback) error
- func (o *Orderer) Host() string
- func (o *Orderer) Hostname() string
- func (o *Orderer) MSPID() string
- func (o *Orderer) OperationsPort() int
- func (o *Orderer) OperationsURL() *url.URL
- func (o *Orderer) Organization() *organization.Organization
- func (o *Orderer) Port() int32
- func (o *Orderer) Start(consortium []*organization.Organization) error
- func (o *Orderer) Stop() error
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 represents a loaded orderer definition.
func New ¶
func New(organization *organization.Organization, directory string, apiPort int, apiURL string, operationsPort int, operationsURL string) (*Orderer, error)
New creates a new orderer.
func (*Orderer) Broadcast ¶
Broadcast sends an envelope with one or more transactions in to the orderer.
func (*Orderer) ConnectionIdentity ¶
ConnectionIdentity returns the identity used to connect to the orderer.
func (*Orderer) ConnectionMSPID ¶
ConnectionMSPID returns the MSP ID used to the connect to the orderer.
func (*Orderer) OperationsPort ¶
OperationsPort returns the operations port of the orderer.
func (*Orderer) OperationsURL ¶
OperationsURL returns the operations URL of the orderer.
func (*Orderer) Organization ¶
func (o *Orderer) Organization() *organization.Organization
Organization returns the organization of the orderer.
func (*Orderer) Start ¶
func (o *Orderer) Start(consortium []*organization.Organization) error
Start starts the orderer.
Click to show internal directories.
Click to hide internal directories.