Add credential screen & screen arguments; refactor config screen

This commit is contained in:
mitchell 2019-07-07 00:14:09 -04:00
parent af8834f7bd
commit 910bdeae12
9 changed files with 246 additions and 31 deletions

View file

@ -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;