adapters

package
v0.0.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package adapters provides the adapter apis.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MspProvider

type MspProvider interface {
	// Get returns the configured signing identity.
	Get() (msp.SigningIdentity, error)
	// Validate checks if the provider configuration is valid.
	Validate() error
}

MspProvider supplies signing identities for transaction authentication.

type NotificationClient

type NotificationClient interface {
	// Subscribe creates a subscription channel for the specified transaction ID.
	Subscribe(ctx context.Context, txID string) (chan int, error)
	// WaitForEvent blocks until a transaction event is received on the subscription.
	WaitForEvent(ctx context.Context, subscription chan int) (int, error)
	// Close releases resources held by the client.
	Close() error
}

NotificationClient subscribes to transaction confirmation events.

type NotificationProvider

type NotificationProvider interface {
	// Get returns a configured notification client.
	Get() (NotificationClient, error)
	// Validate checks if the provider configuration is valid.
	Validate() error
}

NotificationProvider creates and validates NotificationClient instances.

type OrdererClient

type OrdererClient interface {
	// Broadcast sends a signed transaction to the ordering service.
	Broadcast(ctx context.Context, signer msp.SigningIdentity, txID string, tx *applicationpb.Tx) error
	// Close releases resources held by the client.
	Close() error
}

OrdererClient submits transactions to the ordering service.

type OrdererProvider

type OrdererProvider interface {
	// Get returns a configured orderer client.
	Get() (OrdererClient, error)
	// Validate checks if the provider configuration is valid.
	Validate() error
}

OrdererProvider creates and validates OrdererClient instances.

type QueryClient

type QueryClient interface {
	// GetNamespacePolicies fetches current namespace policy configurations.
	GetNamespacePolicies(ctx context.Context) (*applicationpb.NamespacePolicies, error)
	// Close releases resources held by the client.
	Close() error
}

QueryClient retrieves state information from the committer query service.

type QueryProvider

type QueryProvider interface {
	// Get returns a configured query client.
	Get() (QueryClient, error)
	// Validate checks if the provider configuration is valid.
	Validate() error
}

QueryProvider creates and validates QueryClient instances.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL