fabric-sdk-go: github.com/hyperledger/fabric-sdk-go/internal/github.com/hyperledger/fabric/core/middleware Index | Files

package middleware

import "github.com/hyperledger/fabric-sdk-go/internal/github.com/hyperledger/fabric/core/middleware"

Index

Package Files

chain.go request_id.go require_cert.go

func RequestID Uses

func RequestID(ctx context.Context) string

type Chain Uses

type Chain struct {
    // contains filtered or unexported fields
}

A Chain is a middleware chain use for http request processing.

func NewChain Uses

func NewChain(middlewares ...Middleware) Chain

NewChain creates a new Middleware chain. The chain will call the Middleware in the order provided.

func (Chain) Handler Uses

func (c Chain) Handler(h http.Handler) http.Handler

Handler returns an http.Handler for this chain.

type GenerateIDFunc Uses

type GenerateIDFunc func() string

type Middleware Uses

type Middleware func(http.Handler) http.Handler

func RequireCert Uses

func RequireCert() Middleware

RequireCert is used to ensure that a verified TLS client certificate was used for authentication.

func WithRequestID Uses

func WithRequestID(generator GenerateIDFunc) Middleware

Package middleware imports 2 packages (graph) and is imported by 1 packages. Updated 2019-02-06. Refresh now. Tools for package owners.