Back to godoc.org

Package api

v1.0.0-beta2.0...-bdbc9bd
Latest Go to latest

The latest major version is .

Published: Jul 30, 2020 | License: Apache-2.0 | Module: github.com/hyperledger/fabric-sdk-go

Index

type Connection

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

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

ConnectionProvider creates a Connection.

type EventEndpoint

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 Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier