Versions in this module Expand all Collapse all v1 v1.0.0 Mar 3, 2023 Changes in this version + func NewRefCache(opts ...options.Opt) *lazycache.Cache + func WithErrorHandler(value fab.ErrorHandler) coptions.Opt + func WithRefreshInterval(value time.Duration) coptions.Opt + type CacheKey interface + ChannelID func() string + Context func() fab.ClientContext + Provider func() Provider + func NewCacheKey(ctx fab.ClientContext, pvdr Provider, channelID string) (CacheKey, error) + type ChannelCfg struct + func NewChannelCfg(channelID string) *ChannelCfg + func (cfg *ChannelCfg) AnchorPeers() []*fab.OrgAnchorPeer + func (cfg *ChannelCfg) BlockNumber() uint64 + func (cfg *ChannelCfg) HasCapability(group fab.ConfigGroupKey, capability string) bool + func (cfg *ChannelCfg) ID() string + func (cfg *ChannelCfg) MSPs() []*mb.MSPConfig + func (cfg *ChannelCfg) Orderers() []string + func (cfg *ChannelCfg) Versions() *fab.Versions + type ChannelConfig struct + func New(channelID string, options ...Option) (*ChannelConfig, error) + func (c *ChannelConfig) Query(reqCtx reqContext.Context) (fab.ChannelCfg, error) + func (c *ChannelConfig) QueryBlock(reqCtx reqContext.Context) (*common.Block, error) + type ChannelConfigError error + type Context struct + type Option func(opts *Opts) error + func WithMaxTargets(maxTargets int) Option + func WithMinResponses(min int) Option + func WithOrderer(orderer fab.Orderer) Option + func WithPeers(peers []fab.Peer) Option + func WithRetryOpts(retryOpts retry.Opts) Option + type Opts struct + MaxTargets int + MinResponses int + Orderer fab.Orderer + RetryOpts retry.Opts + Targets []fab.Peer + type Provider func(channelID string) (fab.ChannelConfig, error) + type Ref struct + func NewRef(ctx fab.ClientContext, pvdr Provider, channel string, opts ...options.Opt) *Ref