fabric-sdk-go: github.com/hyperledger/fabric-sdk-go/pkg/fab/channel/membership Index | Files

package membership

import "github.com/hyperledger/fabric-sdk-go/pkg/fab/channel/membership"

Index

Package Files

cache.go membership.go reference.go

func New Uses

func New(ctx Context, cfg fab.ChannelCfg) (fab.ChannelMembership, error)

New member identity

func NewRefCache Uses

func NewRefCache(refresh time.Duration) *lazycache.Cache

NewRefCache a cache of membership references that refreshed with the given interval

type CacheKey Uses

type CacheKey interface {
    lazycache.Key
    Context() Context
    ChannelID() string
    ChConfigRef() *lazyref.Reference
}

CacheKey membership reference cache key

func NewCacheKey Uses

func NewCacheKey(context Context, chConfigRef *lazyref.Reference, channelID string) (CacheKey, error)

NewCacheKey returns a new CacheKey

type Context Uses

type Context struct {
    core.Providers
    EndpointConfig fab.EndpointConfig
}

Context holds the providers

type Ref Uses

type Ref struct {
    *lazyref.Reference
    // contains filtered or unexported fields
}

Ref membership reference that refreshes to load the given channel config reference

func NewRef Uses

func NewRef(refresh time.Duration, context Context, chConfigRef *lazyref.Reference) *Ref

NewRef returns a new membership reference

func (*Ref) ContainsMSP Uses

func (ref *Ref) ContainsMSP(msp string) bool

ContainsMSP checks if given MSP is available in the underlying reference

func (*Ref) Validate Uses

func (ref *Ref) Validate(serializedID []byte) error

Validate calls validate on the underlying reference

func (*Ref) Verify Uses

func (ref *Ref) Verify(serializedID []byte, msg []byte, sig []byte) error

Verify calls validate on the underlying reference

Package membership imports 15 packages (graph) and is imported by 1 packages. Updated 2019-10-02. Refresh now. Tools for package owners.