Versions in this module Expand all Collapse all v1 v1.4.11 Mar 2, 2021 Changes in this version + func ExtractChannelHeaderCertHash(msg proto.Message) []byte + type Chain interface + Errored func() <-chan struct{} + PolicyManager func() policies.Manager + Reader func() blockledger.Reader + Sequence func() uint64 + type ChainManager interface + GetChain func(chainID string) Chain + type ConfigSequencer interface + Sequence func() uint64 + type ExpiresAtFunc func(identityBytes []byte) time.Time + type Filtered interface + IsFiltered func() bool + type Handler struct + BindingInspector Inspector + ChainManager ChainManager + ExpirationCheckFunc func(identityBytes []byte) time.Time + Metrics *Metrics + TimeWindow time.Duration + func NewHandler(cm ChainManager, timeWindow time.Duration, mutualTLS bool, metrics *Metrics, ...) *Handler + func (h *Handler) Handle(ctx context.Context, srv *Server) error + type Inspector interface + Inspect func(context.Context, proto.Message) error + type InspectorFunc func(context.Context, proto.Message) error + func (inspector InspectorFunc) Inspect(ctx context.Context, p proto.Message) error + type Metrics struct + BlocksSent metrics.Counter + RequestsCompleted metrics.Counter + RequestsReceived metrics.Counter + StreamsClosed metrics.Counter + StreamsOpened metrics.Counter + func NewMetrics(p metrics.Provider) *Metrics + type PolicyChecker interface + CheckPolicy func(envelope *cb.Envelope, channelID string) error + type PolicyCheckerFunc func(envelope *cb.Envelope, channelID string) error + func (pcf PolicyCheckerFunc) CheckPolicy(envelope *cb.Envelope, channelID string) error + type Receiver interface + Recv func() (*cb.Envelope, error) + type ResponseSender interface + SendBlockResponse func(block *cb.Block) error + SendStatusResponse func(status cb.Status) error + type Server struct + type SessionAccessControl struct + func NewSessionAC(chain ConfigSequencer, env *common.Envelope, policyChecker PolicyChecker, ...) (*SessionAccessControl, error) + func (ac *SessionAccessControl) Evaluate() error