package me.proxylink.plugin.tunnel;

import me.proxylink.common.AgentConfig;

public record TunnelStatus(
        AgentConfig.Role role,
        String nodeName,
        boolean running,
        boolean tunnelConnected,
        int connectedTunnels,
        int activeStreams,
        boolean tlsEnabled,
        String lastEvent
) {
    public static TunnelStatus stopped(AgentConfig.Role role, String nodeName, boolean tlsEnabled, String lastEvent) {
        return new TunnelStatus(role, nodeName, false, false, 0, 0, tlsEnabled, lastEvent);
    }
}
