supplier

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSupplierClient

func NewSupplierClient(
	deps depinject.Config,
	opts ...client.SupplierClientOption,
) (*supplierClient, error)

NewSupplierClient constructs a new SupplierClient with the given dependencies and options. If a signingKeyName is not configured, an error will be returned.

Required dependencies:

  • client.TxClient
  • client.TxContext

Available options:

  • WithSigningKeyName

func WithSigningKeyName

func WithSigningKeyName(keyName string) client.SupplierClientOption

WithSigningKeyName sets the name of the key which the supplier client should retrieve from the keyring to use for authoring and signing CreateClaim and SubmitProof messages.

Types

type SupplierClientMap added in v0.0.3

type SupplierClientMap struct {
	SupplierClients map[string]client.SupplierClient
}

SupplierClientMap is a helper struct needed to depinject multiple supplier clients. The inner structure maps a supplier address to a list of supplier clients for that address. Must be a type to successfully work with depinject.

func NewSupplierClientMap added in v0.0.3

func NewSupplierClientMap() *SupplierClientMap

Jump to

Keyboard shortcuts

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