change name of core to hiddify-core

This commit is contained in:
hiddify
2024-03-22 16:25:56 +00:00
parent 4193b22a09
commit 3d3b4e4625
28 changed files with 37 additions and 38 deletions

View File

@@ -3,7 +3,7 @@ package main
import (
"os"
"github.com/hiddify/libcore/cmd"
"github.com/hiddify/hiddify-core/cmd"
)
func main() {

View File

@@ -6,7 +6,7 @@ import (
"os"
"path/filepath"
"github.com/hiddify/libcore/config"
"github.com/hiddify/hiddify-core/config"
"github.com/sagernet/sing-box/experimental/libbox"
"github.com/sagernet/sing-box/log"
"github.com/sagernet/sing-box/option"

View File

@@ -3,7 +3,7 @@ package cmd
import (
"os"
"github.com/hiddify/libcore/utils"
"github.com/hiddify/hiddify-core/utils"
"github.com/spf13/cobra"
)

View File

@@ -5,7 +5,7 @@ import (
"os"
"path/filepath"
"github.com/hiddify/libcore/config"
"github.com/hiddify/hiddify-core/config"
"github.com/sagernet/sing-box/log"
"github.com/spf13/cobra"
)

View File

@@ -1,7 +1,7 @@
package cmd
import (
v2 "github.com/hiddify/libcore/v2"
v2 "github.com/hiddify/hiddify-core/v2"
"github.com/spf13/cobra"
)

View File

@@ -4,8 +4,8 @@ import (
"fmt"
"time"
"github.com/hiddify/libcore/config"
v2 "github.com/hiddify/libcore/v2"
"github.com/hiddify/hiddify-core/config"
v2 "github.com/hiddify/hiddify-core/v2"
"github.com/spf13/cobra"
)

View File

@@ -7,7 +7,7 @@ import (
"path/filepath"
"strings"
"github.com/hiddify/libcore/cmd/internal/build_shared"
"github.com/hiddify/hiddify-core/cmd/internal/build_shared"
_ "github.com/sagernet/gomobile"
"github.com/sagernet/sing-box/log"
"github.com/sagernet/sing/common/rw"

View File

@@ -10,7 +10,7 @@ import (
"runtime"
"time"
pb "github.com/hiddify/libcore/hiddifyrpc"
pb "github.com/hiddify/hiddify-core/hiddifyrpc"
"github.com/sagernet/sing-box/option"
dns "github.com/sagernet/sing-dns"
grpc "google.golang.org/grpc"

View File

@@ -7,7 +7,7 @@ import "C"
import (
"unsafe"
"github.com/hiddify/libcore/cmd"
"github.com/hiddify/hiddify-core/cmd"
)
//export parseCli

View File

@@ -10,10 +10,10 @@ import (
"os"
"unsafe"
"github.com/hiddify/libcore/bridge"
"github.com/hiddify/libcore/config"
pb "github.com/hiddify/libcore/hiddifyrpc"
v2 "github.com/hiddify/libcore/v2"
"github.com/hiddify/hiddify-core/bridge"
"github.com/hiddify/hiddify-core/config"
pb "github.com/hiddify/hiddify-core/hiddifyrpc"
v2 "github.com/hiddify/hiddify-core/v2"
"github.com/sagernet/sing-box/log"
)

View File

@@ -1,7 +1,7 @@
package main
import "C"
import v2 "github.com/hiddify/libcore/v2"
import v2 "github.com/hiddify/hiddify-core/v2"
//export StartCoreGrpcServer
func StartCoreGrpcServer(listenAddress *C.char) (CErr *C.char) {

View File

@@ -5,7 +5,7 @@ import (
"os"
"path/filepath"
"github.com/hiddify/libcore/config"
"github.com/hiddify/hiddify-core/config"
_ "github.com/sagernet/gomobile"
"github.com/sagernet/sing-box/option"
)

View File

@@ -1,7 +1,7 @@
package v2
import (
pb "github.com/hiddify/libcore/hiddifyrpc"
pb "github.com/hiddify/hiddify-core/hiddifyrpc"
"github.com/sagernet/sing-box/experimental/libbox"
"github.com/sagernet/sing-box/log"
)

View File

@@ -4,7 +4,7 @@ import (
"context"
"time"
pb "github.com/hiddify/libcore/hiddifyrpc"
pb "github.com/hiddify/hiddify-core/hiddifyrpc"
"github.com/sagernet/sing-box/experimental/libbox"
)

View File

@@ -5,8 +5,8 @@ import (
"fmt"
"time"
"github.com/hiddify/libcore/bridge"
pb "github.com/hiddify/libcore/hiddifyrpc"
"github.com/hiddify/hiddify-core/bridge"
pb "github.com/hiddify/hiddify-core/hiddifyrpc"
)
var coreInfoObserver = NewObserver[pb.CoreInfoResponse](10)

View File

@@ -8,9 +8,9 @@ import (
"path/filepath"
"time"
"github.com/hiddify/libcore/bridge"
"github.com/hiddify/libcore/config"
pb "github.com/hiddify/libcore/hiddifyrpc"
"github.com/hiddify/hiddify-core/bridge"
"github.com/hiddify/hiddify-core/config"
pb "github.com/hiddify/hiddify-core/hiddifyrpc"
"github.com/sagernet/sing-box/experimental/libbox"
"github.com/sagernet/sing-box/log"
)

View File

@@ -5,7 +5,7 @@ import (
"log"
"time"
pb "github.com/hiddify/libcore/hiddifyrpc"
pb "github.com/hiddify/hiddify-core/hiddifyrpc"
"google.golang.org/grpc"
)

View File

@@ -5,7 +5,7 @@ import (
"os/signal"
"syscall"
v2 "github.com/hiddify/libcore/v2"
v2 "github.com/hiddify/hiddify-core/v2"
)
func main() {

View File

@@ -4,12 +4,11 @@ package v2
#include "stdint.h"
*/
import "C"
import (
"log"
"net"
pb "github.com/hiddify/libcore/hiddifyrpc"
pb "github.com/hiddify/hiddify-core/hiddifyrpc"
"google.golang.org/grpc"
)

View File

@@ -5,7 +5,7 @@ import (
"log"
"time"
pb "github.com/hiddify/libcore/hiddifyrpc"
pb "github.com/hiddify/hiddify-core/hiddifyrpc"
)
func (s *HelloService) SayHello(ctx context.Context, in *pb.HelloRequest) (*pb.HelloResponse, error) {

View File

@@ -4,7 +4,7 @@ import (
"fmt"
"time"
pb "github.com/hiddify/libcore/hiddifyrpc"
pb "github.com/hiddify/hiddify-core/hiddifyrpc"
"github.com/sagernet/sing/common/observable"
)

View File

@@ -4,7 +4,7 @@ import (
"encoding/json"
"fmt"
"github.com/hiddify/libcore/bridge"
"github.com/hiddify/hiddify-core/bridge"
"github.com/sagernet/sing-box/experimental/libbox"
"github.com/sagernet/sing-box/log"
)

View File

@@ -1,7 +1,7 @@
package v2
import (
pb "github.com/hiddify/libcore/hiddifyrpc"
pb "github.com/hiddify/hiddify-core/hiddifyrpc"
"github.com/sagernet/sing-box/experimental/libbox"
"github.com/sagernet/sing-box/log"

View File

@@ -1,6 +1,6 @@
package v2
import pb "github.com/hiddify/libcore/hiddifyrpc"
import pb "github.com/hiddify/hiddify-core/hiddifyrpc"
const (
Stopped = "Stopped"

View File

@@ -13,8 +13,8 @@ import (
"syscall"
"time"
"github.com/hiddify/libcore/config"
pb "github.com/hiddify/libcore/hiddifyrpc"
"github.com/hiddify/hiddify-core/config"
pb "github.com/hiddify/hiddify-core/hiddifyrpc"
"github.com/sagernet/sing-box/option"
)

View File

@@ -3,7 +3,7 @@ package v2
import (
"context"
pb "github.com/hiddify/libcore/hiddifyrpc"
pb "github.com/hiddify/hiddify-core/hiddifyrpc"
"github.com/sagernet/sing-box/experimental/libbox"
)

View File

@@ -6,7 +6,7 @@ import (
"log"
"os"
pb "github.com/hiddify/libcore/hiddifyrpc"
pb "github.com/hiddify/hiddify-core/hiddifyrpc"
)
func (s *TunnelService) Start(ctx context.Context, in *pb.TunnelStartRequest) (*pb.TunnelResponse, error) {

View File

@@ -3,8 +3,8 @@ package v2
import (
"context"
"github.com/hiddify/libcore/config"
pb "github.com/hiddify/libcore/hiddifyrpc"
"github.com/hiddify/hiddify-core/config"
pb "github.com/hiddify/hiddify-core/hiddifyrpc"
)
func (s *CoreService) GenerateWarpConfig(ctx context.Context, in *pb.GenerateWarpConfigRequest) (*pb.WarpGenerationResponse, error) {