Documentation ¶
Index ¶
- type Components
- type Console
- func (c *Console) GetComponent(rw http.ResponseWriter, req *http.Request)
- func (c *Console) GetComponents(rw http.ResponseWriter, req *http.Request)
- func (c *Console) GetHealth(rw http.ResponseWriter, req *http.Request)
- func (c *Console) Port() int32
- func (c *Console) Start() error
- func (c *Console) Stop() error
- func (c *Console) URL() *url.URL
- type Health
- type Identity
- type Options
- type Orderer
- type Peer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Components ¶
type Components map[string]interface{}
type Console ¶
type Console struct { HTTPServer *http.Server StaticComponents Components Orderer *orderer.Orderer Peers []*peer.Peer // contains filtered or unexported fields }
func New ¶
func New(organizations []*organization.Organization, orderer *orderer.Orderer, peers []*peer.Peer, port int32, url_ string) (*Console, error)
func (*Console) GetComponent ¶
func (c *Console) GetComponent(rw http.ResponseWriter, req *http.Request)
func (*Console) GetComponents ¶
func (c *Console) GetComponents(rw http.ResponseWriter, req *http.Request)
type Orderer ¶
type Orderer struct { ID string `json:"id"` DisplayName string `json:"display_name"` Type string `json:"type"` APIURL string `json:"api_url"` APIOptions *Options `json:"api_options"` OperationsURL string `json:"operations_url"` OperationsOptions *Options `json:"operations_options"` MSPID string `json:"msp_id"` Wallet string `json:"wallet"` Identity string `json:"identity"` }
type Peer ¶
type Peer struct { ID string `json:"id"` DisplayName string `json:"display_name"` Type string `json:"type"` APIURL string `json:"api_url"` APIOptions *Options `json:"api_options"` ChaincodeURL string `json:"chaincode_url"` ChaincodeOptions *Options `json:"chaincode_options"` OperationsURL string `json:"operations_url"` OperationsOptions *Options `json:"operations_options"` MSPID string `json:"msp_id"` Wallet string `json:"wallet"` Identity string `json:"identity"` }
Click to show internal directories.
Click to hide internal directories.