NPAImpl class

Implemented types

Constructors

NPAImpl({required AtClient atClient, required String homeDirectory, required Set<String> daemonAtsigns, required NPARequestHandler handler})

Properties

atClient ↔ AtClient
The AtClient used to communicate with SSHNPDs
getter/setter pairoverride
authorizerAtsign String
no setteroverride
daemonAtsigns Set<String>
final
handler NPARequestHandler
final
hashCode int
The hash code for this object.
no setterinherited
homeDirectory String
The home directory on this host
final
logger → AtSignLogger
final
loggingAtsign String
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

handleRequest(AtRpcReq request, String fromAtSign) Future<AtRpcResp>
Called when a 'request' is received
handleResponse(AtRpcResp response) Future<void>
We're not sending any RPCs so we don't implement handleResponse
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notify(AtKey atKey, String value, {required bool checkForFinalDeliveryStatus, required bool waitForFinalDeliveryStatus, required Duration ttln, int maxTries = 3}) Future<NotificationResult>
inherited
run() Future<void>
Starts the sshnpa service
override
subscribe({String? regex, bool shouldDecrypt = false}) Stream<AtNotification>
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromCommandLineArgs(List<String> args, {required NPARequestHandler handler, AtClient? atClient, FutureOr<AtClient> atClientGenerator(NPAParams)?, void usageCallback(Object, StackTrace)?, Set<String>? daemonAtsigns}) Future<NPA>
override

Constants

jsonPrettyPrinter → const JsonEncoder