fabric-sdk-go: github.com/hyperledger/fabric-sdk-go/pkg/fab/events/api Index | Files

package api

import "github.com/hyperledger/fabric-sdk-go/pkg/fab/events/api"

Index

Package Files

connection.go endpoint.go

type Connection Uses

type Connection interface {
    // Receive sends events to the given channel
    Receive(chan<- interface{})
    // Close closes the connection
    Close()
    // Closed return true if the connection is closed
    Closed() bool
}

Connection defines the functions for an event server connection

type ConnectionProvider Uses

type ConnectionProvider func(context context.Client, chConfig fab.ChannelCfg, peer fab.Peer) (Connection, error)

ConnectionProvider creates a Connection.

type EventEndpoint Uses

type EventEndpoint interface {
    fab.Peer

    // Opts returns additional options for the connection
    Opts() []options.Opt
}

EventEndpoint extends a Peer endpoint and provides the event URL, which may or may not be the same as the Peer URL

Package api imports 3 packages (graph) and is imported by 4 packages. Updated 2018-08-15. Refresh now. Tools for package owners.