рабочий вариант, но скороть 10 МБит
build / backend (push) Has been cancelled
build / node-agent (push) Has been cancelled
build / worker (push) Has been cancelled

This commit is contained in:
2026-05-22 21:46:49 +03:00
parent 469fa0e860
commit 20d361a886
280 changed files with 954890 additions and 18524 deletions
@@ -0,0 +1,38 @@
// Code generated by gobind. DO NOT EDIT.
// Java class su.cin.rapvpn.fabric.fabricvpn.Fabricvpn is a proxy for talking to a Go program.
//
// autogenerated by gobind -lang=java -javapkg=su.cin.rapvpn.fabric github.com/example/remote-access-platform/agents/rap-node-agent/mobile/fabricvpn
package su.cin.rapvpn.fabric.fabricvpn;
import go.Seq;
public abstract class Fabricvpn {
static {
Seq.touch(); // for loading the native library
_init();
}
private Fabricvpn() {} // uninstantiable
// touch is called from other bound packages to initialize this package
public static void touch() {}
private static native void _init();
private static final class proxySocketProtector implements Seq.Proxy, SocketProtector {
private final int refnum;
@Override public final int incRefnum() {
Seq.incGoRef(refnum, this);
return refnum;
}
proxySocketProtector(int refnum) { this.refnum = refnum; Seq.trackGoRef(refnum, this); }
public native boolean protect(long fd);
}
public static native Manager newManager();
}
@@ -0,0 +1,58 @@
// Code generated by gobind. DO NOT EDIT.
// Java class su.cin.rapvpn.fabric.fabricvpn.Manager is a proxy for talking to a Go program.
//
// autogenerated by gobind -lang=java -javapkg=su.cin.rapvpn.fabric github.com/example/remote-access-platform/agents/rap-node-agent/mobile/fabricvpn
package su.cin.rapvpn.fabric.fabricvpn;
import go.Seq;
public final class Manager implements Seq.Proxy {
static { Fabricvpn.touch(); }
private final int refnum;
@Override public final int incRefnum() {
Seq.incGoRef(refnum, this);
return refnum;
}
public Manager() {
this.refnum = __NewManager();
Seq.trackGoRef(refnum, this);
}
private static native int __NewManager();
Manager(int refnum) { this.refnum = refnum; Seq.trackGoRef(refnum, this); }
public native String controlRequest(String payloadJSON) throws Exception;
public native byte[] receivePacket(long timeoutMillis) throws Exception;
public native byte[] receivePacketBatchPayload(long timeoutMillis) throws Exception;
public native void reconnect() throws Exception;
public native void sendPacket(byte[] packet) throws Exception;
public native void sendPacketBatchPayload(byte[] payload) throws Exception;
public native void setSocketProtector(SocketProtector protector);
public native String snapshotJSON();
public native void start(String configJSON) throws Exception;
public native void stop();
public native void updateRuntimeConfig(String configJSON) throws Exception;
@Override public boolean equals(Object o) {
if (o == null || !(o instanceof Manager)) {
return false;
}
Manager that = (Manager)o;
return true;
}
@Override public int hashCode() {
return java.util.Arrays.hashCode(new Object[] {});
}
@Override public String toString() {
StringBuilder b = new StringBuilder();
b.append("Manager").append("{");
return b.append("}").toString();
}
}
@@ -0,0 +1,14 @@
// Code generated by gobind. DO NOT EDIT.
// Java class su.cin.rapvpn.fabric.fabricvpn.SocketProtector is a proxy for talking to a Go program.
//
// autogenerated by gobind -lang=java -javapkg=su.cin.rapvpn.fabric github.com/example/remote-access-platform/agents/rap-node-agent/mobile/fabricvpn
package su.cin.rapvpn.fabric.fabricvpn;
import go.Seq;
public interface SocketProtector {
public boolean protect(long fd);
}