ClientStatus class

Represents the status of the sing-box client.

Annotations
  • @JsonSerializable.new()

Constructors

ClientStatus({required int memory, required int goroutines, required int connectionsIn, required int connectionsOut, required bool trafficAvailable, required int uplink, required int downlink, required int uplinkTotal, required int downlinkTotal})
Creates a new ClientStatus instance.
ClientStatus.fromJson(Map<String, dynamic> json)
Creates a new ClientStatus instance from a JSON map.
factory

Properties

connectionsIn int
The number of incoming connections.
getter/setter pair
connectionsOut int
The number of outgoing connections.
getter/setter pair
The current downlink speed in bytes per second.
getter/setter pair
downlinkTotal int
The total downloaded traffic in bytes.
getter/setter pair
goroutines int
The number of active goroutines.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
memory int
The current memory usage in bytes.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
trafficAvailable bool
Whether traffic information is available.
getter/setter pair
The current uplink speed in bytes per second.
getter/setter pair
uplinkTotal int
The total uploaded traffic in bytes.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts this ClientStatus instance to a JSON map.
toString() String
A string representation of this object.
inherited

Operators

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