-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'pokt/main' into issues/13/feat/miner
* pokt/main: [Proxy] chore: Use depinject for relayerProxy (#173) [Sessions] chore: Use depinject for sessions mgr construction (#175)
- Loading branch information
Showing
11 changed files
with
137 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package proxy | ||
|
||
import ( | ||
"github.com/pokt-network/poktroll/pkg/relayer" | ||
) | ||
|
||
// WithSigningKeyName sets the signing key name used by the relayer proxy to sign relay responses. | ||
// It is used along with the keyring to get the supplier address and sign the relay responses. | ||
func WithSigningKeyName(keyName string) relayer.RelayerProxyOption { | ||
return func(relProxy relayer.RelayerProxy) { | ||
relProxy.(*relayerProxy).signingKeyName = keyName | ||
} | ||
} | ||
|
||
// WithProxiedServicesEndpoints sets the endpoints of the proxied services. | ||
func WithProxiedServicesEndpoints(proxiedServicesEndpoints servicesEndpointsMap) relayer.RelayerProxyOption { | ||
return func(relProxy relayer.RelayerProxy) { | ||
relProxy.(*relayerProxy).proxiedServicesEndpoints = proxiedServicesEndpoints | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package session | ||
|
||
import ( | ||
"github.com/pokt-network/poktroll/pkg/relayer" | ||
) | ||
|
||
// WithStoresDirectory sets the path on disk where KVStore data files used to store | ||
// SMST of work sessions are created. | ||
func WithStoresDirectory(storesDirectory string) relayer.RelayerSessionsManagerOption { | ||
return func(relSessionMgr relayer.RelayerSessionsManager) { | ||
relSessionMgr.(*relayerSessionsManager).storesDirectory = storesDirectory | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters