at_server_status 1.0.5 copy "at_server_status: ^1.0.5" to clipboard
at_server_status: ^1.0.5 copied to clipboard

A Dart library that provides a means to check on the status of the @‎root server as well as the secondary server for any particular @‎sign.

example/at_server_status_example.dart

import 'package:at_server_status/at_server_status.dart';

void main() async {
  var activationNotStarted = '@small73sepia';
  var readyToActivate = '@bullridingcapable';
  var paired = '@13majorfishtaco';

  Future<AtStatus> getAtStatus(atSign) async {
    AtStatus atStatus;
    AtStatusImpl atStatusImpl;

    // AtStatus atStatus = await atStatusImpl.get(atSign);
    // AtSignStatus atSignStatus = atStatus.status();
    // int httpStatus = atStatus.httpStatus();
    atStatusImpl = AtStatusImpl();
    atStatus = await atStatusImpl.get(atSign);
    print('status for : $atSign');
    print('rootStatus: ${atStatus.rootStatus}');
    print('serverStatus: ${atStatus.serverStatus}');
    print('status: ${atStatus.status()}');
    print('httpStatus: ${atStatus.httpStatus()}');
    print('\n');

    return atStatus;
  }

  await getAtStatus(activationNotStarted);
  await getAtStatus(readyToActivate);
  await getAtStatus(paired);
}
9
likes
140
points
2.22k
downloads

Publisher

verified publisheratsign.org

Weekly Downloads

A Dart library that provides a means to check on the status of the @‎root server as well as the secondary server for any particular @‎sign.

Homepage
Repository (GitHub)
View/report issues
Contributing

Documentation

Documentation
API reference

License

BSD-3-Clause (license)

Dependencies

at_commons, at_lookup, at_utils, uuid

More

Packages that depend on at_server_status