Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewChannelCfg ¶
func NewChannelCfg(name string) fab.ChannelCfg
NewChannelCfg creates channel cfg TODO: This is temporary, Remove once we have config injected in sdk
Types ¶
type ChannelCfg ¶
type ChannelCfg struct {
// contains filtered or unexported fields
}
ChannelCfg contains channel configuration
func (*ChannelCfg) AnchorPeers ¶
func (cfg *ChannelCfg) AnchorPeers() []*fab.OrgAnchorPeer
AnchorPeers returns anchor peers
func (*ChannelCfg) Versions ¶
func (cfg *ChannelCfg) Versions() *fab.Versions
Versions returns versions
type ChannelConfig ¶
type ChannelConfig struct {
// contains filtered or unexported fields
}
ChannelConfig implements query channel configuration
func (*ChannelConfig) Query ¶
func (c *ChannelConfig) Query() (fab.ChannelCfg, error)
Query returns channel configuration
type Context ¶
type Context struct { fab.ProviderContext fab.IdentityContext }
Context holds the providers and identity
type Option ¶
Option func for each Opts argument
func WithMinResponses ¶
WithMinResponses encapsulates minimum responses to Option
func WithOrderer ¶
WithOrderer encapsulates orderer to Option
type Opts ¶
type Opts struct { Orderer string // if configured, channel config will be retrieved from this orderer Targets []fab.Peer // if configured, channel config will be retrieved from peers (targets) MinResponses int // used with targets option; min number of success responses (from targets/peers) }
Opts contains options for retrieving channel configuration
Click to show internal directories.
Click to hide internal directories.