mirror of
https://github.com/mitchell/selfpass.git
synced 2025-12-15 13:47:21 +00:00
Add credential screen & screen arguments; refactor config screen
This commit is contained in:
parent
af8834f7bd
commit
910bdeae12
9 changed files with 246 additions and 31 deletions
|
|
@ -12,6 +12,7 @@ import '../types/connection_config.dart';
|
|||
import '../types/credential.dart';
|
||||
|
||||
class CredentialsClient implements CredentialsRepo {
|
||||
static CredentialsClient _cached;
|
||||
grpc.CredentialServiceClient _client;
|
||||
|
||||
CredentialsClient(ConnectionConfig config) {
|
||||
|
|
@ -32,6 +33,9 @@ class CredentialsClient implements CredentialsRepo {
|
|||
));
|
||||
}
|
||||
|
||||
factory CredentialsClient.cached({ConnectionConfig config}) =>
|
||||
_cached == null ? _cached = CredentialsClient(config) : _cached;
|
||||
|
||||
Stream<Metadata> getAllMetadata(String sourceHost) {
|
||||
final request = grpc.GetAllMetadataRequest();
|
||||
request.sourceHost = sourceHost;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue