Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents a Microfab client.
func (*Client) GetIdentity ¶
GetIdentity gets the identity for the specified organization.
func (*Client) GetOrderingService ¶
func (c *Client) GetOrderingService() (*OrderingService, error)
GetOrderingService gets the ordering service.
func (*Client) GetOrganizations ¶
GetOrganizations gets the names of all of the organizations.
type Identity ¶
type Identity struct { ID string `json:"id"` DisplayName string `json:"display_name"` Type string `json:"type"` Certificate []byte `json:"cert"` PrivateKey []byte `json:"private_key"` CA []byte `json:"ca"` MSPID string `json:"msp_id"` Wallet string `json:"wallet"` }
Identity represents an identity used for managing components inside Microfab.
type Options ¶
type Options struct { DefaultAuthority string `json:"grpc.default_authority"` SSLTargetNameOverride string `json:"grpc.ssl_target_name_override"` RequestTimeout int `json:"request-timeout"` }
Options represents connection options for a peer or ordering service.
type OrderingService ¶
type OrderingService 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"` }
OrderingService represents an ordering service running inside Microfab.
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"` }
Peer represents a peer running inside Microfab.
Click to show internal directories.
Click to hide internal directories.