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 operator 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 operator 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
Click to show internal directories.
Click to hide internal directories.